struct mrpt::opengl::RenderQueueElement

Overview

Element in a render queue: a proxy, the shader to draw it with, and its per-object matrices.

#include <mrpt/opengl/RenderQueue.h>

struct RenderQueueElement
{
    // fields

    RenderableProxy* proxy = nullptr;
    shader_id_t shader = 0;
    float depth = 0;
    mrpt::math::CMatrixFloat44 m_matrix;
    mrpt::math::CMatrixFloat44 mv_matrix;
    mrpt::math::CMatrixFloat44 pmv_matrix;
};

Fields

RenderableProxy* proxy = nullptr

The object to render (non-owning pointer, owned by CompiledViewport)

float depth = 0

Eye-space depth of the object (larger is farther), for sorting.

mrpt::math::CMatrixFloat44 m_matrix

Model, view-model and projection-view-model matrices of the object.