Device for drawing using OpenGL via GLX extension. More...
#include <mi32/mg2glx.h>

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 () |
Device for drawing using OpenGL via GLX extension.
Enumeration for which OpenGL buffer(s) to associate device with.
| MGD::DEVICE_GLX::DEVICE_GLX | ( | ) |
Default constructor.
| virtual MGD::DEVICE_GLX::~DEVICE_GLX | ( | ) | [virtual] |
Destructor.
| 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.
| 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.
1.6.1