author | Matt Plumtree <matt.plumtree@nokia.com> |
Mon, 01 Nov 2010 18:10:32 +0000 | |
branch | bug235_bringup_0 |
changeset 69 | 3f914c77c2e9 |
parent 24 | a3f46bb01be2 |
permissions | -rw-r--r-- |
24 | 1 |
/* |
2 |
** Copyright (c) 2007-2009 The Khronos Group Inc. |
|
3 |
** |
|
4 |
** Permission is hereby granted, free of charge, to any person obtaining a |
|
5 |
** copy of this software and/or associated documentation files (the |
|
6 |
** "Materials"), to deal in the Materials without restriction, including |
|
7 |
** without limitation the rights to use, copy, modify, merge, publish, |
|
8 |
** distribute, sublicense, and/or sell copies of the Materials, and to |
|
9 |
** permit persons to whom the Materials are furnished to do so, subject to |
|
10 |
** the following conditions: |
|
11 |
** |
|
12 |
** The above copyright notice and this permission notice shall be included |
|
13 |
** in all copies or substantial portions of the Materials. |
|
14 |
** |
|
15 |
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
16 |
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
17 |
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
|
18 |
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
|
19 |
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
|
20 |
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
|
21 |
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
|
22 |
*/ |
|
23 |
||
24 |
#ifndef glextplatform_h |
|
25 |
#define glextplatform_h |
|
26 |
||
27 |
/** |
|
28 |
@publishedAll |
|
29 |
@released |
|
30 |
*/ |
|
31 |
||
32 |
#ifdef __cplusplus |
|
33 |
extern "C" { |
|
34 |
#endif |
|
35 |
||
36 |
/* |
|
37 |
** The following defines were in gl.h in OpenGL ES 1.0. To keep backwards |
|
38 |
** compatibility they are defined in this file which is always included at |
|
39 |
** the end of gl.h. Undefine guard definitions as required to enable |
|
40 |
** OpenGL ES 1.1 glext.h functionality. |
|
41 |
** |
|
42 |
** We have also added __SOFTFP decorations for call-by-value float functions |
|
43 |
*/ |
|
44 |
||
45 |
/* Renamed for OpenGL ES 1.1 */ |
|
46 |
||
47 |
#define GL_WRITE_ONLY 0x88B9 |
|
48 |
#define GL_BUFFER_ACCESS 0x88BB |
|
49 |
||
50 |
||
51 |
/* Removed for OpenGL ES 1.1 */ |
|
52 |
||
53 |
/* OpenGL ES core versions */ |
|
54 |
#define GL_OES_VERSION_1_0 1 |
|
55 |
#define GL_OES_VERSION_1_1 1 |
|
56 |
||
57 |
/* BeginMode */ |
|
58 |
#define GL_MAX_ELEMENTS_VERTICES 0x80E8 |
|
59 |
#define GL_MAX_ELEMENTS_INDICES 0x80E9 |
|
60 |
||
61 |
/* HintTarget */ |
|
62 |
#define GL_POLYGON_SMOOTH_HINT 0x0C53 |
|
63 |
||
64 |
||
65 |
/* Moved from gl.h to glext.h (optional header) for OpenGL ES 1.1 */ |
|
66 |
||
67 |
/* GL_OES_byte_coordinates */ |
|
68 |
#define GL_OES_byte_coordinates 1 |
|
69 |
||
70 |
/* GL_OES_draw_texture */ |
|
71 |
#define GL_OES_draw_texture 1 |
|
72 |
#define GL_TEXTURE_CROP_RECT_OES 0x8B9D |
|
73 |
GL_API void GL_APIENTRY glDrawTexsOES (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height); |
|
74 |
GL_API void GL_APIENTRY glDrawTexiOES (GLint x, GLint y, GLint z, GLint width, GLint height); |
|
75 |
GL_API void GL_APIENTRY glDrawTexxOES (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height); |
|
76 |
GL_API void GL_APIENTRY glDrawTexsvOES (const GLshort *coords); |
|
77 |
GL_API void GL_APIENTRY glDrawTexivOES (const GLint *coords); |
|
78 |
GL_API void GL_APIENTRY glDrawTexxvOES (const GLfixed *coords); |
|
79 |
GL_API void GL_APIENTRY glDrawTexfOES (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);// __SOFTFP; |
|
80 |
GL_API void GL_APIENTRY glDrawTexfvOES (const GLfloat *coords); |
|
81 |
||
82 |
/* GL_OES_fixed_point */ |
|
83 |
#define GL_OES_fixed_point 1 |
|
84 |
||
85 |
/* GL_OES_single_precision */ |
|
86 |
#define GL_OES_single_precision 1 |
|
87 |
||
88 |
/* OES_matrix_get */ |
|
89 |
#define GL_OES_matrix_get 1 |
|
90 |
#define GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES 0x898D |
|
91 |
#define GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES 0x898E |
|
92 |
#define GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES 0x898F |
|
93 |
||
94 |
/* OES_matrix_palette */ |
|
95 |
#define GL_OES_matrix_palette 1 |
|
96 |
#define GL_MAX_VERTEX_UNITS_OES 0x86A4 |
|
97 |
#define GL_MAX_PALETTE_MATRICES_OES 0x8842 |
|
98 |
#define GL_MATRIX_PALETTE_OES 0x8840 |
|
99 |
#define GL_MATRIX_INDEX_ARRAY_OES 0x8844 |
|
100 |
#define GL_WEIGHT_ARRAY_OES 0x86AD |
|
101 |
#define GL_CURRENT_PALETTE_MATRIX_OES 0x8843 |
|
102 |
#define GL_MATRIX_INDEX_ARRAY_SIZE_OES 0x8846 |
|
103 |
#define GL_MATRIX_INDEX_ARRAY_TYPE_OES 0x8847 |
|
104 |
#define GL_MATRIX_INDEX_ARRAY_STRIDE_OES 0x8848 |
|
105 |
#define GL_MATRIX_INDEX_ARRAY_POINTER_OES 0x8849 |
|
106 |
#define GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES 0x8B9E |
|
107 |
#define GL_WEIGHT_ARRAY_SIZE_OES 0x86AB |
|
108 |
#define GL_WEIGHT_ARRAY_TYPE_OES 0x86A9 |
|
109 |
#define GL_WEIGHT_ARRAY_STRIDE_OES 0x86AA |
|
110 |
#define GL_WEIGHT_ARRAY_POINTER_OES 0x86AC |
|
111 |
#define GL_WEIGHT_ARRAY_BUFFER_BINDING_OES 0x889E |
|
112 |
GL_API void GL_APIENTRY glCurrentPaletteMatrixOES (GLuint matrixpaletteindex); |
|
113 |
GL_API void GL_APIENTRY glLoadPaletteFromModelViewMatrixOES (void); |
|
114 |
GL_API void GL_APIENTRY glMatrixIndexPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); |
|
115 |
GL_API void GL_APIENTRY glWeightPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); |
|
116 |
||
117 |
||
118 |
GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES (GLfixed mantissa[16], GLint exponent[16]); |
|
119 |
||
120 |
#ifdef __cplusplus |
|
121 |
} |
|
122 |
#endif |
|
123 |
||
20
d2d6724aef32
Initial contribution of Khronos API implmentations suitable for simulator host-side.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff
changeset
|
124 |
#endif /* glextplatform_h */ |