38 DtGlShader(
const std::string& name,
const std::string&
source, DtGlShaderType type);
53 virtual bool isValid()
const;
56 virtual unsigned int id()
const;
60 static std::string loadShaderSource(
const std::string& strFileName,
bool logWarning =
true);
63 static void saveShaderSource(
const std::string& strFileName,
const std::string& strSource);
66 static std::string fixVersionDirective(
const std::string &shaderString);
69 static void deleteShaders(
const std::vector<unsigned int>& shaderVector);
74 static bool compileShader(
const std::string& shader_name,
const std::string&
source, DtGlShaderType shaderType,
unsigned int &shaderID);
77 static void printGLSLInfoLog(
unsigned int shader);
A convenience class to represent an OpenGL Shader.
Definition: DtGlShader.h:24
Definition: DtGlShader.h:31
DtGlShaderType
Definition: DtGlShader.h:27
const char * source
Definition: lz4.h:442
unsigned int myShaderID
Definition: DtGlShader.h:80
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18
Definition: DtGlShader.h:32
bool myIsValid
Definition: DtGlShader.h:81
Definition: DtGlShader.h:33
Definition: DtGlShader.h:30