cherish
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ProgramPolygon Class Reference
Inheritance diagram for ProgramPolygon:
ProgramEntity2D ProgramLineSegment

Public Member Functions

virtual void initialize (osg::StateSet *state, osg::Camera *camera, osg::MatrixTransform *t, bool isFogged)
 
virtual void updateIsFogged (bool f)
 
bool getIsFogged () const
 
- Public Member Functions inherited from ProgramEntity2D
virtual void initialize (osg::StateSet *state, osg::Camera *camera, osg::MatrixTransform *t)
 
void updateTransform (osg::MatrixTransform *t)
 
osg::MatrixTransform * getTransform () const
 
osg::Camera * getCamera () const
 

Protected Member Functions

virtual bool addPresetShaders ()
 
virtual bool addPresetUniforms ()
 
- Protected Member Functions inherited from ProgramEntity2D
template<typename T >
bool addUniform (const std::string &name, osg::Uniform::Type type, T *updateCallback=0)
 
bool addUniformCanvasMatrix ()
 
template<typename T >
bool addUniform (const std::string &name, osg::Uniform::Type type, T value)
 

Protected Attributes

bool m_isFogged
 
- Protected Attributes inherited from ProgramEntity2D
osg::observer_ptr< osg::StateSet > m_state
 
osg::observer_ptr< osg::Camera > m_camera
 
osg::observer_ptr< osg::MatrixTransform > m_transform
 

Member Function Documentation

§ updateIsFogged()

void ProgramPolygon::updateIsFogged ( bool  f)
virtual

A method to update one of the uniforms of the state set - fog factor.

Reimplemented in ProgramLineSegment.


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