Designer::Designer(int argc, char **argv):
screen_w(1280),
screen_h(960),
+ base_mesh(0),
input(0),
mode(SELECT),
cam_yaw(M_PI/2),
else if((*i)->get_track().get_flex())
(*i)->set_color(GL::Color(1, 0.5, 1));
}
+
+ if(!layout->get_base().empty())
+ {
+ base_mesh=new GL::Mesh;
+ DataFile::load(*base_mesh, layout->get_base());
+ }
}
selection=new Selection;
float uz=cos_pitch*0.41421;
float xf=static_cast<float>(x)*2/screen_w-1;
- float yf=1-static_cast<float>(y)*2/screen_h;
+ float yf=static_cast<float>(y)*2/screen_h-1;
float vx=cos_yaw*cos_pitch + xf*rx + yf*ux;
float vy=sin_yaw*cos_pitch + xf*ry + yf*uy;
cat_layout_3d->render();
else
{
+ if(base_mesh)
+ {
+ GL::Texture::unbind();
+ base_mesh->draw();
+ }
layout_3d->render(true);
manipulator->render();
if(mode==MEASURE)