/* $Id$
-This file is part of the MSP Märklin suite
+This file is part of R²C²
Copyright © 2010 Mikkosoft Productions, Mikko Rasa
Distributed under the GPL
*/
using namespace std;
using namespace Msp;
-using namespace Marklin;
+using namespace R2C2;
CameraController::CameraController(Designer &d, Graphics::EventSource &es, GL::Camera &c):
designer(d),
void CameraController::view_all()
{
- Point minp;
- Point maxp;
+ Vector minp;
+ Vector maxp;
const Layout3D::TrackMap &tracks = designer.get_layout_3d().get_tracks();
for(Layout3D::TrackMap::const_iterator i=tracks.begin(); i!=tracks.end(); ++i)
{
- Point tmin;
- Point tmax;
+ Vector tmin;
+ Vector tmax;
i->second->get_bounds(0, tmin, tmax);
minp.x = min(minp.x, tmin.x);
minp.y = min(minp.y, tmin.y);