18 #include <osg/StateAttribute>
58 static bool getVPShaderVector(osg::StateSet *ss, osg::State& state,
unsigned int &shaderHash,
59 std::vector<unsigned int> &vertShaderVector, std::vector<unsigned int> &fragShaderVector,
bool skipShadowShaders,
bool skipMultiViewShaders);
62 static bool addDegenerateShadersIfNeeded(osg::StateSet *ss, osg::State& state,
63 std::vector<unsigned int> &vertShaderVector, std::vector<unsigned int> &fragShaderVector,
bool skip_shadow_shaders =
false);
65 static void restoreEverything(osg::State& state);
68 static void restoreOpenGLMode(
const osg::State& state,
int stateToSet);
71 static void restoreOpenGLStateAttribute(osg::State& state, osg::StateAttribute::Type type);
74 static void restoreOpenGLProgram(
const osg::State& state);
77 static void restoreOpenGLFBO(
const osg::State& state);
80 static void markAllTextureAttributesDirty(osg::State & state);
86 static void generateModelInstanceShaders(osg::Node *node,
const std::string& shaderName);
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Contains makVrv::DtVirtualBaseClass class.
Miscellaneous shader utilities for osg.
Definition: DtOsgShaderUtils.h:36
Contains DLL export macros.