]> git.tdb.fi Git - libs/gl.git/blobdiff - source/shader.h
Inherit Loaders from the ObjectLoader classes
[libs/gl.git] / source / shader.h
index 43d03ce109cd61343099db8c5b9a11df6c27d398..06f769ccb94d8d66b7025fecfcc3de70688a8f10 100644 (file)
@@ -9,7 +9,7 @@ Distributed under the LGPL
 #define MSP_GL_SHADER_H_
 
 #include <string>
-#include <GL/gl.h>
+#include "gl.h"
 #include "types.h"
 
 namespace Msp {
@@ -26,12 +26,15 @@ class Shader
 public:
        Shader(ShaderType t);
        Shader(ShaderType t, const std::string &);
+private:
+       void init(ShaderType);
+public:
        ~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;