X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fshader.h;h=bab11a7e9603e8bcc32652427b20ade4e7796267;hb=refs%2Fheads%2Fmaster;hp=9482c4ad3730b1c68e63494f433e1f604a487aca;hpb=953f041e904e97c4435e0229b8d88eabe31e5c3d;p=libs%2Fgl.git diff --git a/source/shader.h b/source/shader.h deleted file mode 100644 index 9482c4ad..00000000 --- a/source/shader.h +++ /dev/null @@ -1,49 +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" - -namespace Msp { -namespace GL { - -enum ShaderType -{ - FRAGMENT_SHADER = GL_FRAGMENT_SHADER_ARB, - VERTEX_SHADER = GL_VERTEX_SHADER_ARB -}; - -class Shader -{ -private: - unsigned id; - bool compiled; - -public: - Shader(ShaderType t); - Shader(ShaderType t, const std::string &); -private: - void init(ShaderType); -public: - ~Shader(); - - void source(unsigned count, const char **str, const int *len); - void source(const std::string &str); - void source(const char *str, int len); - void compile(); - unsigned get_id() const { return id; } - bool is_compiled() const { return compiled; } - std::string get_info_log() const; -}; - -} // namespace GL -} // namespace Msp - -#endif