blob: dc8afbecdc1979600418af80a0ad40defcf29887 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef MY_GTK_GL_SCENE_H
#define MY_GTK_GL_SCENE_H
#include "gtk_includes.h"
// Class that will contain all the OpenGL logic for displaying the OpenCL computed data
// Implementation is kept in gpudataviz.cc (I want to keep interesting code part in this file)
// TODO : rename it to MyGTKGLSceneWidget
class MyGTKGLScene : public Gtk::DrawingArea, public Gtk::GL::Widget<MyGTKGLScene>
{
public:
MyGTKGLScene(Glib::RefPtr<Gdk::GL::Config> &glconfig);
virtual ~MyGTKGLScene();
protected:
virtual void on_size_request(Gtk::Requisition* requisition);
virtual void on_realize();
virtual bool on_configure_event(GdkEventConfigure* event);
virtual bool on_expose_event(GdkEventExpose* event);
};
#endif /*MY_GTK_GL_SCENE_H*/
|