47 static std::string loadShaderSource(
const std::string& strFileName);
50 static void saveShaderSource(
const std::string& strFileName,
const std::string& strSource);
53 static std::string fixVersionDirective(
const std::string &shaderString);
56 static void deleteShaders(
const std::vector<unsigned int>& shaderVector);
61 static bool compileShader(
const std::string& shader_name,
const std::string& source, DtGlShaderType shaderType,
unsigned int &shaderID);
64 DtGlShader(
const std::string& name,
const std::string& source, DtGlShaderType type);
73 unsigned int id()
const;
101 static bool createProgram(
const std::string& name,
const VectorUnsignedInts& shaders,
unsigned int&
id);
116 bool isValid()
const;
119 unsigned int id()
const;