MeshLib C++ Docs
Loading...
Searching...
No Matches
MRRenderDefaultObjects.h
Go to the documentation of this file.
1#pragma once
3
4namespace MR
5{
8
9
10class VisualObject;
11
14
17{
18public:
19 MRVIEWER_API RenderResetDirtyComponent( const VisualObject& object );
21 MRVIEWER_API virtual bool render( const ModelRenderParams& );
22 MRVIEWER_API virtual void renderPicker( const ModelBaseRenderParams&, unsigned );
23
24 virtual size_t heapBytes() const { return 0; }
25 virtual size_t glBytes() const { return 0; }
26private:
27 const VisualObject* objPtr_{ nullptr };
28};
29
30}
Definition MRIRenderObject.h:134
Combines several different IRenderObjects into one in a meaningful way.
Definition MRIRenderObject.h:170
Simple render object to clear dirty flags in render objects combinations.
Definition MRRenderDefaultObjects.h:17
Visual Object.
Definition MRVisualObject.h:116
MRVIEWER_API RenderResetDirtyComponent(const VisualObject &object)
virtual size_t heapBytes() const
returns the amount of memory this object occupies on heap
Definition MRRenderDefaultObjects.h:24
virtual size_t glBytes() const
returns the amount of memory this object allocated in OpenGL
Definition MRRenderDefaultObjects.h:25
virtual MRVIEWER_API bool render(const ModelRenderParams &)
only clears dirty flag of the object
virtual MRVIEWER_API void renderPicker(const ModelBaseRenderParams &, unsigned)
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRIRenderObject.h:46
Mesh rendering parameters for primary rendering (as opposed to the picker).
Definition MRIRenderObject.h:54