1 #ifndef MSP_GL_MODULE_H_
2 #define MSP_GL_MODULE_H_
5 #include <msp/io/base.h>
6 #include "glsl/compiler.h"
7 #include "glsl/sourcemap.h"
27 virtual Format get_format() const = 0;
29 void set_source(const std::string &);
30 void load_source(IO::Base &, Resources *, const std::string &);
31 void load_source(IO::Base &, const std::string &);
33 virtual void compile(SL::Compiler &) = 0;
36 class GlslModule: public Module
39 std::string prepared_source;
40 SL::SourceMap source_map;
43 virtual Format get_format() const { return GLSL; }
46 virtual void compile(SL::Compiler &);
49 const std::string &get_prepared_source() const { return prepared_source; }
50 const SL::SourceMap &get_source_map() const { return source_map; }