]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/widget.h
Use a GL::Renderer to render widgets
[libs/gltk.git] / source / widget.h
index ba49b09e44c90a5abd1644dbbd4f9f3ee276afdd..270d2a3f67eb2e1d890dbfc1426a8adac65fe0db 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <string>
 #include <msp/datafile/objectloader.h>
+#include <msp/gl/renderer.h>
 #include "geometry.h"
 #include "partcache.h"
 #include "state.h"
@@ -108,9 +109,9 @@ protected:
        virtual void rebuild_special(const Part &, CachedPart &) { }
 
 public:
-       void render() const;
+       void render(GL::Renderer &) const;
 protected:
-       virtual void render_special(const Part &) const { }
+       virtual void render_special(const Part &, GL::Renderer &) const { }
 
 public:
        // Events