Struct RenderQueueElement
Defined in File RenderQueue.h
Struct Documentation
-
struct RenderQueueElement
Element in a render queue: a proxy, the shader to draw it with, and its per-object matrices.
Public Members
-
RenderableProxy *proxy = nullptr
The object to render (non-owning pointer, owned by CompiledViewport)
-
shader_id_t shader = 0
-
float depth = 0
Eye-space depth of the object (larger is farther), for sorting
-
uint64_t batchKey = 0
Opaque elements with the same shader and the same nonzero key (the RenderableProxy::id() of their geometry) can be drawn together in one instanced draw call. Zero: always drawn on its own.
-
mrpt::math::CMatrixFloat44 m_matrix
Model, view-model and projection-view-model matrices of the object
-
mrpt::math::CMatrixFloat44 mv_matrix
-
mrpt::math::CMatrixFloat44 pmv_matrix
-
RenderableProxy *proxy = nullptr