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

#include <ShaderPrograms.h>

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

Public Member Functions

virtual void initialize () 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 setFog (const SgFog *fog) override
 
- Public Member Functions inherited from cnoid::ShaderProgram
virtual ~ShaderProgram ()
 
GLSLProgramglslProgram ()
 
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

 BasicLightingProgram (std::initializer_list< ShaderSource > sources)
 
 ~BasicLightingProgram ()
 
- 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)
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ BasicLightingProgram()

BasicLightingProgram::BasicLightingProgram ( std::initializer_list< ShaderSource sources)
protected

◆ ~BasicLightingProgram()

BasicLightingProgram::~BasicLightingProgram ( )
protected

Member Function Documentation

◆ initialize()

void BasicLightingProgram::initialize ( )
overridevirtual

◆ maxNumLights()

int BasicLightingProgram::maxNumLights ( ) const
overridevirtual

◆ setFog()

void BasicLightingProgram::setFog ( const SgFog fog)
overridevirtual

Reimplemented from cnoid::LightingProgram.

◆ setLight()

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

Implements cnoid::LightingProgram.

Reimplemented in cnoid::FullLightingProgram.

◆ setNumLights()

void BasicLightingProgram::setNumLights ( int  n)
overridevirtual

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