allow creating shaders from file sources and specifying shader source length

This commit is contained in:
josh committed 2015-06-11 18:36:26 -04:00
1 parent f7955dea0b
commit 71cff1c45e
2 files changed
+26 -5

No files matched your search

+3 -1
View File
@@ -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; }