class mrpt::opengl::mrptEventGLPostRender

Overview

An event sent by an mrpt::opengl::Viewport 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 Scene.

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/Viewport.h>

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

    const Viewport*const source_viewport;

    // construction

    mrptEventGLPostRender(const Viewport* obj);
};