OpenSceneGraph
Classes | Namespaces | Macros
ViewDependentShadowTechnique File Reference
#include <osg/Identifier>
#include <osgShadow/ShadowTechnique>
#include <osgShadow/Export>
#include <map>

Classes

class  osgShadow::ViewDependentShadowTechnique
 ViewDependentShadowTechnique is a base class for all View Dependent Shadow techniques. More...
 
struct  osgShadow::ViewDependentShadowTechnique::ViewData
 Base container class for view dependent shadow resources. More...
 

Namespaces

 osgShadow
 The osgShadow library is a NodeKit that extends the core scene graph to add support for a range of shadow techniques.
 

Macros

#define OSGSHADOW_VIEWDEPENDENTSHADOWTECHINIQUE   1
 
#define META_ViewDependentShadowTechniqueData(ShadowTechnique, TechniqueData)
 META_ViewDependentShadowTechniqueData macro defines initViewDependentData method used by derived shadow techniques to initialize their specific ViewData objects. More...
 

Macro Definition Documentation

◆ META_ViewDependentShadowTechniqueData

#define META_ViewDependentShadowTechniqueData (   ShadowTechnique,
  TechniqueData 
)
Value:
virtual ViewDependentShadowTechnique::ViewData * initViewDependentData \
( osgUtil::CullVisitor *cv, ViewDependentShadowTechnique::ViewData * vd ) \
{ \
TechniqueData* td = dynamic_cast<TechniqueData*>( vd ); \
if ( !td ) td = new TechniqueData; \
td->init( this, cv ); \
return td; \
}
Basic NodeVisitor implementation for rendering a scene.
Definition: CullVisitor:48

META_ViewDependentShadowTechniqueData macro defines initViewDependentData method used by derived shadow techniques to initialize their specific ViewData objects.

initViewDependentData will be called from ViewDependentShadowTechnique base class to init derived class

Referenced by osgShadow::ProjectionShadowMap< MinimalBoundsBaseClass, ShadowProjectionAlgorithmClass >::ViewData::frameShadowCastingCamera(), and osgShadow::DebugShadowMap::ViewData::getDebugDump().

◆ OSGSHADOW_VIEWDEPENDENTSHADOWTECHINIQUE

#define OSGSHADOW_VIEWDEPENDENTSHADOWTECHINIQUE   1