X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fshader.h;h=bab11a7e9603e8bcc32652427b20ade4e7796267;hb=HEAD;hp=06f769ccb94d8d66b7025fecfcc3de70688a8f10;hpb=dc1d1159a61f378bda11e5989ad694a86b9a3c77;p=libs%2Fgl.git diff --git a/source/shader.h b/source/shader.h deleted file mode 100644 index 06f769cc..00000000 --- a/source/shader.h +++ /dev/null @@ -1,50 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GL_SHADER_H_ -#define MSP_GL_SHADER_H_ - -#include -#include "gl.h" -#include "types.h" - -namespace Msp { -namespace GL { - -enum ShaderType -{ - FRAGMENT_SHADER = GL_FRAGMENT_SHADER, - VERTEX_SHADER = GL_VERTEX_SHADER -}; - -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); - void compile(); - uint get_id() const { return id; } - bool get_compiled() const { return compiled; } - int get_param(GLenum param) const; - std::string get_info_log() const; -private: - uint id; - bool compiled; -}; - -} // namespace GL -} // namespace Msp - -#endif