3#ifndef MRVIEWER_NO_VOXELS
29 typedef unsigned int GLuint;
30 GLuint volumeArrayObjId_{ 0 };
31 GlBuffer volumeVertsBuffer_;
32 GlBuffer volumeIndicesBuffer_;
37 Vector2i activeVoxelsTextureSize_;
38 GlTexture2 activeVoxelsTex_;
42 void render_(
const ModelBaseRenderParams& params,
const ModelRenderParams* nonPickerParams,
unsigned geomId );
43 void bindVolume_(
bool picker );
53 RenderBufferRef<unsigned> loadActiveVoxelsTextureBuffer_();
Definition MRIRenderObject.h:134
Definition MRObjectVoxels.h:17
Definition MRRenderVolumeObject.h:15
virtual size_t heapBytes() const override
returns the amount of memory this object occupies on heap
RenderVolumeObject(const VisualObject &visObj)
virtual void forceBindAll() override
binds all data for this render object, not to bind ever again (until object becomes dirty)
virtual bool render(const ModelRenderParams ¶ms) override
virtual size_t glBytes() const override
returns the amount of memory this object allocated in OpenGL
virtual void renderPicker(const ModelBaseRenderParams ¶ms, unsigned geomId) override
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