分析CEGUI的最小资源定制
本文针对只创建一个按钮(PushButton)的情况,分析CEGUI资源目录datafiles下最少可以放些什 么,并加以解释。 | ||||
[sihan@localhost datafiles]$ tree . |-- fonts | |-- Commonv2c.ttf | |-- Commonwealth-10.font | `-- Font.xsd |-- imagesets | |-- Imageset.xsd | |-- TaharezLook.imageset | `-- TaharezLook.tga |-- looknfeel | |-- Falagard.xsd | `-- TaharezLook.looknfeel `-- schemes |-- GUIScheme.xsd `-- TaharezLook.scheme | ||||
CEGUI资源文件 | ||||
| ||||
如下是资源类的一个列表,这四个是必须用到的: CEGUI::Imageset - Imageset xml and texture image files. CEGUI::Font - Font xml and ttf font files. CEGUI::Scheme - Scheme xml files. CEGUI::WidgetLookManager - LookNFeel xml files 这两个实在这次没有用到的: CEGUI::WindowManager - Window layout xml files. CEGUI::ScriptModule - Script files in whichever scripted langauge. | ||||
| ||||
下面看看这些文件的内容: | ||||
TaharezLook.scheme:
TaharezLook.looknfeel:
Commonwealth-10.font:
TaharezLook.imageset:
| ||||
代码 | ||||
| ||||
glut_loop.cpp:
Makefile:
|