]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/module.cpp
Split Module into a base class and format-specific class
[libs/gl.git] / source / core / module.cpp
index 009733a977041458a2f0602e4e05353ba6d84515..74e886b06bcc06895cedcd9b0b77b00e5f0bc783 100644 (file)
@@ -7,9 +7,6 @@ using namespace std;
 namespace Msp {
 namespace GL {
 
-Module::Module()
-{ }
-
 void Module::set_source(const string &src)
 {
        SL::Compiler compiler;
@@ -29,7 +26,8 @@ void Module::load_source(IO::Base &io, const string &name)
        load_source(io, 0, name);
 }
 
-void Module::compile(SL::Compiler &compiler)
+
+void GlslModule::compile(SL::Compiler &compiler)
 {
        compiler.compile(SL::Compiler::MODULE);
        prepared_source = compiler.get_combined_glsl();