struct mrpt::opengl::Viewport::PerThreadData

#include <mrpt/opengl/Viewport.h>

struct PerThreadData
{
    //
fields

    TRenderMatrices state;
    std::map<shader_id_t, mrpt::opengl::Program::Ptr> shaders;
    std::map<shader_id_t, mrpt::opengl::Program::Ptr> shadersShadow1st;
    std::map<shader_id_t, mrpt::opengl::Program::Ptr> shadersShadow2nd;

    // construction

    PerThreadData();
};

Fields

TRenderMatrices state

Info updated with each “render()” and used in “get3DRayForPixelCoord”.

std::map<shader_id_t, mrpt::opengl::Program::Ptr> shaders

Default shader programs.

std::map<shader_id_t, mrpt::opengl::Program::Ptr> shadersShadow1st

Shader programs for 1st and 2nd passes while rendering with shadows.