41 static std::string loadShaderSource(
const std::string& strFileName);
44 static void saveShaderSource(
const std::string& strFileName,
const std::string& strSource);
47 static unsigned getNumGPUTextureImageUnits();
52 static void bindSingleAttribute(
int shader, std::string uniName,
bool value,
void *hashPtr);
58 static void bindAttributes(osg::Node *node,
int shader,
int contextID);
65 static bool getVPShaderVector(osg::StateSet *ss,
const osg::State& state,
unsigned int &shaderHash, std::vector<unsigned int> &vertShaderVector, std::vector<unsigned int> &fragShaderVector);
69 static void deleteShaders(std::vector<unsigned int> shaderVector);
74 static bool compileShader(
const char* source,
unsigned int shaderType,
unsigned int &shaderID);