Copyright © 2010 Mikkosoft Productions, Mikko Rasa
Distributed under the GPL
*/
Copyright © 2010 Mikkosoft Productions, Mikko Rasa
Distributed under the GPL
*/
void TrackWrap::render(const GL::Tag &) const
{
for(list<Wrap>::const_iterator i=wraps.begin(); i!=wraps.end(); ++i)
{
GL::PushMatrix _pushm;
void TrackWrap::render(const GL::Tag &) const
{
for(list<Wrap>::const_iterator i=wraps.begin(); i!=wraps.end(); ++i)
{
GL::PushMatrix _pushm;
GL::translate(pos.x, pos.y, pos.z);
GL::rotate(i->track->get_rotation()*180/M_PI, 0, 0, 1);
i->mesh->draw();
GL::translate(pos.x, pos.y, pos.z);
GL::rotate(i->track->get_rotation()*180/M_PI, 0, 0, 1);
i->mesh->draw();
type3d.get_bounds(a, minp, maxp);
float area = (maxp.x-minp.x)*(maxp.y-minp.y);
if(area<min_area || min_area<0)
type3d.get_bounds(a, minp, maxp);
float area = (maxp.x-minp.x)*(maxp.y-minp.y);
if(area<min_area || min_area<0)