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

The DrawableTrackballUniforms class is responsible for managing the shader uniforms related to a drawable trackball. More...

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

Static Public Member Functions

static void bind ()
 
static void setDragging (bool dragging)
 

Static Private Attributes

static constexpr float DRAGGING_ALPHA = 0.9f
 
static constexpr float NOT_DRAGGING_ALPHA = 0.5f
 
static std::array< float, 4 > sTrackBallSettings
 
static Uniform sTrackballSettingsUniform
 

Detailed Description

The DrawableTrackballUniforms class is responsible for managing the shader uniforms related to a drawable trackball.

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

Member Data Documentation

◆ sTrackBallSettings

std::array<float, 4> vcl::DrawableTrackballUniforms::sTrackBallSettings
inlinestaticprivate
Initial value:
=
{NOT_DRAGGING_ALPHA, 0, 0, 0}

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