X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainview.h;h=4e0cb39e58cfe85ecf3ad156c47cde3fc64641c3;hb=d15ac13f2e170f155b4bbd124df48400c339b644;hp=16a1ef978ac46480099894b5521fdd139c1e7e20;hpb=fcaa883538f98bac71ba1a90f98950bb2aa08d88;p=r2c2.git diff --git a/source/engineer/trainview.h b/source/engineer/trainview.h index 16a1ef9..4e0cb39 100644 --- a/source/engineer/trainview.h +++ b/source/engineer/trainview.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of the MSP Märklin suite -Copyright © 2010 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef TRAINVIEW_H_ #define TRAINVIEW_H_ @@ -12,7 +5,8 @@ Distributed under the GPL #include #include #include -#include "libmarklin/train.h" +#include +#include "libr2c2/train.h" class Engineer; @@ -28,8 +22,10 @@ public: private: Engineer &engineer; - const Marklin::Train &train; + const R2C2::Train &train; + Msp::GLtk::Toggle *tgl_forward; Mode mode; + bool forward; Msp::GL::Framebuffer fbo; Msp::GL::Texture2D tex; Msp::GL::Renderbuffer depth; @@ -38,10 +34,11 @@ private: bool stale; public: - TrainView(Engineer &, const Marklin::Train &); + TrainView(Engineer &, const R2C2::Train &); ~TrainView(); void set_mode(Mode); + void set_forward(bool); void prepare(); private: virtual void button_release(int, int, unsigned);