4 #include <msp/gl/renderbuffer.h>
5 #include <msp/gl/framebuffer.h>
6 #include <msp/gl/texture2d.h>
7 #include <msp/gltk/toggle.h>
8 #include "libr2c2/train.h"
9 #include "dynamicdialog.h"
11 class TrainView: public DynamicDialog
22 const R2C2::Train &train;
23 Msp::GLtk::Toggle *tgl_forward;
26 Msp::GL::Framebuffer fbo;
27 Msp::GL::Texture2D tex;
28 Msp::GL::Renderbuffer depth;
32 TrainView(Engineer &, const R2C2::Train &);
36 void ui_mode_toggled(bool, Mode);
38 void set_forward(bool);
39 virtual void update();