class mrpt::opengl::mrptEventGLPostRenderΒΆ

An event sent by an mrpt::opengl::COpenGLViewport after calling the scene OpenGL drawing primitives and before doing a glSwapBuffers.

While handling this event you can call OpenGL glBegin(),glEnd(),gl* functions or those in mrpt::opengl::gl_utils to draw stuff on the top of the normal objects contained in the COpenGLScene.

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>

class mrptEventGLPostRender: public mrpt::system::mrptEvent
{
public:
    //
fields

    const COpenGLViewport*const source_viewport;

    // construction

    mrptEventGLPostRender(const COpenGLViewport* obj);
};