An event sent by an mrpt::opengl::COpenGLViewport just after clearing the viewport and setting the GL_PROJECTION matrix, and before calling the scene OpenGL drawing primitives.
While handling this event you can call OpenGL glBegin(),glEnd(),gl* functions or those in mrpt::opengl::gl_utils to draw stuff *in the back* of the normal objects contained in the COpenGLScene.
After processing this event, COpenGLViewport will change the OpenGL matrix mode into "GL_MODELVIEW" and load an identity matrix to continue rendering the scene objects as usual. Any change done to the GL_PROJECTION will have effects, so do a glPushMatrix()/glPopMatrix() if that is not your intention.
IMPORTANTE NOTICE: Event handlers in your observer class will most likely be invoked from an internal GUI thread of MRPT, so all your code in the handler must be thread safe.
#include <mrpt/opengl/COpenGLViewport.h>

Public Member Functions | |
| mrptEventGLPreRender (const COpenGLViewport *obj) | |
Public Attributes | |
| const COpenGLViewport *const | source_viewport |
Protected Member Functions | |
| virtual void | do_nothing () |
| Just to allow this class to be polymorphic. | |
| mrpt::opengl::mrptEventGLPreRender::mrptEventGLPreRender | ( | const COpenGLViewport * | obj | ) | [inline] |
Definition at line 376 of file COpenGLViewport.h.
| virtual void mrpt::opengl::mrptEventGLPreRender::do_nothing | ( | ) | [inline, protected, virtual] |
Just to allow this class to be polymorphic.
Reimplemented from mrpt::utils::mrptEvent.
Definition at line 374 of file COpenGLViewport.h.
Definition at line 377 of file COpenGLViewport.h.
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011 |