23 int vertPosSize_{ 0 };
24 int vertNormalsSize_{ 0 };
25 int vertColorsSize_{ 0 };
26 int validIndicesSize_{ 0 };
27 Vector2i vertSelectionTextureSize_;
29 int cachedRenderDiscretization_{ 1 };
31 RenderBufferRef<Vector3f> loadVertPosBuffer_();
32 RenderBufferRef<Vector3f> loadVertNormalsBuffer_();
33 RenderBufferRef<Color> loadVertColorsBuffer_();
34 RenderBufferRef<VertId> loadValidIndicesBuffer_();
35 RenderBufferRef<unsigned> loadVertSelectionTextureBuffer_();
37 typedef unsigned int GLuint;
38 GLuint pointsArrayObjId_{ 0 };
39 GLuint pointsPickerArrayObjId_{ 0 };
41 GlBuffer vertPosBuffer_;
42 GlBuffer vertNormalsBuffer_;
43 GlBuffer vertColorsBuffer_;
44 GlBuffer validIndicesBuffer_;
46 GlTexture2 vertSelectionTex_;
50 void bindPoints_(
bool alphaSort );
51 void bindPointsPicker_();
61 bool hasNormalsBackup_{
false };
Definition MRIRenderObject.h:134
Definition MRObjectPointsHolder.h:18
Definition MRRenderPointsObject.h:10
virtual void forceBindAll() override
binds all data for this render object, not to bind ever again (until object becomes dirty)
virtual void renderPicker(const ModelBaseRenderParams ¶ms, unsigned geomId) override
RenderPointsObject(const VisualObject &visObj)
virtual size_t heapBytes() const override
returns the amount of memory this object occupies on heap
virtual bool render(const ModelRenderParams ¶ms) override
virtual size_t glBytes() const override
returns the amount of memory this object allocated in OpenGL
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