#ifndef MSP_GL_PROGRAM_H_
#define MSP_GL_PROGRAM_H_
+#include <map>
#include <string>
#include <vector>
#include <msp/datafile/objectloader.h>
-#include "gl.h"
#include "module.h"
#include "reflectdata.h"
-#include "vertexformat.h"
namespace Msp {
namespace GL {
std::map<unsigned, int> spec_values;
};
+ struct UniformCall
+ {
+ using FuncPtr = void (*)(unsigned, unsigned, const void *);
+
+ unsigned location;
+ unsigned size;
+ FuncPtr func;
+
+ UniformCall(unsigned l, unsigned s, FuncPtr f): location(l), size(s), func(f) { }
+ };
+
unsigned id;
unsigned stage_ids[MAX_STAGES];
bool linked;
ReflectData reflect_data;
+ std::vector<UniformCall> uniform_calls;
std::string debug_name;
public: