Choreonoid  1.8
Public Member Functions | List of all members
cnoid::MinimumLightingProgram Class Reference

#include <ShaderPrograms.h>

Inheritance diagram for cnoid::MinimumLightingProgram:
cnoid::LightingProgram cnoid::ShaderProgram

Public Member Functions

 MinimumLightingProgram ()
 
 ~MinimumLightingProgram ()
 
virtual void initialize () override
 
virtual void activate () override
 
virtual void setTransform (const Matrix4 &PV, const Isometry3 &V, const Affine3 &M, const Matrix4 *L) override
 
virtual int maxNumLights () const override
 
virtual bool setLight (int index, const SgLight *light, const Isometry3 &T, const Isometry3 &view, bool shadowCasting) override
 
virtual void setNumLights (int n) override
 
virtual void setMaterial (const SgMaterial *material) override
 
- Public Member Functions inherited from cnoid::LightingProgram
virtual void setFog (const SgFog *fog)
 
- Public Member Functions inherited from cnoid::ShaderProgram
virtual ~ShaderProgram ()
 
GLSLProgramglslProgram ()
 
virtual void release ()
 
virtual void deactivate ()
 
bool isActive () const
 
virtual void setVertexColorEnabled (bool on)
 
int capabilities () const
 
bool hasCapability (int capability) const
 

Additional Inherited Members

- Public Types inherited from cnoid::ShaderProgram
enum  Capability { NoCapability = 0, Lighting = 1, Transparency = 2 }
 
- Protected Member Functions inherited from cnoid::LightingProgram
 LightingProgram (std::initializer_list< ShaderSource > sources)
 
- Protected Member Functions inherited from cnoid::ShaderProgram
 ShaderProgram ()=default
 
 ShaderProgram (std::initializer_list< ShaderSource > sources)
 
void setCapability (int capability)
 

Constructor & Destructor Documentation

◆ MinimumLightingProgram()

MinimumLightingProgram::MinimumLightingProgram ( )

◆ ~MinimumLightingProgram()

MinimumLightingProgram::~MinimumLightingProgram ( )

Member Function Documentation

◆ activate()

void MinimumLightingProgram::activate ( )
overridevirtual

Reimplemented from cnoid::ShaderProgram.

◆ initialize()

void MinimumLightingProgram::initialize ( )
overridevirtual

Reimplemented from cnoid::ShaderProgram.

◆ maxNumLights()

int MinimumLightingProgram::maxNumLights ( ) const
overridevirtual

◆ setLight()

bool MinimumLightingProgram::setLight ( int  index,
const SgLight light,
const Isometry3 T,
const Isometry3 view,
bool  shadowCasting 
)
overridevirtual

◆ setMaterial()

void MinimumLightingProgram::setMaterial ( const SgMaterial material)
overridevirtual

Reimplemented from cnoid::ShaderProgram.

◆ setNumLights()

void MinimumLightingProgram::setNumLights ( int  n)
overridevirtual

◆ setTransform()

void MinimumLightingProgram::setTransform ( const Matrix4 PV,
const Isometry3 V,
const Affine3 M,
const Matrix4 L 
)
overridevirtual
Parameters
PVProduct of the project matrix and view matrix
VThe transform corresponding to the view matrix
MThe transform corresponding to the model matrix
LThe transform corresponding to the local vertex transform matrix
Note
L is used when the vertex positions are expressed as normalized ([-1.0, 1.0]) integer value

Reimplemented from cnoid::ShaderProgram.


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