OpenSceneGraph 2.8.4
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
osgShadow::StandardShadowMap Class Reference
Inheritance diagram for osgShadow::StandardShadowMap:
Inheritance graph
[legend]

List of all members.

Classes

struct  ViewData

Public Types

typedef StandardShadowMap ThisClass
 Convenient typedef used in definition of ViewData struct and methods.
typedef DebugShadowMap BaseClass
 Convenient typedef used in definition of ViewData struct and methods.

Public Member Functions

 StandardShadowMap ()
 Classic OSG constructor.
 StandardShadowMap (const StandardShadowMap &ssm, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Classic OSG cloning constructor.
 META_Object (ViewDependentShadow, StandardShadowMap)
 Declaration of standard OSG object methods.
void setBaseTextureUnit (unsigned int unit)
unsigned int getBaseTextureUnit (void)
void setShadowTextureUnit (unsigned int unit)
unsigned int getShadowTextureUnit (void)
void setBaseTextureCoordIndex (unsigned int index)
unsigned int getBaseTextureCoordIndex (void)
void setShadowTextureCoordIndex (unsigned int index)
unsigned int getShadowTextureCoordIndex (void)
void setTextureSize (const osg::Vec2s &textureSize)
osg::Vec2s getTextureSize ()
void setLight (osg::Light *light)
osg::LightgetLight (void)
osg::ShadergetShadowVertexShader ()
osg::ShadergetShadowFragmentShader ()
osg::ShadergetMainVertexShader ()
osg::ShadergetMainFragmentShader ()
void setShadowVertexShader (osg::Shader *shader)
void setShadowFragmentShader (osg::Shader *shader)
void setMainVertexShader (osg::Shader *shader)
void setMainFragmentShader (osg::Shader *shader)

Protected Member Functions

virtual ~StandardShadowMap (void)
 Classic protected OSG destructor.
virtual void updateTextureCoordIndices (unsigned int baseTexCoordIndex, unsigned int shadowTexCoordIndex)
virtual void searchAndReplaceShaderSource (osg::Shader *, std::string fromString, std::string toString)

Protected Attributes

osg::ref_ptr< osg::Shader_mainVertexShader
osg::ref_ptr< osg::Shader_mainFragmentShader
osg::ref_ptr< osg::Shader_shadowVertexShader
osg::ref_ptr< osg::Shader_shadowFragmentShader
osg::ref_ptr< osg::Light_light
float _polygonOffsetFactor
float _polygonOffsetUnits
osg::Vec2s _textureSize
unsigned int _baseTextureUnit
unsigned int _shadowTextureUnit
unsigned int _baseTextureCoordIndex
unsigned int _shadowTextureCoordIndex

Friends

struct ViewData

Member Typedef Documentation


Constructor & Destructor Documentation

osgShadow::StandardShadowMap::StandardShadowMap ( )

Classic OSG constructor.

osgShadow::StandardShadowMap::StandardShadowMap ( const StandardShadowMap ssm,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

Classic OSG cloning constructor.

virtual osgShadow::StandardShadowMap::~StandardShadowMap ( void  ) [protected, virtual]

Classic protected OSG destructor.


Member Function Documentation

unsigned int osgShadow::StandardShadowMap::getBaseTextureCoordIndex ( void  ) [inline]
unsigned int osgShadow::StandardShadowMap::getBaseTextureUnit ( void  ) [inline]
osg::Light* osgShadow::StandardShadowMap::getLight ( void  ) [inline]
osg::Shader* osgShadow::StandardShadowMap::getMainFragmentShader ( ) [inline]
osg::Shader* osgShadow::StandardShadowMap::getMainVertexShader ( ) [inline]
osg::Shader* osgShadow::StandardShadowMap::getShadowFragmentShader ( ) [inline]
unsigned int osgShadow::StandardShadowMap::getShadowTextureCoordIndex ( void  ) [inline]
unsigned int osgShadow::StandardShadowMap::getShadowTextureUnit ( void  ) [inline]
osg::Shader* osgShadow::StandardShadowMap::getShadowVertexShader ( ) [inline]
osg::Vec2s osgShadow::StandardShadowMap::getTextureSize ( ) [inline]
osgShadow::StandardShadowMap::META_Object ( ViewDependentShadow  ,
StandardShadowMap   
)

Declaration of standard OSG object methods.

virtual void osgShadow::StandardShadowMap::searchAndReplaceShaderSource ( osg::Shader ,
std::string  fromString,
std::string  toString 
) [protected, virtual]
void osgShadow::StandardShadowMap::setBaseTextureCoordIndex ( unsigned int  index) [inline]
void osgShadow::StandardShadowMap::setBaseTextureUnit ( unsigned int  unit) [inline]
void osgShadow::StandardShadowMap::setLight ( osg::Light light) [inline]
void osgShadow::StandardShadowMap::setMainFragmentShader ( osg::Shader shader) [inline]
void osgShadow::StandardShadowMap::setMainVertexShader ( osg::Shader shader) [inline]
void osgShadow::StandardShadowMap::setShadowFragmentShader ( osg::Shader shader) [inline]
void osgShadow::StandardShadowMap::setShadowTextureCoordIndex ( unsigned int  index) [inline]
void osgShadow::StandardShadowMap::setShadowTextureUnit ( unsigned int  unit) [inline]
void osgShadow::StandardShadowMap::setShadowVertexShader ( osg::Shader shader) [inline]
void osgShadow::StandardShadowMap::setTextureSize ( const osg::Vec2s textureSize) [inline]
virtual void osgShadow::StandardShadowMap::updateTextureCoordIndices ( unsigned int  baseTexCoordIndex,
unsigned int  shadowTexCoordIndex 
) [protected, virtual]

Friends And Related Function Documentation

friend struct ViewData [friend]

Member Data Documentation


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

osg logo
Generated at Sun Jan 8 2012 13:16:51 for the OpenSceneGraph by doxygen 1.7.4.