MGD::DEVICE_GLX Class Reference

Device for drawing using OpenGL via GLX extension. More...

#include <mi32/mg2glx.h>

Inheritance diagram for MGD::DEVICE_GLX:
Inheritance graph
[legend]

List of all members.

Public Types

enum  BUFFER {
  BUFFER_Front = 1, BUFFER_Back = 2, BUFFER_FrontAndBack = 3, BUFFER_FrontLeftAndRight = 4,
  BUFFER_BackLeftAndRight = 5, BUFFER_All = 6
}

Public Member Functions

 DEVICE_GLX ()
virtual ~DEVICE_GLX ()
ERRVALUE Create (MIGLX::CONTEXT &GlxContext, XID xwindow, BUFFER buffer)
bool IsStereo () const
void NotifyChangeWindow ()

Detailed Description

Device for drawing using OpenGL via GLX extension.


Member Enumeration Documentation

Enumeration for which OpenGL buffer(s) to associate device with.

Enumerator:
BUFFER_Front 

Front, with separate stereo frame buffers if available.

BUFFER_Back 

Back, with separate stereo frame buffers if available.

BUFFER_FrontAndBack 

Both front and back, with separate stereo frame buffers if available.

BUFFER_FrontLeftAndRight 

Front, drawing to both stereo buffers if available.

BUFFER_BackLeftAndRight 

Back, drawing to both stereo buffers if available.

BUFFER_All 

All available buffers.


Constructor & Destructor Documentation

MGD::DEVICE_GLX::DEVICE_GLX (  ) 

Default constructor.

virtual MGD::DEVICE_GLX::~DEVICE_GLX (  )  [virtual]

Destructor.


Member Function Documentation

ERRVALUE MGD::DEVICE_GLX::Create ( MIGLX::CONTEXT GlxContext,
XID  xwindow,
BUFFER  buffer 
)

Create device associated with GLX context.

Note that for stereo contexts, unless BUFFER_...LeftAndRight or All is specified, the device will report that 2 frame buffers are available and each may be rendered into separately.

Parameters:
GlxContext Context to associate with, must remain valid for life of device
xwindow X window
buffer OpenGL buffer(s) to draw into
bool MGD::DEVICE_GLX::IsStereo (  )  const [inline]

Determine if is stereo.

void MGD::DEVICE_GLX::NotifyChangeWindow (  ) 

Notify device that window (typically size) has changed.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:35:11 2012 for TNTsdk 2012 by  doxygen 1.6.1