X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Froot.cpp;h=17416469fbb7961bc5c5ca6bb66973cda0a0fa14;hb=326def6adb29e42ace7a1f1e8455b6d710a23588;hp=fbb4cc6e5efc887539228a79f0d2999240ba0bf2;hpb=d5cbd2d6a5dda7fdfea90484dabb363b9ab62b0c;p=libs%2Fgltk.git diff --git a/source/root.cpp b/source/root.cpp index fbb4cc6..1741646 100644 --- a/source/root.cpp +++ b/source/root.cpp @@ -5,6 +5,7 @@ Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ +#include #include #include #include @@ -78,6 +79,15 @@ void Root::tick() } } +void Root::render() const +{ + GL::MatrixStack::projection() = GL::Matrix::ortho_bottomleft(geom.w, geom.h); + GL::MatrixStack::modelview() = GL::Matrix(); + GL::Bind bind_blend(GL::Blend::alpha()); + + Widget::render(); +} + void Root::button_press_event(int x, int y, unsigned btn, unsigned mod) { if(visible)