X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogram.h;h=ac8e24b54b6a8143510ac743d6676e963e3b78ae;hb=0646b330ffa9ea7fd77e2078257499b1d58ac0f7;hp=80ddf15ca33e282ff71a17cd79695db4fd324972;hpb=541bf02f18ad27e8c8101e4255586ddbfef40916;p=libs%2Fgl.git diff --git a/source/program.h b/source/program.h index 80ddf15c..ac8e24b5 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,6 +43,7 @@ public: bool specular; bool normalmap; bool shadow; + bool transform; StandardFeatures(); @@ -67,7 +61,7 @@ public: private: unsigned id; std::list shaders; - bool del_shaders; + std::list owned_data; bool linked; std::map uniforms; @@ -81,13 +75,13 @@ public: virtual ~Program(); void attach_shader(Shader &shader); + void attach_shader_owned(Shader *shader); void detach_shader(Shader &shader); void add_standard_shaders(const StandardFeatures &); private: static std::string process_standard_source(const char **, const std::string &); public: const std::list &get_shaders() const { return shaders; } - void set_del_shaders(bool); void bind_attribute(unsigned, const std::string &); void link(); bool is_linked() const { return linked; }