qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Public Member Functions | Static Public Member Functions | List of all members
ccColorRampShader Class Reference
Inheritance diagram for ccColorRampShader:
Inheritance graph
[legend]
Collaboration diagram for ccColorRampShader:
Collaboration graph
[legend]

Public Member Functions

 ccColorRampShader ()
 Default constructor.
 
virtual ~ccColorRampShader ()
 Destructor.
 
bool setup (QOpenGLFunctions_2_1 *glFunc, float minSatRel, float maxSatRel, unsigned colorSteps, const ccColorScale::Shared &colorScale)
 Setups shader. More...
 

Static Public Member Functions

static unsigned MaxColorRampSize ()
 Returns the maximum color ramp size.
 
static GLint MinRequiredBytes ()
 Returns the minimum memory required on the shader side. More...
 

Member Function Documentation

◆ MinRequiredBytes()

GLint ccColorRampShader::MinRequiredBytes ( )
static

Returns the minimum memory required on the shader side.

See GL_MAX_FRAGMENT_UNIFORM_COMPONENTS

◆ setup()

bool ccColorRampShader::setup ( QOpenGLFunctions_2_1 *  glFunc,
float  minSatRel,
float  maxSatRel,
unsigned  colorSteps,
const ccColorScale::Shared colorScale 
)

Setups shader.

Shader must have already been stared!


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