3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
11 #include <msp/gl/renderbuffer.h>
12 #include <msp/gl/framebuffer.h>
13 #include <msp/gl/texture2d.h>
14 #include <msp/gltk/panel.h>
15 #include <msp/gltk/toggle.h>
16 #include "libmarklin/train.h"
20 class TrainView: public Msp::GLtk::Panel
32 const Marklin::Train &train;
33 Msp::GLtk::Toggle *tgl_forward;
36 Msp::GL::Framebuffer fbo;
37 Msp::GL::Texture2D tex;
38 Msp::GL::Renderbuffer depth;
39 Msp::GL::Camera camera;
40 Msp::GL::Pipeline pipeline;
44 TrainView(Engineer &, const Marklin::Train &);
48 void set_forward(bool);
51 virtual void button_release(int, int, unsigned);