X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogram.h;h=d2032a5cd46843e36def08c91f8a95d699025bd1;hp=682ac99fb895b02498a9f9054735f69c558d44a0;hb=HEAD;hpb=1431f24f29bd6862d547b831c40b2686ff56d1ef diff --git a/source/program.h b/source/program.h deleted file mode 100644 index 682ac99f..00000000 --- a/source/program.h +++ /dev/null @@ -1,47 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GL_PROGRAM_H_ -#define MSP_GL_PROGRAM_H_ - -#include -#include -#include -#include "shader.h" -#include "types.h" - -namespace Msp { -namespace GL { - -class Shader; - -class Program -{ -public: - Program(); - ~Program(); - - void attach_shader(Shader &shader); - void detach_shader(Shader &shader); - bool link(); - int get_param(GLenum param) const; - std::string get_info_log() const; - void bind(); - - static void unbind(); -private: - uint id; - std::list shaders; - bool linked; - - static Program *cur_prog; -}; - -} // namespace GL -} // namespace Msp - -#endif