[SOLVED] api breakage of 1 10 11 ; FontManager::getByName 2nd arg

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
paul424
Gnome
Posts: 314
Joined: Thu May 24, 2012 7:16 pm
x 13

[SOLVED] api breakage of 1 10 11 ; FontManager::getByName 2nd arg

Post by paul424 »

Ogre Version: 1 10 11 :?:
Operating System: opensuse 15 Leap :?:
Render System: OpenGL :?:

Code: Select all

    mFont(Ogre::FontManager::getSingleton().getByName(fontName,__resource_group__))
Briefly : what is this __resource_group__ I need provide as a second argument ?


My resource.cfg ?

Code: Select all

[Graphics]
FileSystem=materials/RTShaderLib
FileSystem=materials/RTShaderLib/materials
FileSystem=materials/scripts
FileSystem=materials/textures
FileSystem=models
FileSystem=particles

[GUI]
FileSystem=gui
FileSystem=gui/fonts
FileSystem=gui/schemas

[Music]
FileSystem=music

[Sound]
FileSystem=sounds
Last edited by paul424 on Wed Aug 29, 2018 11:01 am, edited 1 time in total.
xissburg
Halfling
Posts: 83
Joined: Sun Feb 21, 2010 4:58 pm
x 28

Re: api breakage of 1 10 11 ; FontManager::getByName 2nd arg

Post by xissburg »

I guess you could use Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME (?)
User avatar
paul424
Gnome
Posts: 314
Joined: Thu May 24, 2012 7:16 pm
x 13

Re: api breakage of 1 10 11 ; FontManager::getByName 2nd arg

Post by paul424 »

Ok , thanks for all the replies , the "GUI" group works nice as well, problem was how the file was named in
"../../gui/ODSkin.scheme
8: <Font filename="LiberationSans-10.font" name="LiberationSans-10" /> "
for some reason filename should be
LiberationSans-10.font
and not
font/LiberationSans-10.font
Post Reply