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
8 * and makes CEGUI draw an "in-game" window into it.8 * and makes CEGUI draw an "in-game" window into it.
9 ************************************************/9 ************************************************/
10 10
11#include <GL/freeglut.h>
12#include <CEGUI/CEGUI.h>11#include <CEGUI/CEGUI.h>
13#include <CEGUI/RendererModules/OpenGL/GLRenderer.h>12#include <CEGUI/RendererModules/OpenGL/GLRenderer.h>
13#include <GL/freeglut.h>
14 14
15// We’re lazy15// We’re lazy
16using namespace CEGUI;16using namespace CEGUI;
@@ -65,11 +65,11 @@ int main(int argc, char* argv[]) · 48 unmodified lines
65 65
66 // Create the hypothetical CEGUI root window66 // Create the hypothetical CEGUI root window
67 Window* p_root_window = WindowManager::getSingleton().createWindow("DefaultWindow", "root");67 Window* p_root_window = WindowManager::getSingleton().createWindow("DefaultWindow", "root");
68 gui_context.setRootWindow(p_rootwindow);68 gui_context.setRootWindow(p_root_window);
69 69
70 // Create an actual framed window we can look onto70 // Create an actual framed window we can look onto
71 FrameWindow* p_frame_window = static_cast<FrameWindow*>(WindowManager::getSingleton().createWindow("TaharezLook/FrameWindow", "testWindow"));71 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);
73 p_frame_window->setPosition(UVector2(UDim(0.25f, 0), UDim(0.25f, 0)));73 p_frame_window->setPosition(UVector2(UDim(0.25f, 0), UDim(0.25f, 0)));
74 p_frame_window->setSize(USize(UDim(0.5f, 0), UDim(0.5f, 0)));74 p_frame_window->setSize(USize(UDim(0.5f, 0), UDim(0.5f, 0)));
75 p_frame_window->setText("Hello World!");75 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