#ifndef MSP_GL_PROGRAM_H_
#define MSP_GL_PROGRAM_H_
-#include <list>
#include <string>
+#include <vector>
#include <msp/datafile/objectloader.h>
#include "bindable.h"
#include "gl.h"
void attribute(unsigned, const std::string &);
void fragment_shader(const std::string &);
+ void geometry_shader(const std::string &);
void standard();
void vertex_shader(const std::string &);
};
LayoutHash layout_hash;
};
- typedef std::list<Shader *> ShaderList;
+ typedef std::vector<Shader *> ShaderList;
typedef std::map<std::string, UniformInfo> UniformMap;
typedef std::map<std::string, UniformBlockInfo> UniformBlockMap;
/// Constructs a Program with standard features.
Program(const ProgramBuilder::StandardFeatures &);
+ /// Constructs a Program from unified source code using ProgramCompiler.
+ Program(const std::string &);
+
/// Constructs a Program from vertex and fragment shader source code.
Program(const std::string &, const std::string &);