OpenSceneGraph
3.4.0
|
ShadowedScene provides a mechansim for decorating a scene that the needs to have shadows cast upon it. More...
Public Member Functions | |
ShadowedScene (ShadowTechnique *st=0) | |
ShadowedScene (const ShadowedScene &es, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Node (osgShadow, ShadowedScene) | |
virtual void | traverse (osg::NodeVisitor &nv) |
Traverse downwards : calls children's accept method with NodeVisitor. | |
void | setShadowSettings (ShadowSettings *ss) |
ShadowSettings * | getShadowSettings () |
const ShadowSettings * | getShadowSettings () const |
void | setShadowTechnique (ShadowTechnique *technique) |
ShadowTechnique * | getShadowTechnique () |
const ShadowTechnique * | getShadowTechnique () const |
void | cleanSceneGraph () |
Clean scene graph from any shadow technique specific nodes, state and drawables. | |
void | dirty () |
Dirty any cache data structures held in the attached ShadowTechnqiue. | |
virtual void | resizeGLObjectBuffers (unsigned int maxSize) |
Resize any per context GLObject buffers to specified size. | |
virtual void | releaseGLObjects (osg::State *=0) const |
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. | |
void | setReceivesShadowTraversalMask (unsigned int mask) |
deprecated, moved to ShadowSettings. | |
unsigned int | getReceivesShadowTraversalMask () const |
deprecated, moved to ShadowSettings. | |
void | setCastsShadowTraversalMask (unsigned int mask) |
deprecated, moved to ShadowSettings. | |
unsigned int | getCastsShadowTraversalMask () const |
deprecated, moved to ShadowSettings. | |
Protected Member Functions | |
virtual | ~ShadowedScene () |
Protected Attributes | |
osg::ref_ptr< ShadowSettings > | _shadowSettings |
osg::ref_ptr< ShadowTechnique > | _shadowTechnique |
ShadowedScene provides a mechansim for decorating a scene that the needs to have shadows cast upon it.
osgShadow::ShadowedScene::ShadowedScene | ( | const ShadowedScene & | es, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) |
virtual osgShadow::ShadowedScene::~ShadowedScene | ( | ) | [protected, virtual] |
Clean scene graph from any shadow technique specific nodes, state and drawables.
void osgShadow::ShadowedScene::dirty | ( | ) |
Dirty any cache data structures held in the attached ShadowTechnqiue.
unsigned int osgShadow::ShadowedScene::getCastsShadowTraversalMask | ( | ) | const [inline] |
deprecated, moved to ShadowSettings.
unsigned int osgShadow::ShadowedScene::getReceivesShadowTraversalMask | ( | ) | const [inline] |
deprecated, moved to ShadowSettings.
ShadowSettings* osgShadow::ShadowedScene::getShadowSettings | ( | ) | [inline] |
const ShadowSettings* osgShadow::ShadowedScene::getShadowSettings | ( | ) | const [inline] |
ShadowTechnique* osgShadow::ShadowedScene::getShadowTechnique | ( | ) | [inline] |
const ShadowTechnique* osgShadow::ShadowedScene::getShadowTechnique | ( | ) | const [inline] |
osgShadow::ShadowedScene::META_Node | ( | osgShadow | , |
ShadowedScene | |||
) |
virtual void osgShadow::ShadowedScene::releaseGLObjects | ( | osg::State * | = 0 | ) | const [virtual] |
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context.
Otherwise, releases OpenGL objects for all graphics contexts.
Reimplemented from osg::Group.
virtual void osgShadow::ShadowedScene::resizeGLObjectBuffers | ( | unsigned int | maxSize | ) | [virtual] |
Resize any per context GLObject buffers to specified size.
Reimplemented from osg::Group.
void osgShadow::ShadowedScene::setCastsShadowTraversalMask | ( | unsigned int | mask | ) | [inline] |
deprecated, moved to ShadowSettings.
void osgShadow::ShadowedScene::setReceivesShadowTraversalMask | ( | unsigned int | mask | ) | [inline] |
deprecated, moved to ShadowSettings.
void osgShadow::ShadowedScene::setShadowTechnique | ( | ShadowTechnique * | technique | ) |
virtual void osgShadow::ShadowedScene::traverse | ( | osg::NodeVisitor & | ) | [virtual] |
Traverse downwards : calls children's accept method with NodeVisitor.
Reimplemented from osg::Group.
![]() | Generated at Tue Dec 8 2015 00:14:30 for the OpenSceneGraph by doxygen 1.7.6.1. |