cegui: fix test and miminise invocation

This commit is contained in:
Tony Theodore 2016-07-30 00:55:39 +10:00
parent dafb826dbb
commit d55222f313
2 changed files with 4 additions and 6 deletions

View File

@ -8,9 +8,9 @@
* and makes CEGUI draw an "in-game" window into it.
************************************************/
#include <GL/freeglut.h>
#include <CEGUI/CEGUI.h>
#include <CEGUI/RendererModules/OpenGL/GLRenderer.h>
#include <GL/freeglut.h>
// Were lazy
using namespace CEGUI;
@ -65,11 +65,11 @@ int main(int argc, char* argv[])
// Create the hypothetical CEGUI root window
Window* p_root_window = WindowManager::getSingleton().createWindow("DefaultWindow", "root");
gui_context.setRootWindow(p_rootwindow);
gui_context.setRootWindow(p_root_window);
// Create an actual framed window we can look onto
FrameWindow* p_frame_window = static_cast<FrameWindow*>(WindowManager::getSingleton().createWindow("TaharezLook/FrameWindow", "testWindow"));
p_root_window->addChildWindow(p_frame_window);
p_root_window->addChild(p_frame_window);
p_frame_window->setPosition(UVector2(UDim(0.25f, 0), UDim(0.25f, 0)));
p_frame_window->setSize(USize(UDim(0.5f, 0), UDim(0.5f, 0)));
p_frame_window->setText("Hello World!");

View File

@ -68,9 +68,7 @@ define $(PKG)_BUILD
'$(TARGET)-g++' \
-W -Wall -ansi -pedantic \
'$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-cegui.exe' \
`$(TARGET)-pkg-config --cflags --libs CEGUI-0-OPENGL glut freetype2 libpcre` \
-lCEGUIFreeImageImageCodec -lCEGUIXercesParser -lCEGUICoreWindowRendererSet \
`$(TARGET)-pkg-config --libs --cflags freeimage xerces-c`
`$(TARGET)-pkg-config --cflags --libs CEGUI-0-OPENGL glut gl`
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =