nux-1.14.0
nux::DisplayAccessController Class Reference

List of all members.

Public Member Functions

GraphicsDisplayCreateGLWindow (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 DisplayAccessControllerInstance ()

Detailed Description

Definition at line 42 of file GLWindowManager.h.


Member Function Documentation

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.

Parameters:
WindowTitleThe title name of the window.
WindowWidthWindow width.
WindowHeightWindow height.
StyleWindow style.
parentThe parent window.
FullscreenFlagTrue to create a full screen window.
create_rendering_dataIf 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;
  }

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends