Gnash
0.8.11dev
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
gui
fb
fb_glue_gles1.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_GLES1_H
20
#define FB_GLUE_GLES1_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 <boost/scoped_ptr.hpp>
47
48
#include "
fbsup.h
"
49
50
namespace
gnash {
51
52
namespace
gui {
53
54
class
render_handler;
55
56
class
FBgles1Glue
:
public
FBGlue
57
{
58
public
:
59
FBgles1Glue
(
int
fd);
60
~FBgles1Glue
();
61
bool
init
(
int
argc,
char
***);
62
63
Renderer
*
createRenderHandler
();
64
void
setInvalidatedRegions
(
const
InvalidatedRanges
&
/* ranges */
) {}
65
66
int
width
();
67
int
height
();
68
void
render
();
69
70
void
render_to_pbuffer
();
71
void
prepare_copy_from_pbuffer
();
72
void
render_to_display
();
73
74
protected
:
75
int
_fd
;
76
77
private
:
78
boost::scoped_ptr<Renderer> _renderer;
79
EGLDisplay _display;
80
EGLConfig _config;
81
EGLContext _context;
82
EGLSurface _surface;
83
EGLConfig _pbuffer_config;
84
EGLSurface _pbuffer;
85
};
86
87
}
// end of namespace gui
88
}
// namespace gnash
89
90
#endif // FB_GLUE_GLES1_H
91
92
// Local Variables:
93
// mode: C++
94
// indent-tabs-mode: nil
95
// End:
Generated on Mon Aug 26 2013 23:44:15 for Gnash by
1.8.4