Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

drawingarea.h

Go to the documentation of this file.
00001 /*  Inti-GL: Integrated Foundation Classes
00002  *  Copyright (C) 2003 The Inti Development Team.
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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 } // namespace Gdk
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 } // namespace GL
00145 
00146 } // namespace Gtk
00147 
00148 } // namespace Inti
00149 
00150 #endif // INTI_GTK_GL_DRAWING_AREA_H
00151 
Main Page - Footer


Generated on Sun Sep 14 20:59:26 2003 for Inti-GL by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002