]> git.tdb.fi Git - libs/gl.git/blobdiff - source/shader.h
Add Uniform* classes to store uniform data of Programs
[libs/gl.git] / source / shader.h
index 4e02b08464ffbb2dbd00ef24806c7311a7d6c8d5..dfa5af3b5c18da91ed15fd062b32f7d5f8568ff0 100644 (file)
@@ -25,12 +25,13 @@ class Shader
 {
 public:
        Shader(ShaderType t);
+       Shader(ShaderType t, const std::string &);
        ~Shader();
 
        void source(sizei count, const char **str, const int *len);
        void source(const std::string &str);
        void source(const char *str, int len);
-       bool compile();
+       void compile();
        uint get_id() const { return id; }
        bool get_compiled() const { return compiled; }
        int get_param(GLenum param) const;