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:
gtk_glue_gtkglext.h
gnash::GtkGlExtGlue::render
void render()
Definition: gtk_glue_gtkglext.cpp:116
gnash::log_debug
void log_debug(StringType msg, Args... args)
Definition: log.h:301
_
#define _(String)
Definition: log.h:44
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::GtkGlExtGlue::prepDrawingArea
void prepDrawingArea(GtkWidget *drawing_area)
Definition: gtk_glue_gtkglext.cpp:92
gnash::GtkGlExtGlue::createRenderHandler
Renderer * createRenderHandler()
Definition: gtk_glue_gtkglext.cpp:101
GNASH_REPORT_FUNCTION
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
gnash::Renderer
Base class for render handlers.
Definition: Renderer.h:189
gnash::GtkGlExtGlue::render
void render(int, int, int, int)
Definition: gtk_glue_gtkglext.h:48
gtk_glue.h
gnash::log_error
void log_error(StringType msg, Args... args)
Definition: log.h:283
gnash::GtkGlExtGlue
Definition: gtk_glue_gtkglext.h:39
tu_opengl_includes.h
gnash::GtkGlExtGlue::init
bool init(int argc, char **argv[])
Definition: gtk_glue_gtkglext.cpp:55
gnash::GtkGlue
Definition: gtk_glue.h:41
log.h
gnashconfig.h
gnash::GtkGlExtGlue::configure
void configure(GtkWidget *const widget, GdkEventConfigure *const event)
Definition: gtk_glue_gtkglext.cpp:128
gnash::GtkGlExtGlue::~GtkGlExtGlue
~GtkGlExtGlue()
Definition: gtk_glue_gtkglext.cpp:39
Renderer_ogl.h
gnash::renderer::DirectFB::create_handler
Renderer * create_handler(const char *pixelformat)
Definition: Renderer_DirectFB.cpp:267
gnash::GtkGlExtGlue::GtkGlExtGlue
GtkGlExtGlue()
Definition: gtk_glue_gtkglext.cpp:34