class mrpt::opengl::CRenderizableShaderTriangles

Renderizable generic renderer for objects using the triangles shader.

See also:

opengl::Scene

#include <mrpt/opengl/CRenderizableShaderTriangles.h>

class CRenderizableShaderTriangles: public mrpt::opengl::CRenderizable
{
public:
    // construction

    CRenderizableShaderTriangles();

    //
methods

    virtual void onUpdateBuffers_Triangles() = 0;
};

// direct descendants

template <int DIM>
class CGeneralizedEllipsoidTemplate;

class CAngularObservationMesh;
class CArrow;
class CAssimpModel;
class CBox;
class CColorBar;
class CCylinder;
class CDisk;
class CFrustum;
class CMesh3D;
class COctoMapVoxels;
class CPlanarLaserScan;
class CPolyhedron;
class CSetOfTriangles;
class CTexturedPlane;
class CVectorField2D;

Inherited Members

public:
    // structs

    struct OutdatedState;
    struct RenderContext;
    struct State;

    //
methods

    virtual void render(const RenderContext& rc) const = 0;
    virtual void renderUpdateBuffers() const = 0;
    virtual shader_list_t requiredShaders() const;
    virtual void freeOpenGLResources() = 0;

Methods

virtual void onUpdateBuffers_Triangles() = 0

Must be implemented in derived classes to update the geometric entities to be drawn in “m_*_buffer” fields.