Go to the documentation of this file.
36 void render(
const RenderContext& rc)
const override;
void notifyChange() const
Call to enable calling renderUpdateBuffers() before the next render() rendering iteration.
float getLineWidth() const
virtual shader_list_t requiredShaders() const override
Returns the ID of the OpenGL shader program required to render this class.
COpenGLVertexArrayObject m_vao
A wrapper for an OpenGL vertex array object (VAO).
The base class of 3D objects that can be directly rendered through OpenGL.
std::vector< mrpt::img::TColor > m_color_buffer_data
const auto & shaderWireframeVertexPointBuffer() const
Renderizable generic renderer for objects using the wireframe shader.
const auto & shaderWireframeVertexColorBuffer() const
COpenGLBuffer m_colorBuffer
virtual ~CRenderizableShaderWireFrame()
virtual void onUpdateBuffers_Wireframe()=0
Must be implemented in derived classes to update the geometric entities to be drawn in "m_*_buffer" f...
void freeOpenGLResources() override
Free opengl buffers.
COpenGLBuffer m_vertexBuffer
void setLineWidth(float w)
static constexpr shader_id_t WIREFRAME
std::vector< mrpt::math::TPoint3Df > m_vertex_buffer_data
bool isAntiAliasingEnabled() const
void destroy()
Automatically called upon destructor, no need for the user to call it in normal situations.
void render(const RenderContext &rc) const override
Implements the rendering of 3D objects in each class derived from CRenderizable.
#define DEFINE_VIRTUAL_SERIALIZABLE(class_name)
This declaration must be inserted in virtual CSerializable classes definition:
CRenderizableShaderWireFrame()=default
A wrapper for an OpenGL buffer object.
void enableAntiAliasing(bool enable=true)
std::vector< shader_id_t > shader_list_t
A list of shader IDs.
void renderUpdateBuffers() const override
Called whenever m_outdatedBuffers is true: used to re-generate OpenGL vertex buffers,...
The namespace for 3D scene representation and rendering.
void destroy()
Automatically called upon destructor, no need for the user to call it in normal situations.
Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Fri Jul 17 08:43:33 UTC 2020 | |