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 
29 #include <gtk/gtkgl.h>
30 
31 #include "opengl/Renderer_ogl.h"
32 #include "gtk_glue.h"
33 #include "tu_opengl_includes.h"
34 
35 namespace gnash
36 {
37 
38 class GtkGlExtGlue : public GtkGlue
39 {
40  public:
41  GtkGlExtGlue();
42  ~GtkGlExtGlue();
43 
44  bool init(int argc, char **argv[]);
45  void prepDrawingArea(GtkWidget *drawing_area);
47  void render();
48  void render(int /*minx*/, int /*miny*/, int /*maxx*/, int /*maxy*/) { render(); };
49  void configure(GtkWidget *const widget, GdkEventConfigure *const event);
50  private:
51  GdkGLConfig *_glconfig;
52 };
53 
54 } // end of gnash namespace
55 
56 // end of GNASH_GTK_GLEXT_H
57 #endif
58 
59 // local Variables:
60 // mode: C++
61 // indent-tabs-mode: nil
62 // 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
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
bool init(int argc, char **argv[])
Definition: gtk_glue_gtkglext.cpp:55
void render(int, int, int, int)
Definition: gtk_glue_gtkglext.h:48
Base class for render handlers.
Definition: Renderer.h:188
Definition: gtk_glue_gtkglext.h:38
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