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

#include <ShaderPrograms.h>

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

Public Member Functions

virtual void initialize () override
 
virtual void activate () override
 
virtual void setMaterial (const SgMaterial *material) override
 
virtual void setVertexColorEnabled (bool on) override
 
void setColorTextureIndex (int textureIndex)
 
int colorTextureIndex () const
 
void setTextureEnabled (bool on)
 
void setMinimumTransparency (float t)
 
- Public Member Functions inherited from cnoid::BasicLightingProgram
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 deactivate ()
 
bool isActive () const
 
virtual void setTransform (const Matrix4 &PV, const Isometry3 &V, const Affine3 &M, const Matrix4 *L=nullptr)
 
int capabilities () const
 
bool hasCapability (int capability) const
 

Protected Member Functions

 MaterialLightingProgram (std::initializer_list< ShaderSource > sources)
 
 ~MaterialLightingProgram ()
 
- Protected Member Functions inherited from cnoid::BasicLightingProgram
 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

◆ MaterialLightingProgram()

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

◆ ~MaterialLightingProgram()

MaterialLightingProgram::~MaterialLightingProgram ( )
protected

Member Function Documentation

◆ activate()

void MaterialLightingProgram::activate ( )
overridevirtual

Reimplemented from cnoid::ShaderProgram.

Reimplemented in cnoid::FullLightingProgram.

◆ colorTextureIndex()

int MaterialLightingProgram::colorTextureIndex ( ) const

◆ initialize()

void MaterialLightingProgram::initialize ( )
overridevirtual

Reimplemented from cnoid::BasicLightingProgram.

Reimplemented in cnoid::FullLightingProgram.

◆ setColorTextureIndex()

void MaterialLightingProgram::setColorTextureIndex ( int  textureIndex)

◆ setMaterial()

void MaterialLightingProgram::setMaterial ( const SgMaterial material)
overridevirtual

Reimplemented from cnoid::ShaderProgram.

◆ setMinimumTransparency()

void MaterialLightingProgram::setMinimumTransparency ( float  t)

◆ setTextureEnabled()

void MaterialLightingProgram::setTextureEnabled ( bool  on)

◆ setVertexColorEnabled()

void MaterialLightingProgram::setVertexColorEnabled ( bool  on)
overridevirtual

Reimplemented from cnoid::ShaderProgram.


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