Gnash  0.8.11dev
fb_glue_gles2.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010
3 // 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 FB_GLUE_GLES2_H
20 #define FB_GLUE_GLES2_H
21 
22 #ifdef HAVE_CONFIG_H
23 #include "gnashconfig.h"
24 #endif
25 
26 // gles-1.0c for Linux
27 #ifdef HAVE_GLES1_GL_H
28 # include <GLES/gl.h>
29 # endif
30 #ifdef HAVE_GLES1_EGL_H
31 #include <GLES/egl.h>
32 #endif
33 #if 0
34 // Mali Developer Tools for ARM 1.x
35 #ifdef HAVE_EGL_EGL_H
36 # include <EGL/egl.h>
37 # include <EGL/eglext.h>
38 #endif
39 // Mali Developer Tools for ARM 2.x and Android 2.1
40 #ifdef HAVE_GLES2_GL2_H
41 # include <GLES2/gl2.h>
42 # include <GLES2/gl2ext.h>
43 #endif
44 #endif
45 
46 #include "fbsup.h"
47 
48 namespace gnash {
49 
50 namespace gui {
51 
52 class FBgles2Glue: public FBGlue // , public OglGlue
53 {
54 public:
55  FBgles2Glue(int fd);
56  virtual ~FBgles2Glue();
57 
58  virtual bool init(int /*argc*/, char *** /*argv*/);
59 
60  virtual Renderer* createRenderHandler();
61  virtual void setInvalidatedRegions(const InvalidatedRanges& /* ranges */) {}
62 
63  virtual int width ();
64  virtual int height ();
65  virtual void render ();
66 
67  virtual void render_to_pbuffer ();
68  virtual void prepare_copy_from_pbuffer ();
69  virtual void render_to_display ();
70 protected:
71  int _fd;
72 
73 private:
74 };
75 
76 } // end of namespace gui
77 } // namespace gnash
78 
79 #endif // FB_GLUE__GLES2_H
80 
81 // Local Variables:
82 // mode: C++
83 // indent-tabs-mode: nil
84 // End:
virtual void prepare_copy_from_pbuffer()
Definition: fb_glue_gles2.cpp:90
Definition: fb_glue.h:53
virtual Renderer * createRenderHandler()
Definition: fb_glue_gles2.cpp:67
Definition: fb_glue_gles2.h:52
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
virtual void setInvalidatedRegions(const InvalidatedRanges &)
Definition: fb_glue_gles2.h:61
Base class for render handlers.
Definition: Renderer.h:188
virtual void render()
Definition: fb_glue_gles2.cpp:82
virtual void render_to_display()
Definition: fb_glue_gles2.cpp:94
virtual int width()
Definition: fb_glue_gles2.cpp:74
virtual bool init(int, char ***)
Definition: fb_glue_gles2.cpp:61
int _fd
Definition: fb_glue_gles2.h:71
FBgles2Glue(int fd)
Definition: fb_glue_gles2.cpp:51
virtual void render_to_pbuffer()
Definition: fb_glue_gles2.cpp:86
virtual ~FBgles2Glue()
Definition: fb_glue_gles2.cpp:56
virtual int height()
Definition: fb_glue_gles2.cpp:78