1 | /* |
2 | * GStreamer |
3 | * Copyright (C) 2012 Matthew Waters <ystreet00@gmail.com> |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Library General Public |
7 | * License as published by the Free Software Foundation; either |
8 | * version 2 of the License, or (at your option) any later version. |
9 | * |
10 | * This library 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 GNU |
13 | * Library General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Library General Public |
16 | * License along with this library; if not, write to the |
17 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
18 | * Boston, MA 02110-1301, USA. |
19 | */ |
20 | /* |
21 | * Cogl |
22 | * |
23 | * An object oriented GL/GLES Abstraction/Utility Layer |
24 | * |
25 | * Copyright (C) 2009, 2011 Intel Corporation. |
26 | * |
27 | * This library is free software; you can redistribute it and/or |
28 | * modify it under the terms of the GNU Lesser General Public |
29 | * License as published by the Free Software Foundation; either |
30 | * version 2 of the License, or (at your option) any later version. |
31 | * |
32 | * This library is distributed in the hope that it will be useful, |
33 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
34 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
35 | * Lesser General Public License for more details. |
36 | * |
37 | * You should have received a copy of the GNU Lesser General Public |
38 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
39 | */ |
40 | |
41 | GST_GL_EXT_BEGIN (multitexture_part1, |
42 | GST_GL_API_OPENGL | |
43 | GST_GL_API_GLES1, |
44 | 1, 3, |
45 | 1, 0, |
46 | "ARB\0" , |
47 | "multitexture\0" ) |
48 | GST_GL_EXT_FUNCTION (void, ClientActiveTexture, |
49 | (GLenum texture)) |
50 | GST_GL_EXT_END () |
51 | |
52 | /* These are the core GL functions which are available when the API |
53 | supports fixed-function (ie, GL and GLES1.1) */ |
54 | GST_GL_EXT_BEGIN (fixed_function_core, |
55 | GST_GL_API_OPENGL | |
56 | GST_GL_API_GLES1, |
57 | 0, 0, |
58 | 1, 0, |
59 | "\0" , |
60 | "\0" ) |
61 | GST_GL_EXT_FUNCTION (void, AlphaFunc, |
62 | (GLenum func, GLclampf ref)) |
63 | GST_GL_EXT_FUNCTION (void, Fogf, |
64 | (GLenum pname, GLfloat param)) |
65 | GST_GL_EXT_FUNCTION (void, Fogfv, |
66 | (GLenum pname, const GLfloat *params)) |
67 | GST_GL_EXT_FUNCTION (void, LoadMatrixf, |
68 | (const GLfloat *m)) |
69 | GST_GL_EXT_FUNCTION (void, Materialfv, |
70 | (GLenum face, GLenum pname, const GLfloat *params)) |
71 | GST_GL_EXT_FUNCTION (void, PointSize, |
72 | (GLfloat size)) |
73 | GST_GL_EXT_FUNCTION (void, TexEnvfv, |
74 | (GLenum target, GLenum pname, const GLfloat *params)) |
75 | GST_GL_EXT_FUNCTION (void, Color4ub, |
76 | (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)) |
77 | GST_GL_EXT_FUNCTION (void, ColorPointer, |
78 | (GLint size, |
79 | GLenum type, |
80 | GLsizei stride, |
81 | const GLvoid *pointer)) |
82 | GST_GL_EXT_FUNCTION (void, DisableClientState, |
83 | (GLenum array)) |
84 | GST_GL_EXT_FUNCTION (void, EnableClientState, |
85 | (GLenum array)) |
86 | GST_GL_EXT_FUNCTION (void, LoadIdentity, |
87 | (void)) |
88 | GST_GL_EXT_FUNCTION (void, MatrixMode, |
89 | (GLenum mode)) |
90 | GST_GL_EXT_FUNCTION (void, NormalPointer, |
91 | (GLenum type, GLsizei stride, const GLvoid *pointer)) |
92 | GST_GL_EXT_FUNCTION (void, TexCoordPointer, |
93 | (GLint size, |
94 | GLenum type, |
95 | GLsizei stride, |
96 | const GLvoid *pointer)) |
97 | GST_GL_EXT_FUNCTION (void, TexEnvi, |
98 | (GLenum target, |
99 | GLenum pname, |
100 | GLint param)) |
101 | GST_GL_EXT_FUNCTION (void, VertexPointer, |
102 | (GLint size, |
103 | GLenum type, |
104 | GLsizei stride, |
105 | const GLvoid *pointer)) |
106 | GST_GL_EXT_FUNCTION (void, PushMatrix, |
107 | (void)) |
108 | GST_GL_EXT_FUNCTION (void, PopMatrix, |
109 | (void)) |
110 | GST_GL_EXT_END () |
111 | |
112 | /* Eventually we want to remove this category */ |
113 | GST_GL_EXT_BEGIN (fixed_function_gl_only, |
114 | GST_GL_API_OPENGL, |
115 | 0, 0, |
116 | 0, 0, |
117 | "\0" , |
118 | "\0" ) |
119 | GST_GL_EXT_FUNCTION (void, PushAttrib, |
120 | (GLbitfield mask)) |
121 | GST_GL_EXT_FUNCTION (void, PopAttrib, |
122 | (void)) |
123 | GST_GL_EXT_FUNCTION (void, TexImage1D, |
124 | (GLenum target, |
125 | GLint level, |
126 | GLint internalFormat, |
127 | GLsizei width, |
128 | GLint border, |
129 | GLenum format, |
130 | GLenum type, |
131 | const GLvoid *data)) |
132 | GST_GL_EXT_FUNCTION (void, Rotatef, |
133 | (GLfloat angle, GLfloat x, GLfloat y, GLfloat z)) |
134 | GST_GL_EXT_FUNCTION (void, Translatef, |
135 | (GLfloat x, GLfloat y, GLfloat z)) |
136 | GST_GL_EXT_FUNCTION (void, Scalef, |
137 | (GLfloat x, GLfloat y, GLfloat z)) |
138 | GST_GL_EXT_FUNCTION (void, Lightfv, |
139 | (GLenum light, GLenum pname, const GLfloat *params)) |
140 | GST_GL_EXT_FUNCTION (void, ColorMaterial, |
141 | (GLenum face, GLenum pname)) |
142 | GST_GL_EXT_FUNCTION (void, ShadeModel, |
143 | (GLenum value)) |
144 | GST_GL_EXT_END () |
145 | |