Give example of connection of CEGUI 0.8.4 to SDL 2
Posted: Mon Mar 23, 2015 07:56
Hi!
Give example of connection of CEGUI 0.8.4 to SDL 2 (C++)
Thanks!
Give example of connection of CEGUI 0.8.4 to SDL 2 (C++)
Thanks!
The official forum for CEGUI
http://cegui.org.uk/forum/
lucebac wrote:https://bitbucket.org/lucebac/cegui/src/ea8f8c814a4d5dbaa56344218659eb68ce173961/application_templates/SDL2.cpp?at=application-templates-devel
Code: Select all
Window* root = WindowManager::getSingleton().loadLayoutFromFile("application_templates.layout");
Code: Select all
<?xml version="1.0" ?>
<GUILayout version="4">
<Window type="DefaultWindow" name="root">
<Window type="TaharezLook/FrameWindow" name="testWindow">
<Property name="Position" value="{ {0.25, 0}, {0.25, 0} }" />
<Property name="Size" value="{ {0.5, 0}, {0.5, 0} }" />
<Property name="Text" value="Hello World!" />
</Window>
</Window>
</GUILayout>
georger wrote:lucebac wrote:https://bitbucket.org/lucebac/cegui/src/ea8f8c814a4d5dbaa56344218659eb68ce173961/application_templates/SDL2.cpp?at=application-templates-devel
In line 215 the program tries to load application_templates.layout, which isn't shipped in datafiles/layouts/ in the source distribution.
Code: Select all
fatal error: CEGUI/Config.h: No such file or directory