#include <MRRenderMeshObject.h>
Public Member Functions | |
MRVIEWER_API | RenderMeshObject (const VisualObject &visObj) |
virtual MRVIEWER_API | ~RenderMeshObject () |
virtual MRVIEWER_API bool | render (const ModelRenderParams ¶ms) override |
virtual MRVIEWER_API void | renderPicker (const ModelBaseRenderParams ¶ms, unsigned geomId) override |
virtual MRVIEWER_API size_t | heapBytes () const override |
returns the amount of memory this object occupies on heap | |
virtual MRVIEWER_API size_t | glBytes () const override |
returns the amount of memory this object allocated in OpenGL | |
virtual MRVIEWER_API void | forceBindAll () override |
binds all data for this render object, not to bind ever again (until object becomes dirty) | |
Public Member Functions inherited from MR::IRenderObject | |
virtual | ~IRenderObject ()=default |
virtual void | renderUi (const UiRenderParams ¶ms) |
Protected Types | |
typedef unsigned int | GLuint |
Protected Member Functions | |
MRVIEWER_API RenderBufferRef< Vector3f > | loadVertPosBuffer_ () |
MRVIEWER_API RenderBufferRef< Vector3f > | loadVertNormalsBuffer_ () |
MRVIEWER_API RenderBufferRef< Color > | loadVertColorsBuffer_ () |
MRVIEWER_API RenderBufferRef< UVCoord > | loadVertUVBuffer_ () |
MRVIEWER_API RenderBufferRef< Vector3i > | loadFaceIndicesBuffer_ () |
MRVIEWER_API RenderBufferRef< unsigned > | loadFaceSelectionTextureBuffer_ () |
MRVIEWER_API RenderBufferRef< Vector4f > | loadFaceNormalsTextureBuffer_ () |
MRVIEWER_API RenderBufferRef< uint8_t > | loadTexturePerFaceTextureBuffer_ () |
MRVIEWER_API RenderBufferRef< VertId > | loadPointValidIndicesBuffer_ () |
virtual MRVIEWER_API void | renderEdges_ (const ModelRenderParams ¶meters, bool alphaSort, GLuint vao, const Color &color, uint32_t dirtyFlag) |
virtual MRVIEWER_API void | renderMeshEdges_ (const ModelRenderParams ¶meters, bool alphaSort) |
virtual MRVIEWER_API void | renderMeshVerts_ (const ModelRenderParams ¶meters, bool alphaSort) |
virtual MRVIEWER_API void | bindMesh_ (bool alphaSort) |
virtual MRVIEWER_API void | bindMeshPicker_ () |
virtual MRVIEWER_API void | bindEdges_ () |
virtual MRVIEWER_API void | bindBorders_ () |
virtual MRVIEWER_API void | bindSelectedEdges_ () |
virtual MRVIEWER_API void | bindEmptyTextures_ (GLuint shaderId) |
virtual MRVIEWER_API void | bindPoints_ (bool alphaSort) |
virtual MRVIEWER_API void | drawMesh_ (bool solid, ViewportId viewportId, bool picker=false) const |
virtual MRVIEWER_API void | initBuffers_ () |
virtual MRVIEWER_API void | freeBuffers_ () |
virtual MRVIEWER_API void | update_ (ViewportMask mask) |
|
protected |
MRVIEWER_API MR::RenderMeshObject::RenderMeshObject | ( | const VisualObject & | visObj | ) |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
overridevirtual |
binds all data for this render object, not to bind ever again (until object becomes dirty)
Reimplemented from MR::IRenderObject.
|
protectedvirtual |
|
overridevirtual |
returns the amount of memory this object allocated in OpenGL
Implements MR::IRenderObject.
|
overridevirtual |
returns the amount of memory this object occupies on heap
Implements MR::IRenderObject.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
overridevirtual |
Implements MR::IRenderObject.
Reimplemented in MR::RenderFeatures::RenderFeatureComponent< IsPrimary, ObjectMesh, RenderMeshObject >, and MR::RenderFeatures::RenderPlaneNormalComponent.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
overridevirtual |
Implements MR::IRenderObject.
Reimplemented in MR::RenderFeatures::RenderFeatureComponent< IsPrimary, ObjectMesh, RenderMeshObject >, and MR::RenderFeatures::RenderPlaneNormalComponent.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |