return;
GL::MatrixStack::Push push_mtx(renderer.matrix_stack());
- GL::Matrix matrix = track.get_matrix();
+ GL::Matrix matrix = track.create_matrix();
matrix.translate(0, 0, z_offs);
renderer.matrix_stack() *= matrix;
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)
virtual Vector get_node() const;
virtual bool is_visible() const { return true; }
- Msp::GL::Matrix get_matrix() const;
+ Msp::GL::Matrix create_matrix() const;
virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
private:
void link_changed(unsigned, Track *);