Showing the changes to src/cegui-test.cpp (1 of 2 files). Show all
Unified · Split
| @@ -8,9 +8,9 @@ · 7 unmodified lines | ||
| 8 | 8 | * and makes CEGUI draw an "in-game" window into it. |
| 9 | 9 | ************************************************/ |
| 10 | 10 | |
| 11 | −#include <GL/freeglut.h> | |
| 12 | 11 | #include <CEGUI/CEGUI.h> |
| 13 | 12 | #include <CEGUI/RendererModules/OpenGL/GLRenderer.h> |
| 13 | +#include <GL/freeglut.h> | |
| 14 | 14 | |
| 15 | 15 | // We’re lazy |
| 16 | 16 | using namespace CEGUI; |
| @@ -65,11 +65,11 @@ int main(int argc, char* argv[]) · 48 unmodified lines | ||
| 65 | 65 | |
| 66 | 66 | // Create the hypothetical CEGUI root window |
| 67 | 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 | 70 | // Create an actual framed window we can look onto |
| 71 | 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 | 73 | p_frame_window->setPosition(UVector2(UDim(0.25f, 0), UDim(0.25f, 0))); |
| 74 | 74 | p_frame_window->setSize(USize(UDim(0.5f, 0), UDim(0.5f, 0))); |
| 75 | 75 | p_frame_window->setText("Hello World!"); |