struct mrpt::opengl::CRenderizable::RenderContext
Overview
Context for calls to render()
#include <mrpt/opengl/CRenderizable.h> struct RenderContext { // fields const mrpt::opengl::TRenderMatrices* state = nullptr; const mrpt::opengl::Program* shader = nullptr; mrpt::opengl::shader_id_t shader_id; const mrpt::opengl::TLightParameters* lights = nullptr; std::optional<TCullFace> activeCullFace; std::optional<const mrpt::opengl::TLightParameters*> activeLights; std::optional<int> activeTextureUnit; // construction RenderContext(); };
Fields
std::optional<const mrpt::opengl::TLightParameters*> activeLights
The light that is currently bound to the shader uniforms:
std::optional<int> activeTextureUnit
The texture that is currently bound to the shader uniforms: