#include <list>
#include <string>
-#include <GL/gl.h>
#include <msp/datafile/loader.h>
+#include "gl.h"
#include "types.h"
namespace Msp {
bool del_shaders;
bool linked;
- static Program *cur_prog;
+ static const Program *cur_prog;
public:
class Loader: public DataFile::Loader
Program();
Program(const std::string &, const std::string &);
+private:
+ void init();
+public:
virtual ~Program();
void attach_shader(Shader &shader);
int get_param(GLenum param) const;
bool get_linked() const { return linked; }
std::string get_info_log() const;
- void bind();
+ void bind() const;
int get_uniform_location(const std::string &) const;
static void unbind();