MIGLX::CONTEXT Class Reference
#include <mi32/miglx.h>
List of all members.
Constructor & Destructor Documentation
| MIGLX::CONTEXT::CONTEXT |
( |
|
) |
|
| MIGLX::CONTEXT::~CONTEXT |
( |
|
) |
|
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) |
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:
-
| void MIGLX::CONTEXT::Destroy |
( |
|
) |
|
| 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 |
The documentation for this class was generated from the following file: