#include <mesa_onscreen.h>
Inheritance diagram for mimas::mesa_onscreen:
Public Member Functions | |
mesa_onscreen (x11_window *_window) throw (mimasexception) | |
Constructor. | |
virtual | ~mesa_onscreen (void) |
Destructor. | |
virtual void | finish (void) |
Finish on-screen rendering. | |
virtual void | ortho2D (int x1, int y1, int x2, int y2) const |
Switch to two-dimensional drawing mode. | |
virtual void | ortho2D (void) const |
Switch to two-dimensional drawing mode. | |
Protected Attributes | |
x11_window * | window |
GLXContext | context |
GLX context for on-screen rendering. | |
bool | finishOnScreen |
State of object. |
Support for on-screen rendering using Mesa.
No stencil- and accumulation-buffer are allocated.
Do not forget to initialise glut at the beginning of your program:
glutInit( &argc, argv );
If you experience problems, you may want to try:
export LIBGL_ALWAYS_INDIRECT=1
If it works:
If it doesn't:
Definition at line 40 of file mesa_onscreen.h.
mimas::mesa_onscreen::mesa_onscreen | ( | x11_window * | _window | ) | throw (mimasexception) |
Constructor.
All parameters must be destructed by the calling program.
_window | Window to open GLX context for. |
virtual mimas::mesa_onscreen::~mesa_onscreen | ( | void | ) | [virtual] |
Destructor.
The destructor will destruct the OpenGL-context and call mesa_base::finish()
.
virtual void mimas::mesa_onscreen::finish | ( | void | ) | [virtual] |
Finish on-screen rendering.
This method calls glFinish()
and mesa_base::finish()
.
Reimplemented from mimas::mesa_base.
virtual void mimas::mesa_onscreen::ortho2D | ( | void | ) | const [virtual] |
x11_window* mimas::mesa_onscreen::window [protected] |
Definition at line 62 of file mesa_onscreen.h.
GLXContext mimas::mesa_onscreen::context [protected] |
bool mimas::mesa_onscreen::finishOnScreen [protected] |