-/* $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_
bool specular;
bool normalmap;
bool shadow;
+ bool transform;
StandardFeatures();
std::string create_flags() const;
};
+ struct UniformInfo
+ {
+ std::string name;
+ int location;
+ int size;
+ GLenum type;
+ };
+
private:
unsigned id;
std::list<Shader *> shaders;
bool del_shaders;
bool linked;
+ std::map<std::string, UniformInfo> uniforms;
public:
Program();
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; }
+ bool is_linked() const { return linked; }
std::string get_info_log() const;
void bind() const;
int get_uniform_location(const std::string &) const;