MIGLX::CONTEXT Class Reference

#include <mi32/miglx.h>

List of all members.

Public Member Functions

 CONTEXT ()
 ~CONTEXT ()
void CopyBackToFront (const LRECT2D *pRect=0)
ERRVALUE CopyFromMemory (MGD::DEVICE_MEM32 *pDeviceSrc, BUFFER buffer, const LRECT2D *pRect=0)
bool Create (MODE mode)
void Destroy ()
bool IsCreated () const
bool IsDoubleBuffered () const
bool IsStereo () const
void MakeCurrent (XID xwindow)
void SetTransIdentity (unsigned int winwidth=0, unsigned int winheight=0)
void SwapBuffers ()
int TranslateBuffer (BUFFER buffer) const

Constructor & Destructor Documentation

MIGLX::CONTEXT::CONTEXT (  ) 

Constructor.

MIGLX::CONTEXT::~CONTEXT (  ) 

Destructor.


Member Function Documentation

void MIGLX::CONTEXT::CopyBackToFront ( const LRECT2D pRect = 0  ) 

Copy pixels from back to front buffers.

Has no effect if not double-buffered. Will copy both left and right buffers if stereo.

Parameters:
pRect Optional rectangle MGD coordinates (0,0 at upper left, inverted from OpenGL)
ERRVALUE MIGLX::CONTEXT::CopyFromMemory ( MGD::DEVICE_MEM32 pDeviceSrc,
BUFFER  buffer,
const LRECT2D pRect = 0 
)

Copy into context buffer(s) from memory.

Must make context "current" before using.

Parameters:
pDeviceSrc Device to copy from
buffer Which buffer(s) to copy into/from
pRect Optional rectangle MGD coordinates (0,0 at upper left, inverted from OpenGL)
bool MIGLX::CONTEXT::Create ( MODE  mode  ) 

Create context with specified mode if available.

Does not make context "current" for subsequent OpenGL functions.

Returns:
true if successful, false if mode not supported.
Parameters:
mode Required mode
void MIGLX::CONTEXT::Destroy (  ) 

Destroy context.

bool MIGLX::CONTEXT::IsCreated (  )  const [inline]

Determine if has been created.

bool MIGLX::CONTEXT::IsDoubleBuffered (  )  const [inline]

Determine if context is double-buffered.

bool MIGLX::CONTEXT::IsStereo (  )  const [inline]

Determine if context uses stereo mode.

void MIGLX::CONTEXT::MakeCurrent ( XID  xwindow  ) 

Make context "current" for subsequent OpenGL functions.

void MIGLX::CONTEXT::SetTransIdentity ( unsigned int  winwidth = 0,
unsigned int  winheight = 0 
)

Set model/projection transformations to identity such that model coordinates are window coordinates (at z = 0).

Parameters:
winwidth Window width if known, in pixels
winheight Window height if known, in pixels
void MIGLX::CONTEXT::SwapBuffers (  ) 

Swap buffers if double-buffering used.

int MIGLX::CONTEXT::TranslateBuffer ( BUFFER  buffer  )  const

Translate from MIGLX::BUFFER to OpenGL buffer enum value.


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

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