]> git.tdb.fi Git - libs/gl.git/blob - source/core/module.h
b1c0f8abebda67ac56742507277bae9ccb92af22
[libs/gl.git] / source / core / module.h
1 #ifndef MSP_GL_MODULE_H_
2 #define MSP_GL_MODULE_H_
3
4 #include <string>
5 #include <msp/io/base.h>
6 #include "glsl/sourcemap.h"
7
8 namespace Msp {
9 namespace GL {
10
11 class Resources;
12
13 class Module
14 {
15 private:
16         std::string prepared_source;
17         SL::SourceMap source_map;
18
19 public:
20         Module();
21
22         void set_source(const std::string &);
23         void load_source(IO::Base &, Resources *, const std::string &);
24         void load_source(IO::Base &, const std::string &);
25
26         const std::string &get_prepared_source() const { return prepared_source; }
27         const SL::SourceMap &get_source_map() const { return source_map; }
28 };
29
30 } // namespace GL
31 } // namespace Msp
32
33 #endif