-/* $Id$
-
-This file is part of R²C²
-Copyright © 2006-2011 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
#include <cmath>
#include <msp/gl/matrix.h>
#include <msp/gl/renderer.h>
return Vector(pos.x+c*center.x-s*center.y, pos.y+s*center.x+c*center.y, pos.z+0.02);
}
-GL::Matrix Track3D::get_matrix() const
+GL::Matrix Track3D::create_matrix() const
{
const Vector &pos = track.get_position();
float rot = track.get_rotation();
void Track3D::setup_render(Msp::GL::Renderer &renderer, const GL::Tag &) const
{
- renderer.matrix_stack() *= get_matrix();
+ renderer.matrix_stack() *= create_matrix();
}
void Track3D::link_changed(unsigned i, Track *trk)