Visual Computing Library  devel
Loading...
Searching...
No Matches
vcl::DrawableMeshUniforms Class Reference

The DrawableMeshUniforms class is responsible for managing the shader uniforms related to a drawable mesh. More...

#include <vclib/bgfx/drawable/uniforms/drawable_mesh_uniforms.h>

Static Public Member Functions

static void bind ()
 
template<MeshConcept MeshType>
static void setColor (const MeshType &m)
 
static void setFirstChunkIndex (uint firstChunkIndex)
 
static void setMeshId (uint meshId)
 

Static Private Attributes

static std::array< float, 4 > sMeshColor = {0.5, 0.5, 0.5, 1.0}
 
static Uniform sMeshColorUniform
 
static std::array< float, 4 > sMeshData = {0.0, 0.0, 0.0, 0.0}
 
static Uniform sMeshDataUniform
 

Detailed Description

The DrawableMeshUniforms class is responsible for managing the shader uniforms related to a drawable mesh.

It provides a static interface to set the uniform data based on the current mesh data and to bind the uniforms to the shader programs.


The documentation for this class was generated from the following file: