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 "libmarklin/train.h"
19 class TrainView: public Msp::GLtk::Panel
31 const Marklin::Train &train;
33 Msp::GL::Framebuffer fbo;
34 Msp::GL::Texture2D tex;
35 Msp::GL::Renderbuffer depth;
36 Msp::GL::Camera camera;
37 Msp::GL::Pipeline pipeline;
41 TrainView(Engineer &, const Marklin::Train &);
47 virtual void button_release(int, int, unsigned);