25 #ifndef __glfShader_hh__
26 #define __glfShader_hh__
28 #include "glfCommon.hh"
50 void Create(GLenum type);
57 void Create(GLenum type,
const std::string& sourceCode);
64 void CreateFromFile(GLenum type,
const std::string& fileName);
73 std::string GetInfoLog()
const;
78 GLuint GetShaderID()
const;
101 #endif // __glfShader_hh__
A GLSL vertex shader or fragment shader, which must be linked in a shader program.
GLenum GetType()
Returns the OpenGL id of the shader.