X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogram.h;h=d2032a5cd46843e36def08c91f8a95d699025bd1;hp=63d43e0f800f65b9ac58b7df6017c6bf7b51588f;hb=HEAD;hpb=42ace9ac1350d3ae009bdd2fb335ac1e57d1b36b diff --git a/source/program.h b/source/program.h deleted file mode 100644 index 63d43e0f..00000000 --- a/source/program.h +++ /dev/null @@ -1,68 +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 "bindable.h" -#include "gl.h" - -namespace Msp { -namespace GL { - -class Shader; - -class Program: public Bindable -{ -private: - unsigned id; - std::list shaders; - bool del_shaders; - bool linked; - -public: - class Loader: public DataFile::ObjectLoader - { - public: - Loader(Program &); - - private: - void vertex_shader(const std::string &); - void fragment_shader(const std::string &); - void attribute(unsigned, const std::string &); - virtual void finish(); - }; - - Program(); - Program(const std::string &, const std::string &); -private: - void init(); -public: - virtual ~Program(); - - void attach_shader(Shader &shader); - void detach_shader(Shader &shader); - const std::list &get_shaders() const { return shaders; } - void set_del_shaders(bool); - void bind_attribute(unsigned, const std::string &); - void link(); - int get_param(GLenum param) const; - bool get_linked() const { return linked; } - std::string get_info_log() const; - void bind() const; - int get_uniform_location(const std::string &) const; - - static void unbind(); -}; - -} // namespace GL -} // namespace Msp - -#endif