]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / program.h
diff --git a/source/program.h b/source/program.h
deleted file mode 100644 (file)
index 63d43e0..0000000
+++ /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 <list>
-#include <string>
-#include <msp/datafile/objectloader.h>
-#include "bindable.h"
-#include "gl.h"
-
-namespace Msp {
-namespace GL {
-
-class Shader;
-
-class Program: public Bindable<Program>
-{
-private:
-       unsigned id;
-       std::list<Shader *> shaders;
-       bool del_shaders;
-       bool linked;
-
-public:
-       class Loader: public DataFile::ObjectLoader<Program>
-       {
-       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<Shader *> &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