![]() |
AGX Dynamics 2.40.0.0
|
#include <RenderStateManager.h>
Public Member Functions | |
ShaderState (const std::string &name, const std::string &program_name) | |
void | addUniform (osg::Uniform *uniform) |
void | apply (osg::Node *node, RenderStateManager::Values value=RenderStateManager::ON) |
void | apply (osg::StateSet *stateset, RenderStateManager::Values value=RenderStateManager::ON) |
Add a ShaderState to a specified stateset with given StateAttributes. | |
osg::Uniform * | findUniform (const std::string &name) |
std::string | getName () const |
std::string | getProgramID () const |
![]() | |
Referenced () | |
Default constructor. | |
Referenced (const Referenced &) | |
template<typename T > | |
T * | as () |
Subclass casting. | |
template<typename T > | |
const T * | as () const |
template<typename T > | |
T * | asSafe () |
Safe subclass casting, return nullptr if template type does not match. | |
template<typename T > | |
const T * | asSafe () const |
int | getReferenceCount () const |
template<typename T > | |
bool | is () const |
Subclass test. | |
Referenced & | operator= (const Referenced &) |
Assignment operator. Will increment the number of references to the referenced object. | |
void | reference (void *ptr=nullptr) const |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. | |
void | unreference (void *ptr=nullptr) const |
Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
void | unreference_nodelete () const |
Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static bool | ValidateCast (const Referenced *object) |
![]() | |
virtual | ~Referenced () |
Destructor. | |
void | allocateObserverVector () const |
void | deleteUsingDeleteHandler () const |
![]() | |
static DeleteHandler * | getDeleteHandler () |
static void | setDeleteHandler (DeleteHandler *handler) |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. | |
![]() | |
Mutex | m_mutex |
ObserverContainer | m_observers |
AtomicValue | m_refCount |
Definition at line 73 of file RenderStateManager.h.
|
inline |
Definition at line 76 of file RenderStateManager.h.
void agxOSG::RenderStateManager::ShaderState::addUniform | ( | osg::Uniform * | uniform | ) |
void agxOSG::RenderStateManager::ShaderState::apply | ( | osg::Node * | node, |
RenderStateManager::Values | value = RenderStateManager::ON |
||
) |
void agxOSG::RenderStateManager::ShaderState::apply | ( | osg::StateSet * | stateset, |
RenderStateManager::Values | value = RenderStateManager::ON |
||
) |
Add a ShaderState to a specified stateset with given StateAttributes.
stateset | - A pointer to the osg::StateSet where the ShaderState will be added. |
value | - The StateAttribute used for the ShaderState, Default is ON. |
osg::Uniform * agxOSG::RenderStateManager::ShaderState::findUniform | ( | const std::string & | name | ) |
|
inline |
Definition at line 78 of file RenderStateManager.h.
|
inline |
Definition at line 80 of file RenderStateManager.h.