Choreonoid  1.8
Public Member Functions | Protected Member Functions | List of all members
cnoid::LightingProgram Class Referenceabstract

#include <ShaderPrograms.h>

Inheritance diagram for cnoid::LightingProgram:
cnoid::ShaderProgram cnoid::BasicLightingProgram cnoid::MinimumLightingProgram cnoid::MaterialLightingProgram cnoid::FullLightingProgram

Public Member Functions

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

Protected Member Functions

 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)

Additional Inherited Members

- Public Types inherited from cnoid::ShaderProgram
enum  Capability { NoCapability = 0, Lighting = 1, Transparency = 2 }

Constructor & Destructor Documentation

◆ LightingProgram()

LightingProgram::LightingProgram ( std::initializer_list< ShaderSource sources)

Member Function Documentation

◆ maxNumLights()

virtual int cnoid::LightingProgram::maxNumLights ( ) const
pure virtual

◆ setFog()

void LightingProgram::setFog ( const SgFog fog)

Reimplemented in cnoid::BasicLightingProgram.

◆ setLight()

virtual bool cnoid::LightingProgram::setLight ( int  index,
const SgLight light,
const Isometry3 T,
const Isometry3 view,
bool  shadowCasting 
pure virtual

◆ setNumLights()

virtual void cnoid::LightingProgram::setNumLights ( int  n)
pure virtual

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