X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.cpp;h=246c8c196ced2222237a9f10af93a71fcb114160;hb=dbdb28962362626a729fc052ee8c8934466b8396;hp=5fc208268d06e117d7b181b6542154fbf47eb450;hpb=4b52d16bc895f9d969383d7a7d6a3558c1972cc5;p=libs%2Fgltk.git diff --git a/source/widget.cpp b/source/widget.cpp index 5fc2082..246c8c1 100644 --- a/source/widget.cpp +++ b/source/widget.cpp @@ -188,12 +188,26 @@ void Widget::set_state(State mask, State bits) rebuild(); } +void Widget::set_animation_interval(const Time::TimeDelta &iv) +{ + if(ivget_parts(); for(Style::PartSeq::const_iterator i=parts.begin(); i!=parts.end(); ++i) { @@ -202,7 +216,6 @@ void Widget::rebuild() else rebuild_special(*i); } - part_cache.end_rebuild(); } void Widget::rebuild_special(const Part &part) @@ -215,8 +228,8 @@ void Widget::render(GL::Renderer &renderer) const if(!style) throw logic_error(format("Attempt to render a widget with null style (class=\"%s\", style_name=\"%s\")", get_class(), style_name)); - GL::MatrixStack::Push _pushm(renderer.matrix_stack()); - renderer.matrix_stack() *= GL::Matrix::translation(geom.x, geom.y, 0); + GL::Renderer::Push _push(renderer); + renderer.transform(GL::Matrix::translation(geom.x, geom.y, 0)); const PartCache::PartList &parts = part_cache.get_parts(); for(PartCache::PartList::const_iterator i=parts.begin(); i!=parts.end(); ++i) {