gtkglextmm: gtkmm/gl/drawingarea.h Source File

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Examples

# drawingarea.h

Go to the documentation of this file.

    00001 // -*- C++ -*-
    00002 /* gtkglextmm - C++ Wrapper for GtkGLExt
    00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
    00004  *
    00005  * This library is free software; you can redistribute it and/or
    00006  * modify it under the terms of the GNU Lesser General Public
    00007  * License as published by the Free Software Foundation; either
    00008  * version 2.1 of the License, or (at your option) any later version.
    00009  *
    00010  * This library is distributed in the hope that it will be useful,
    00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013  * Lesser General Public License for more details.
    00014  *
    00015  * You should have received a copy of the GNU Lesser General Public
    00016  * License along with this library; if not, write to the Free Software
    00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
    00018  */
    00019
    00020 #ifndef _GTKMM_GL_DRAWINGAREA_H
    00021 #define _GTKMM_GL_DRAWINGAREA_H
    00022
    00023 #include <gtkmm/drawingarea.h>
    00024
    00025 #include <gtkmm/gl/widget.h>
    00026
    00027 namespace Gtk
    00028 {
    00029   namespace GL
    00030   {
    00031
    00037     class DrawingArea : public Gtk::DrawingArea,
    00038                         public Gtk::GL::Widget<DrawingArea>
    00039     {
    00040     private:
    00041       // noncopyable
    00042       DrawingArea(const DrawingArea&);
    00043       DrawingArea& operator=(const DrawingArea&);
    00044
    00045     public:
    00046       virtual ~DrawingArea();
    00047
    00048     public:
    00049
    00056       DrawingArea() {}
    00057
    00067       DrawingArea(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
    00068                   const Glib::RefPtr<const Gdk::GL::Context>& share_list,
    00069                   bool direct = true,
    00070                   int render_type = Gdk::GL::RGBA_TYPE)
    00071       { set_gl_capability(glconfig, share_list, direct, render_type); }
    00072
    00081       DrawingArea(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
    00082                   bool direct = true,
    00083                   int render_type = Gdk::GL::RGBA_TYPE)
    00084       { set_gl_capability(glconfig, direct, render_type); }
    00085
    00086     };
    00087
    00118   } // namespace GL
    00119 } // namespace Gtk
    00120
    00121 #endif // _GTKMM_GL_DRAWINGAREA_H