1 //
2 //   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
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 // port to OpenGL-Embedded Subset 1.1:
20 // Copyright (C) 2010 Sennheiser GmbH & Co. KG, Wedemark, Germany
21 // author: Bernd Kischnick <kisch@gmx.li>
22 //
23 
24 #ifndef GNASH_RENDER_HANDLER_OGLES_H
25 #define GNASH_RENDER_HANDLER_OGLES_H
26 
27 #ifdef HAVE_CONFIG_H
28 #include "gnashconfig.h"
29 #endif
30 
31 // gles-1.0c for Linux
32 #ifdef HAVE_GLES1_GL_H
33 # include <GLES/gl.h>
34 # endif
35 #ifdef HAVE_GLES1_EGL_H
36 #include <GLES/egl.h>
37 #endif
38 #if 0
39 // Mali Developer Tools for ARM 1.x
40 #ifdef HAVE_GLES_EGL_H
41 # include <GLES/egl.h>
42 # include <GLES/eglext.h>
43 #endif
44 // Mali Developer Tools for ARM 1.x
45 #ifdef HAVE_GLES2_GL2_H
46 # include <GLES2/gl2.h>
47 # include <GLES2/gl2ext.h>
48 #endif
49 #endif
50 
51 namespace gnash {
52 
53 typedef GLfloat oglCoord;
54 #define OGL_COORD GL_FLOAT
55 #define GL_LINE_WIDTH_RANGE GL_ALIASED_LINE_WIDTH_RANGE
56 #define glOrtho glOrthof
57 #define GLUCALLBACKTYPE GLvoid (*)()
58 
59 class OglGlue;
60 class render_handler;
61 
62 render_handler* create_render_handler_gles1 (bool init, OglGlue* glue);
63 
64 } // namespace gnash
65 
66 #endif // __RENDER_HANDLER_OGLES_H__
67 
68 // Local Variables:
69 // mode: C++
70 // indent-tabs-mode: nil
71 // End:
72