MeshLib Documentation
Loading...
Searching...
No Matches
MRRenderDefaultObjects.h
Go to the documentation of this file.
1#pragma once
3
4namespace MR
5{
6
7class VisualObject;
8
9// Combines all the default UI `IRenderObjects`.
11
12// Simple render object to clear dirty flags in render objects combinations
14{
15public:
16 MRVIEWER_API RenderResetDirtyComponent( const VisualObject& object );
17 // only clears dirty flag of the object
18 MRVIEWER_API virtual bool render( const ModelRenderParams& );
19 MRVIEWER_API virtual void renderPicker( const ModelBaseRenderParams&, unsigned );
20
21 virtual size_t heapBytes() const { return 0; }
22 virtual size_t glBytes() const { return 0; }
23private:
24 const VisualObject* objPtr_{ nullptr };
25};
26
27}
Definition MRIRenderObject.h:134
Definition MRIRenderObject.h:170
Definition MRRenderDefaultObjects.h:14
MRVIEWER_API RenderResetDirtyComponent(const VisualObject &object)
virtual size_t heapBytes() const
returns the amount of memory this object occupies on heap
Definition MRRenderDefaultObjects.h:21
virtual size_t glBytes() const
returns the amount of memory this object allocated in OpenGL
Definition MRRenderDefaultObjects.h:22
virtual MRVIEWER_API bool render(const ModelRenderParams &)
virtual MRVIEWER_API void renderPicker(const ModelBaseRenderParams &, unsigned)
Visual Object.
Definition MRVisualObject.h:131
Definition MRCameraOrientationPlugin.h:8
Definition MRIRenderObject.h:43
Mesh rendering parameters for primary rendering (as opposed to the picker).
Definition MRIRenderObject.h:51