History

cegui: fix test and miminise invocation

Tony Theodore committed 10 years ago

Commit d55222f1 parent dafb8262 files · +4 −6Browse files

Showing the changes to src/cegui-test.cpp (1 of 2 files). Show all

Unified · Split

src/cegui-test.cpp+3−3
@@ -8,9 +8,9 @@ · 7 unmodified lines
88 * and makes CEGUI draw an "in-game" window into it.
99 ************************************************/
1010
11−#include <GL/freeglut.h>
1211 #include <CEGUI/CEGUI.h>
1312 #include <CEGUI/RendererModules/OpenGL/GLRenderer.h>
13+#include <GL/freeglut.h>
1414
1515 // We’re lazy
1616 using namespace CEGUI;
@@ -65,11 +65,11 @@ int main(int argc, char* argv[]) · 48 unmodified lines
6565
6666 // Create the hypothetical CEGUI root window
6767 Window* p_root_window = WindowManager::getSingleton().createWindow("DefaultWindow", "root");
68− gui_context.setRootWindow(p_rootwindow);
68+ gui_context.setRootWindow(p_root_window);
6969
7070 // Create an actual framed window we can look onto
7171 FrameWindow* p_frame_window = static_cast<FrameWindow*>(WindowManager::getSingleton().createWindow("TaharezLook/FrameWindow", "testWindow"));
72− p_root_window->addChildWindow(p_frame_window);
72+ p_root_window->addChild(p_frame_window);
7373 p_frame_window->setPosition(UVector2(UDim(0.25f, 0), UDim(0.25f, 0)));
7474 p_frame_window->setSize(USize(UDim(0.5f, 0), UDim(0.5f, 0)));
7575 p_frame_window->setText("Hello World!");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t