X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainview.cpp;h=a2dedf9e0f4f03df1011baf1f5581809bea92fed;hb=a72309e64614bb1e230f9842d94dc261be1301e6;hp=f282b4e07487c6ad24f479bc02a8de7fb39b0ff5;hpb=1ff06c5bc46a677fa389ef86c6b26664368f1653;p=r2c2.git diff --git a/source/engineer/trainview.cpp b/source/engineer/trainview.cpp index f282b4e..a2dedf9 100644 --- a/source/engineer/trainview.cpp +++ b/source/engineer/trainview.cpp @@ -27,7 +27,7 @@ TrainView::TrainView(Engineer &e, const Train &t): set_size(300, 330); tex.set_min_filter(GL::LINEAR); - tex.storage(GL::RGB, 280, 280, 0); + tex.storage(GL::RGB, 280, 280); tex.image(0, GL::RGB, GL::UNSIGNED_BYTE, 0); fbo.attach(GL::COLOR_ATTACHMENT0, tex, 0); depth.storage(GL::DEPTH_COMPONENT, 280, 280); @@ -92,7 +92,7 @@ void TrainView::set_forward(bool f) void TrainView::prepare() { const Vehicle &veh = train.get_vehicle(0); - const Point &pos = veh.get_position(); + const Vector &pos = veh.get_position(); float angle = veh.get_direction(); if(!forward) angle += M_PI;