-/* $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();
private:
unsigned id;
std::list<Shader *> shaders;
- bool del_shaders;
+ std::list<Shader *> owned_data;
bool linked;
std::map<std::string, UniformInfo> uniforms;
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<Shader *> &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; }