allow creating shaders from file sources and specifying shader source length
This commit is contained in:
1 parent
f7955dea0b
commit
71cff1c45e
2 files changed
+26
-5
No files matched your search
@@ -12,7 +12,9 @@ namespace glcxx
|
||||
|
||||
~Shader();
|
||||
|
||||
void create(GLenum shaderType, const char *source);
|
||||
void create(GLenum shader_type, const char * source, int length = -1);
|
||||
|
||||
void create_from_file(GLenum shader_type, const char * filename);
|
||||
|
||||
GLuint id() const { return m_id; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user