00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00021
00022 #ifndef INTI_GTK_GL_DRAWING_AREA_H
00023 #define INTI_GTK_GL_DRAWING_AREA_H
00024
00025 #ifndef INTI_GTK_DRAWING_AREA_H
00026 #include <inti/gtk/drawingarea.h>
00027 #endif
00028
00029 #ifndef INTI_GTK_GL_WIDGET_H
00030 #include <inti/gtk/gl/widget.h>
00031 #endif
00032
00033 namespace Inti {
00034
00035 namespace Gdk {
00036
00037 namespace GL {
00038 class Config;
00039 class Context;
00040 }
00041
00042 }
00043
00044 namespace Gtk {
00045
00046 namespace GL {
00047
00052
00053 class DrawingArea : public Gtk::DrawingArea, public Gtk::GL::Widget
00054 {
00055 DrawingArea(const DrawingArea&);
00056 DrawingArea& operator=(const DrawingArea&);
00057
00058 public:
00061
00062 DrawingArea();
00065
00066 DrawingArea(const Gdk::GL::Config& glconfig, bool direct = true);
00074
00075 DrawingArea(const Gdk::GL::Config& glconfig, int width, int height, bool direct = true);
00085
00086 DrawingArea(const Gdk::GL::Config& glconfig, const Gdk::GL::Context& share_list, bool direct = true);
00094
00095 DrawingArea(const Gdk::GL::Config& glconfig, const Gdk::GL::Context& share_list, int width, int height, bool direct = true);
00105
00106 virtual ~DrawingArea();
00108
00112
00113 bool is_double_buffered() const;
00119
00123
00124 void swap_buffers();
00128
00129 bool gl_begin();
00135
00136 void gl_end();
00140
00142 };
00143
00144 }
00145
00146 }
00147
00148 }
00149
00150 #endif // INTI_GTK_GL_DRAWING_AREA_H
00151