15 #include <osg/ref_ptr>
23 #include <boost/thread/shared_mutex.hpp>
34 class DtOpenGLCubeMap;
51 static std::string theClassName();
65 virtual void setPerPixelLightingEnabled(
bool enabled);
68 virtual bool getPerPixelLightingEnabled()
const;
77 virtual void generateShaders(osg::Node* node,
const std::string& name =
"",
bool shareState =
true,
bool force =
false);
80 virtual void ts_generateShaders(osg::Node* node,
DtOsgFileCache& fileCache,
const std::string& name =
"",
bool shareState =
true,
bool force =
false);
84 virtual void removeShaders(osg::Node* node);
87 virtual void ts_removeShaders(osg::Node* node);
91 virtual void optimizeStateSharing(osg::Node* node);
94 virtual const std::string& shaderFolderPath()
const;
97 virtual void disableShaders(osg::StateSet *stateSet);
101 virtual void installEnvironmentMap(osg::Camera* camera);
106 boost::shared_mutex& optimizeStateSetMutex();;
boost::shared_mutex myOptimizeStateSetMutex
Definition: DtOsgShaderManager.h:119
bool myPerPixelLightingEnabled
Definition: DtOsgShaderManager.h:110
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Definition: featureContext.h:37
bool myPendingPerPixelLightingState
Definition: DtOsgShaderManager.h:111
osg::ref_ptr< DtOpenGLCubeMap > myEnvironmentMapTexture
Definition: DtOsgShaderManager.h:115
std::string myShaderFolderPath
Definition: DtOsgShaderManager.h:117
Contains makVrv::DtVirtualBaseClass class.
The OSG implementation of makVrv::DtOsgFileCache. This will cache files as .ive's for quicker load ti...
Definition: DtOsgFileCache.h:56
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtSignalConnectionManager myConnections
Definition: DtOsgShaderManager.h:122
DtOsgShaderManager injects custom shaders into the scenes, and keeps their uniform parameters set to ...
Definition: DtOsgShaderManager.h:41
Base class to provide boost signal/slot management.
bool myPerPixelLightingStateChanged
Definition: DtOsgShaderManager.h:106
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
DtDe & myDe
Definition: DtOsgShaderManager.h:113