|
nux-1.14.0
|
Public Member Functions | |
| GraphicsDisplay * | CreateGLWindow (const TCHAR *WindowTitle, unsigned int WindowWidth, unsigned int WindowHeight, WindowStyle Style, GraphicsDisplay *parent, bool FullscreenFlag=false, bool create_rendering_data=true) |
| Create a graphics window capable of doing OpenGL rendering. | |
Static Public Member Functions | |
| static DisplayAccessController & | Instance () |
Definition at line 42 of file GLWindowManager.h.
| GraphicsDisplay * nux::DisplayAccessController::CreateGLWindow | ( | const TCHAR * | WindowTitle, |
| unsigned int | WindowWidth, | ||
| unsigned int | WindowHeight, | ||
| WindowStyle | Style, | ||
| GraphicsDisplay * | parent, | ||
| bool | FullscreenFlag = false, |
||
| bool | create_rendering_data = true |
||
| ) |
Create a graphics window capable of doing OpenGL rendering.
| WindowTitle | The title name of the window. |
| WindowWidth | Window width. |
| WindowHeight | Window height. |
| Style | Window style. |
| parent | The parent window. |
| FullscreenFlag | True to create a full screen window. |
| create_rendering_data | If true, then in GraphicsEngine, the system creates the OpenGL shaders and the font textures for the rendering. |
Definition at line 99 of file GLWindowManager.cpp.
References nux::GraphicsDisplay::CreateOpenGLWindow().
{
if(GetGraphicsDisplay())
{
// A GlWindow already exist for this thread.
nuxAssertMsg (0, TEXT ("Only one GLWindow per thread is allowed") );
return 0;
}
GraphicsDisplay *glwindow = new GraphicsDisplay();
glwindow->CreateOpenGLWindow (WindowTitle, WindowWidth, WindowHeight, Style, GLWindow, FullscreenFlag, create_rendering_data);
return glwindow;
}