X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogram.h;h=c3c6cc03b42685a87b8aa5330b90798333438f3c;hb=6aad00e0661dd515c0bc5a6ca05215bf6718bc75;hp=1e41e84423f8680ba787a83d8ecea5c45d1bc7c7;hpb=8ac93980ef87834fd431c97104baa441561a7ce0;p=libs%2Fgl.git diff --git a/source/program.h b/source/program.h index 1e41e844..c3c6cc03 100644 --- a/source/program.h +++ b/source/program.h @@ -1,10 +1,3 @@ -/* $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_ @@ -50,17 +43,27 @@ public: 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 shaders; bool del_shaders; bool linked; + std::map uniforms; public: Program(); @@ -81,8 +84,7 @@ public: 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;