Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / mojo / public / gles2 / gles2_call_visitor_autogen.h
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style:
8 //    clang-format -i -style=chromium filename
9 // DO NOT EDIT!
10
11 VISIT_GL_CALL(ActiveTexture, void, (GLenum texture), (texture))
12 VISIT_GL_CALL(AttachShader,
13               void,
14               (GLuint program, GLuint shader),
15               (program, shader))
16 VISIT_GL_CALL(BindAttribLocation,
17               void,
18               (GLuint program, GLuint index, const char* name),
19               (program, index, name))
20 VISIT_GL_CALL(BindBuffer,
21               void,
22               (GLenum target, GLuint buffer),
23               (target, buffer))
24 VISIT_GL_CALL(BindFramebuffer,
25               void,
26               (GLenum target, GLuint framebuffer),
27               (target, framebuffer))
28 VISIT_GL_CALL(BindRenderbuffer,
29               void,
30               (GLenum target, GLuint renderbuffer),
31               (target, renderbuffer))
32 VISIT_GL_CALL(BindTexture,
33               void,
34               (GLenum target, GLuint texture),
35               (target, texture))
36 VISIT_GL_CALL(BlendColor,
37               void,
38               (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha),
39               (red, green, blue, alpha))
40 VISIT_GL_CALL(BlendEquation, void, (GLenum mode), (mode))
41 VISIT_GL_CALL(BlendEquationSeparate,
42               void,
43               (GLenum modeRGB, GLenum modeAlpha),
44               (modeRGB, modeAlpha))
45 VISIT_GL_CALL(BlendFunc,
46               void,
47               (GLenum sfactor, GLenum dfactor),
48               (sfactor, dfactor))
49 VISIT_GL_CALL(BlendFuncSeparate,
50               void,
51               (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha),
52               (srcRGB, dstRGB, srcAlpha, dstAlpha))
53 VISIT_GL_CALL(BufferData,
54               void,
55               (GLenum target, GLsizeiptr size, const void* data, GLenum usage),
56               (target, size, data, usage))
57 VISIT_GL_CALL(
58     BufferSubData,
59     void,
60     (GLenum target, GLintptr offset, GLsizeiptr size, const void* data),
61     (target, offset, size, data))
62 VISIT_GL_CALL(CheckFramebufferStatus, GLenum, (GLenum target), (target))
63 VISIT_GL_CALL(Clear, void, (GLbitfield mask), (mask))
64 VISIT_GL_CALL(ClearColor,
65               void,
66               (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha),
67               (red, green, blue, alpha))
68 VISIT_GL_CALL(ClearDepthf, void, (GLclampf depth), (depth))
69 VISIT_GL_CALL(ClearStencil, void, (GLint s), (s))
70 VISIT_GL_CALL(ColorMask,
71               void,
72               (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha),
73               (red, green, blue, alpha))
74 VISIT_GL_CALL(CompileShader, void, (GLuint shader), (shader))
75 VISIT_GL_CALL(
76     CompressedTexImage2D,
77     void,
78     (GLenum target,
79      GLint level,
80      GLenum internalformat,
81      GLsizei width,
82      GLsizei height,
83      GLint border,
84      GLsizei imageSize,
85      const void* data),
86     (target, level, internalformat, width, height, border, imageSize, data))
87 VISIT_GL_CALL(
88     CompressedTexSubImage2D,
89     void,
90     (GLenum target,
91      GLint level,
92      GLint xoffset,
93      GLint yoffset,
94      GLsizei width,
95      GLsizei height,
96      GLenum format,
97      GLsizei imageSize,
98      const void* data),
99     (target, level, xoffset, yoffset, width, height, format, imageSize, data))
100 VISIT_GL_CALL(CopyTexImage2D,
101               void,
102               (GLenum target,
103                GLint level,
104                GLenum internalformat,
105                GLint x,
106                GLint y,
107                GLsizei width,
108                GLsizei height,
109                GLint border),
110               (target, level, internalformat, x, y, width, height, border))
111 VISIT_GL_CALL(CopyTexSubImage2D,
112               void,
113               (GLenum target,
114                GLint level,
115                GLint xoffset,
116                GLint yoffset,
117                GLint x,
118                GLint y,
119                GLsizei width,
120                GLsizei height),
121               (target, level, xoffset, yoffset, x, y, width, height))
122 VISIT_GL_CALL(CreateProgram, GLuint, (), ())
123 VISIT_GL_CALL(CreateShader, GLuint, (GLenum type), (type))
124 VISIT_GL_CALL(CullFace, void, (GLenum mode), (mode))
125 VISIT_GL_CALL(DeleteBuffers,
126               void,
127               (GLsizei n, const GLuint* buffers),
128               (n, buffers))
129 VISIT_GL_CALL(DeleteFramebuffers,
130               void,
131               (GLsizei n, const GLuint* framebuffers),
132               (n, framebuffers))
133 VISIT_GL_CALL(DeleteProgram, void, (GLuint program), (program))
134 VISIT_GL_CALL(DeleteRenderbuffers,
135               void,
136               (GLsizei n, const GLuint* renderbuffers),
137               (n, renderbuffers))
138 VISIT_GL_CALL(DeleteShader, void, (GLuint shader), (shader))
139 VISIT_GL_CALL(DeleteTextures,
140               void,
141               (GLsizei n, const GLuint* textures),
142               (n, textures))
143 VISIT_GL_CALL(DepthFunc, void, (GLenum func), (func))
144 VISIT_GL_CALL(DepthMask, void, (GLboolean flag), (flag))
145 VISIT_GL_CALL(DepthRangef, void, (GLclampf zNear, GLclampf zFar), (zNear, zFar))
146 VISIT_GL_CALL(DetachShader,
147               void,
148               (GLuint program, GLuint shader),
149               (program, shader))
150 VISIT_GL_CALL(Disable, void, (GLenum cap), (cap))
151 VISIT_GL_CALL(DisableVertexAttribArray, void, (GLuint index), (index))
152 VISIT_GL_CALL(DrawArrays,
153               void,
154               (GLenum mode, GLint first, GLsizei count),
155               (mode, first, count))
156 VISIT_GL_CALL(DrawElements,
157               void,
158               (GLenum mode, GLsizei count, GLenum type, const void* indices),
159               (mode, count, type, indices))
160 VISIT_GL_CALL(Enable, void, (GLenum cap), (cap))
161 VISIT_GL_CALL(EnableVertexAttribArray, void, (GLuint index), (index))
162 VISIT_GL_CALL(Finish, void, (), ())
163 VISIT_GL_CALL(Flush, void, (), ())
164 VISIT_GL_CALL(FramebufferRenderbuffer,
165               void,
166               (GLenum target,
167                GLenum attachment,
168                GLenum renderbuffertarget,
169                GLuint renderbuffer),
170               (target, attachment, renderbuffertarget, renderbuffer))
171 VISIT_GL_CALL(FramebufferTexture2D,
172               void,
173               (GLenum target,
174                GLenum attachment,
175                GLenum textarget,
176                GLuint texture,
177                GLint level),
178               (target, attachment, textarget, texture, level))
179 VISIT_GL_CALL(FrontFace, void, (GLenum mode), (mode))
180 VISIT_GL_CALL(GenBuffers, void, (GLsizei n, GLuint* buffers), (n, buffers))
181 VISIT_GL_CALL(GenerateMipmap, void, (GLenum target), (target))
182 VISIT_GL_CALL(GenFramebuffers,
183               void,
184               (GLsizei n, GLuint* framebuffers),
185               (n, framebuffers))
186 VISIT_GL_CALL(GenRenderbuffers,
187               void,
188               (GLsizei n, GLuint* renderbuffers),
189               (n, renderbuffers))
190 VISIT_GL_CALL(GenTextures, void, (GLsizei n, GLuint* textures), (n, textures))
191 VISIT_GL_CALL(GetActiveAttrib,
192               void,
193               (GLuint program,
194                GLuint index,
195                GLsizei bufsize,
196                GLsizei* length,
197                GLint* size,
198                GLenum* type,
199                char* name),
200               (program, index, bufsize, length, size, type, name))
201 VISIT_GL_CALL(GetActiveUniform,
202               void,
203               (GLuint program,
204                GLuint index,
205                GLsizei bufsize,
206                GLsizei* length,
207                GLint* size,
208                GLenum* type,
209                char* name),
210               (program, index, bufsize, length, size, type, name))
211 VISIT_GL_CALL(
212     GetAttachedShaders,
213     void,
214     (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders),
215     (program, maxcount, count, shaders))
216 VISIT_GL_CALL(GetAttribLocation,
217               GLint,
218               (GLuint program, const char* name),
219               (program, name))
220 VISIT_GL_CALL(GetBooleanv,
221               void,
222               (GLenum pname, GLboolean* params),
223               (pname, params))
224 VISIT_GL_CALL(GetBufferParameteriv,
225               void,
226               (GLenum target, GLenum pname, GLint* params),
227               (target, pname, params))
228 VISIT_GL_CALL(GetError, GLenum, (), ())
229 VISIT_GL_CALL(GetFloatv, void, (GLenum pname, GLfloat* params), (pname, params))
230 VISIT_GL_CALL(GetFramebufferAttachmentParameteriv,
231               void,
232               (GLenum target, GLenum attachment, GLenum pname, GLint* params),
233               (target, attachment, pname, params))
234 VISIT_GL_CALL(GetIntegerv, void, (GLenum pname, GLint* params), (pname, params))
235 VISIT_GL_CALL(GetProgramiv,
236               void,
237               (GLuint program, GLenum pname, GLint* params),
238               (program, pname, params))
239 VISIT_GL_CALL(GetProgramInfoLog,
240               void,
241               (GLuint program, GLsizei bufsize, GLsizei* length, char* infolog),
242               (program, bufsize, length, infolog))
243 VISIT_GL_CALL(GetRenderbufferParameteriv,
244               void,
245               (GLenum target, GLenum pname, GLint* params),
246               (target, pname, params))
247 VISIT_GL_CALL(GetShaderiv,
248               void,
249               (GLuint shader, GLenum pname, GLint* params),
250               (shader, pname, params))
251 VISIT_GL_CALL(GetShaderInfoLog,
252               void,
253               (GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog),
254               (shader, bufsize, length, infolog))
255 VISIT_GL_CALL(
256     GetShaderPrecisionFormat,
257     void,
258     (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision),
259     (shadertype, precisiontype, range, precision))
260 VISIT_GL_CALL(GetShaderSource,
261               void,
262               (GLuint shader, GLsizei bufsize, GLsizei* length, char* source),
263               (shader, bufsize, length, source))
264 VISIT_GL_CALL(GetString, const GLubyte*, (GLenum name), (name))
265 VISIT_GL_CALL(GetTexParameterfv,
266               void,
267               (GLenum target, GLenum pname, GLfloat* params),
268               (target, pname, params))
269 VISIT_GL_CALL(GetTexParameteriv,
270               void,
271               (GLenum target, GLenum pname, GLint* params),
272               (target, pname, params))
273 VISIT_GL_CALL(GetUniformfv,
274               void,
275               (GLuint program, GLint location, GLfloat* params),
276               (program, location, params))
277 VISIT_GL_CALL(GetUniformiv,
278               void,
279               (GLuint program, GLint location, GLint* params),
280               (program, location, params))
281 VISIT_GL_CALL(GetUniformLocation,
282               GLint,
283               (GLuint program, const char* name),
284               (program, name))
285 VISIT_GL_CALL(GetVertexAttribfv,
286               void,
287               (GLuint index, GLenum pname, GLfloat* params),
288               (index, pname, params))
289 VISIT_GL_CALL(GetVertexAttribiv,
290               void,
291               (GLuint index, GLenum pname, GLint* params),
292               (index, pname, params))
293 VISIT_GL_CALL(GetVertexAttribPointerv,
294               void,
295               (GLuint index, GLenum pname, void** pointer),
296               (index, pname, pointer))
297 VISIT_GL_CALL(Hint, void, (GLenum target, GLenum mode), (target, mode))
298 VISIT_GL_CALL(IsBuffer, GLboolean, (GLuint buffer), (buffer))
299 VISIT_GL_CALL(IsEnabled, GLboolean, (GLenum cap), (cap))
300 VISIT_GL_CALL(IsFramebuffer, GLboolean, (GLuint framebuffer), (framebuffer))
301 VISIT_GL_CALL(IsProgram, GLboolean, (GLuint program), (program))
302 VISIT_GL_CALL(IsRenderbuffer, GLboolean, (GLuint renderbuffer), (renderbuffer))
303 VISIT_GL_CALL(IsShader, GLboolean, (GLuint shader), (shader))
304 VISIT_GL_CALL(IsTexture, GLboolean, (GLuint texture), (texture))
305 VISIT_GL_CALL(LineWidth, void, (GLfloat width), (width))
306 VISIT_GL_CALL(LinkProgram, void, (GLuint program), (program))
307 VISIT_GL_CALL(PixelStorei, void, (GLenum pname, GLint param), (pname, param))
308 VISIT_GL_CALL(PolygonOffset,
309               void,
310               (GLfloat factor, GLfloat units),
311               (factor, units))
312 VISIT_GL_CALL(ReadPixels,
313               void,
314               (GLint x,
315                GLint y,
316                GLsizei width,
317                GLsizei height,
318                GLenum format,
319                GLenum type,
320                void* pixels),
321               (x, y, width, height, format, type, pixels))
322 VISIT_GL_CALL(ReleaseShaderCompiler, void, (), ())
323 VISIT_GL_CALL(
324     RenderbufferStorage,
325     void,
326     (GLenum target, GLenum internalformat, GLsizei width, GLsizei height),
327     (target, internalformat, width, height))
328 VISIT_GL_CALL(SampleCoverage,
329               void,
330               (GLclampf value, GLboolean invert),
331               (value, invert))
332 VISIT_GL_CALL(Scissor,
333               void,
334               (GLint x, GLint y, GLsizei width, GLsizei height),
335               (x, y, width, height))
336 VISIT_GL_CALL(ShaderBinary,
337               void,
338               (GLsizei n,
339                const GLuint* shaders,
340                GLenum binaryformat,
341                const void* binary,
342                GLsizei length),
343               (n, shaders, binaryformat, binary, length))
344 VISIT_GL_CALL(ShaderSource,
345               void,
346               (GLuint shader,
347                GLsizei count,
348                const GLchar* const* str,
349                const GLint* length),
350               (shader, count, str, length))
351 VISIT_GL_CALL(StencilFunc,
352               void,
353               (GLenum func, GLint ref, GLuint mask),
354               (func, ref, mask))
355 VISIT_GL_CALL(StencilFuncSeparate,
356               void,
357               (GLenum face, GLenum func, GLint ref, GLuint mask),
358               (face, func, ref, mask))
359 VISIT_GL_CALL(StencilMask, void, (GLuint mask), (mask))
360 VISIT_GL_CALL(StencilMaskSeparate,
361               void,
362               (GLenum face, GLuint mask),
363               (face, mask))
364 VISIT_GL_CALL(StencilOp,
365               void,
366               (GLenum fail, GLenum zfail, GLenum zpass),
367               (fail, zfail, zpass))
368 VISIT_GL_CALL(StencilOpSeparate,
369               void,
370               (GLenum face, GLenum fail, GLenum zfail, GLenum zpass),
371               (face, fail, zfail, zpass))
372 VISIT_GL_CALL(TexImage2D,
373               void,
374               (GLenum target,
375                GLint level,
376                GLint internalformat,
377                GLsizei width,
378                GLsizei height,
379                GLint border,
380                GLenum format,
381                GLenum type,
382                const void* pixels),
383               (target,
384                level,
385                internalformat,
386                width,
387                height,
388                border,
389                format,
390                type,
391                pixels))
392 VISIT_GL_CALL(TexParameterf,
393               void,
394               (GLenum target, GLenum pname, GLfloat param),
395               (target, pname, param))
396 VISIT_GL_CALL(TexParameterfv,
397               void,
398               (GLenum target, GLenum pname, const GLfloat* params),
399               (target, pname, params))
400 VISIT_GL_CALL(TexParameteri,
401               void,
402               (GLenum target, GLenum pname, GLint param),
403               (target, pname, param))
404 VISIT_GL_CALL(TexParameteriv,
405               void,
406               (GLenum target, GLenum pname, const GLint* params),
407               (target, pname, params))
408 VISIT_GL_CALL(
409     TexSubImage2D,
410     void,
411     (GLenum target,
412      GLint level,
413      GLint xoffset,
414      GLint yoffset,
415      GLsizei width,
416      GLsizei height,
417      GLenum format,
418      GLenum type,
419      const void* pixels),
420     (target, level, xoffset, yoffset, width, height, format, type, pixels))
421 VISIT_GL_CALL(Uniform1f, void, (GLint location, GLfloat x), (location, x))
422 VISIT_GL_CALL(Uniform1fv,
423               void,
424               (GLint location, GLsizei count, const GLfloat* v),
425               (location, count, v))
426 VISIT_GL_CALL(Uniform1i, void, (GLint location, GLint x), (location, x))
427 VISIT_GL_CALL(Uniform1iv,
428               void,
429               (GLint location, GLsizei count, const GLint* v),
430               (location, count, v))
431 VISIT_GL_CALL(Uniform2f,
432               void,
433               (GLint location, GLfloat x, GLfloat y),
434               (location, x, y))
435 VISIT_GL_CALL(Uniform2fv,
436               void,
437               (GLint location, GLsizei count, const GLfloat* v),
438               (location, count, v))
439 VISIT_GL_CALL(Uniform2i,
440               void,
441               (GLint location, GLint x, GLint y),
442               (location, x, y))
443 VISIT_GL_CALL(Uniform2iv,
444               void,
445               (GLint location, GLsizei count, const GLint* v),
446               (location, count, v))
447 VISIT_GL_CALL(Uniform3f,
448               void,
449               (GLint location, GLfloat x, GLfloat y, GLfloat z),
450               (location, x, y, z))
451 VISIT_GL_CALL(Uniform3fv,
452               void,
453               (GLint location, GLsizei count, const GLfloat* v),
454               (location, count, v))
455 VISIT_GL_CALL(Uniform3i,
456               void,
457               (GLint location, GLint x, GLint y, GLint z),
458               (location, x, y, z))
459 VISIT_GL_CALL(Uniform3iv,
460               void,
461               (GLint location, GLsizei count, const GLint* v),
462               (location, count, v))
463 VISIT_GL_CALL(Uniform4f,
464               void,
465               (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w),
466               (location, x, y, z, w))
467 VISIT_GL_CALL(Uniform4fv,
468               void,
469               (GLint location, GLsizei count, const GLfloat* v),
470               (location, count, v))
471 VISIT_GL_CALL(Uniform4i,
472               void,
473               (GLint location, GLint x, GLint y, GLint z, GLint w),
474               (location, x, y, z, w))
475 VISIT_GL_CALL(Uniform4iv,
476               void,
477               (GLint location, GLsizei count, const GLint* v),
478               (location, count, v))
479 VISIT_GL_CALL(
480     UniformMatrix2fv,
481     void,
482     (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value),
483     (location, count, transpose, value))
484 VISIT_GL_CALL(
485     UniformMatrix3fv,
486     void,
487     (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value),
488     (location, count, transpose, value))
489 VISIT_GL_CALL(
490     UniformMatrix4fv,
491     void,
492     (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value),
493     (location, count, transpose, value))
494 VISIT_GL_CALL(UseProgram, void, (GLuint program), (program))
495 VISIT_GL_CALL(ValidateProgram, void, (GLuint program), (program))
496 VISIT_GL_CALL(VertexAttrib1f, void, (GLuint indx, GLfloat x), (indx, x))
497 VISIT_GL_CALL(VertexAttrib1fv,
498               void,
499               (GLuint indx, const GLfloat* values),
500               (indx, values))
501 VISIT_GL_CALL(VertexAttrib2f,
502               void,
503               (GLuint indx, GLfloat x, GLfloat y),
504               (indx, x, y))
505 VISIT_GL_CALL(VertexAttrib2fv,
506               void,
507               (GLuint indx, const GLfloat* values),
508               (indx, values))
509 VISIT_GL_CALL(VertexAttrib3f,
510               void,
511               (GLuint indx, GLfloat x, GLfloat y, GLfloat z),
512               (indx, x, y, z))
513 VISIT_GL_CALL(VertexAttrib3fv,
514               void,
515               (GLuint indx, const GLfloat* values),
516               (indx, values))
517 VISIT_GL_CALL(VertexAttrib4f,
518               void,
519               (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w),
520               (indx, x, y, z, w))
521 VISIT_GL_CALL(VertexAttrib4fv,
522               void,
523               (GLuint indx, const GLfloat* values),
524               (indx, values))
525 VISIT_GL_CALL(VertexAttribPointer,
526               void,
527               (GLuint indx,
528                GLint size,
529                GLenum type,
530                GLboolean normalized,
531                GLsizei stride,
532                const void* ptr),
533               (indx, size, type, normalized, stride, ptr))
534 VISIT_GL_CALL(Viewport,
535               void,
536               (GLint x, GLint y, GLsizei width, GLsizei height),
537               (x, y, width, height))