X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftrack.cpp;fp=source%2F3d%2Ftrack.cpp;h=f59e61c236926dab6669849b061192ef556488f5;hb=4b7008978ce5b67e7e1db14b4a359e4ab1881bbd;hp=c8bf0e6309211c1308bd6a56bbba803934e37ac5;hpb=fa7cc825ea7aee9328ecd03b67617847fd128f85;p=r2c2.git diff --git a/source/3d/track.cpp b/source/3d/track.cpp index c8bf0e6..f59e61c 100644 --- a/source/3d/track.cpp +++ b/source/3d/track.cpp @@ -1,13 +1,14 @@ /* $Id$ This file is part of R²C² -Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa +Copyright © 2006-2011 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ #include #include #include +#include #include "libr2c2/tracktype.h" #include "endpoint.h" #include "layout.h" @@ -95,17 +96,15 @@ GL::Matrix Track3D::get_matrix() const return matrix; } -void Track3D::setup_render(const GL::Tag &) const +void Track3D::setup_render(Msp::GL::Renderer &renderer, const GL::Tag &) const { - GL::MatrixStack::modelview().push(); - GL::MatrixStack::modelview() *= get_matrix(); + renderer.matrix_stack() *= get_matrix(); glPushName(reinterpret_cast(this)); } -void Track3D::finish_render(const GL::Tag &) const +void Track3D::finish_render(Msp::GL::Renderer &, const GL::Tag &) const { glPopName(); - GL::MatrixStack::modelview().pop(); } } // namespace R2C2