X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fshader.h;h=06f769ccb94d8d66b7025fecfcc3de70688a8f10;hb=927a1aa0a3a27e463ec0efc08bd08e7c4e969909;hp=43d03ce109cd61343099db8c5b9a11df6c27d398;hpb=3f285d3f4fd0a6790bf1efa780284dc7ba2287a2;p=libs%2Fgl.git diff --git a/source/shader.h b/source/shader.h index 43d03ce1..06f769cc 100644 --- a/source/shader.h +++ b/source/shader.h @@ -9,7 +9,7 @@ Distributed under the LGPL #define MSP_GL_SHADER_H_ #include -#include +#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;