4 #include <msp/gl/renderbuffer.h>
5 #include <msp/gl/framebuffer.h>
6 #include <msp/gl/texture2d.h>
7 #include <msp/gltk/dialog.h>
8 #include <msp/gltk/toggle.h>
9 #include "libr2c2/train.h"
13 class TrainView: public Msp::GLtk::Dialog
25 const R2C2::Train &train;
26 Msp::GLtk::Toggle *tgl_forward;
29 Msp::GL::Framebuffer fbo;
30 Msp::GL::Texture2D tex;
31 Msp::GL::Renderbuffer depth;
32 Msp::GL::Camera camera;
33 Msp::GL::Pipeline pipeline;
36 TrainView(Engineer &, const R2C2::Train &);
41 void ui_mode_toggled(bool, Mode);
43 void set_forward(bool);