Gnash  0.8.11dev
gtk_glue_gtkglext.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
3 // 2011 Free Software Foundation, Inc
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 
19 #ifndef GTK_GLU_GTKGLEXT_H
20 #define GTK_GLU_GTKGLEXT_H
21 
22 #ifdef HAVE_CONFIG_H
23 #include "gnashconfig.h"
24 #endif
25 
26 #include <gtk/gtk.h>
27 #include <gdk/gdk.h>
28 #include <boost/scoped_array.hpp>
29 
30 #include <gtk/gtkgl.h>
31 
32 #include "opengl/Renderer_ogl.h"
33 #include "gtk_glue.h"
34 #include "tu_opengl_includes.h"
35 
36 namespace gnash
37 {
38 
39 class GtkGlExtGlue : public GtkGlue
40 {
41  public:
42  GtkGlExtGlue();
43  ~GtkGlExtGlue();
44 
45  bool init(int argc, char **argv[]);
46  void prepDrawingArea(GtkWidget *drawing_area);
48  void render();
49  void render(int /*minx*/, int /*miny*/, int /*maxx*/, int /*maxy*/) { render(); };
50  void configure(GtkWidget *const widget, GdkEventConfigure *const event);
51  private:
52  GdkGLConfig *_glconfig;
53 };
54 
55 } // end of gnash namespace
56 
57 // end of GNASH_GTK_GLEXT_H
58 #endif
59 
60 // local Variables:
61 // mode: C++
62 // indent-tabs-mode: nil
63 // End:
void render()
Definition: gtk_glue_gtkglext.cpp:116
void prepDrawingArea(GtkWidget *drawing_area)
Definition: gtk_glue_gtkglext.cpp:92
void configure(GtkWidget *const widget, GdkEventConfigure *const event)
Definition: gtk_glue_gtkglext.cpp:128
bool init(int argc, char **argv[])
Definition: gtk_glue_gtkglext.cpp:55
void render(int, int, int, int)
Definition: gtk_glue_gtkglext.h:49
Base class for render handlers.
Definition: Renderer.h:190
Definition: gtk_glue_gtkglext.h:39
GtkGlExtGlue()
Definition: gtk_glue_gtkglext.cpp:34
Definition: gtk_glue.h:40
~GtkGlExtGlue()
Definition: gtk_glue_gtkglext.cpp:39
Renderer * createRenderHandler()
Definition: gtk_glue_gtkglext.cpp:101