3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_PROGRAMDATA_H_
9 #define MSP_GL_PROGRAMDATA_H_
12 #include <msp/datafile/loader.h>
21 Stores uniform variables for a shader program.
26 class Loader: public DataFile::Loader
33 Loader(ProgramData &, Program &);
35 void uniform1i(const std::string &, int);
36 void uniform1f(const std::string &, float);
37 void uniform2f(const std::string &, float, float);
38 void uniform3f(const std::string &, float, float, float);
39 void uniform4f(const std::string &, float, float, float, float);
43 std::map<int, Uniform *> data;
45 ProgramData(const ProgramData &);
46 ProgramData &operator=(const ProgramData &);
51 void uniform(int, Uniform *);
52 void uniform(int, int);
53 void uniform(int, float);
54 void uniform(int, float, float);
55 void uniform2(int, const float *);
56 void uniform(int, float, float, float);
57 void uniform3(int, const float *);
58 void uniform(int, float, float, float, float);
59 void uniform4(int, const float *);
60 void uniform_matrix4(int, const float *);