#include <msp/gl/renderbuffer.h>
#include <msp/gl/framebuffer.h>
#include <msp/gl/texture2d.h>
-#include <msp/gltk/panel.h>
+#include <msp/gltk/dialog.h>
#include <msp/gltk/toggle.h>
#include "libr2c2/train.h"
class Engineer;
-class TrainView: public Msp::GLtk::Panel
+class TrainView: public Msp::GLtk::Dialog
{
public:
enum Mode
Msp::GL::Framebuffer fbo;
Msp::GL::Texture2D tex;
Msp::GL::Renderbuffer depth;
- Msp::GL::Camera camera;
- Msp::GL::Pipeline pipeline;
- bool stale;
+ R2C2::View3D view;
public:
TrainView(Engineer &, const R2C2::Train &);
~TrainView();
void set_mode(Mode);
+private:
+ void ui_mode_toggled(bool, Mode);
+public:
void set_forward(bool);
void prepare();
-private:
- virtual void button_release(int, int, unsigned);
- void close_clicked();
};
#endif