diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2013-01-04 15:23:14 +0000 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2013-01-04 15:23:14 +0000 |
commit | c1d21f2a47e34362ee1d939bca8ca082f5474b33 (patch) | |
tree | 46d7a62a4182bcbc4b490b42b181df81877f08be /src/my_GTK_GL_scene.h | |
parent | 854df3320b1ea19e8c145c43e0a7d038843e990c (diff) | |
download | 2013-gpudataviz-c1d21f2a47e34362ee1d939bca8ca082f5474b33.tar.gz 2013-gpudataviz-c1d21f2a47e34362ee1d939bca8ca082f5474b33.tar.bz2 2013-gpudataviz-c1d21f2a47e34362ee1d939bca8ca082f5474b33.zip |
Import initial
git-svn-id: file:///var/svn/2013-gpudataviz/trunk@2 371a6b4a-a258-45f8-9dcc-bdd82ce0ac9d
Diffstat (limited to 'src/my_GTK_GL_scene.h')
-rw-r--r-- | src/my_GTK_GL_scene.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/my_GTK_GL_scene.h b/src/my_GTK_GL_scene.h new file mode 100644 index 0000000..dc8afbe --- /dev/null +++ b/src/my_GTK_GL_scene.h @@ -0,0 +1,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*/ |