OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
11 #ifndef GL_GLEXT_PROTOTYPES | 11 #ifndef GL_GLEXT_PROTOTYPES |
12 #define GL_GLEXT_PROTOTYPES | 12 #define GL_GLEXT_PROTOTYPES |
13 #endif | 13 #endif |
14 #include <GLES2/gl2.h> | 14 #include <GLES2/gl2.h> |
15 #include <GLES2/gl2ext.h> | 15 #include <GLES2/gl2ext.h> |
16 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" | 16 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" |
17 | 17 |
18 void GL_APIENTRY glActiveTexture(GLenum texture) { | 18 void GL_APIENTRY glActiveTexture(GLenum texture) { |
19 glGetInterfacePPAPI()->ActiveTexture(glGetCurrentContextPPAPI(), texture); | 19 glGetInterfacePPAPI()->ActiveTexture(glGetCurrentContextPPAPI(), texture); |
20 } | 20 } |
21 | 21 |
22 void GL_APIENTRY glAttachShader(GLuint program, GLuint shader) { | 22 void GL_APIENTRY glAttachShader(GLuint program, GLuint shader) { |
23 glGetInterfacePPAPI()->AttachShader( | 23 glGetInterfacePPAPI()->AttachShader( |
24 glGetCurrentContextPPAPI(), program, shader); | 24 glGetCurrentContextPPAPI(), program, shader); |
25 } | 25 } |
26 | 26 |
27 void GL_APIENTRY | 27 void GL_APIENTRY |
28 glBindAttribLocation(GLuint program, GLuint index, const char* name) { | 28 glBindAttribLocation(GLuint program, GLuint index, const char* name) { |
dmichael (off chromium)
2014/09/29 15:25:23
This is a little weird; I would've thought that it
| |
29 glGetInterfacePPAPI()->BindAttribLocation( | 29 glGetInterfacePPAPI()->BindAttribLocation( |
30 glGetCurrentContextPPAPI(), program, index, name); | 30 glGetCurrentContextPPAPI(), program, index, name); |
31 } | 31 } |
32 | 32 |
33 void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer) { | 33 void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer) { |
34 glGetInterfacePPAPI()->BindBuffer(glGetCurrentContextPPAPI(), target, buffer); | 34 glGetInterfacePPAPI()->BindBuffer(glGetCurrentContextPPAPI(), target, buffer); |
35 } | 35 } |
36 | 36 |
37 void GL_APIENTRY glBindFramebuffer(GLenum target, GLuint framebuffer) { | 37 void GL_APIENTRY glBindFramebuffer(GLenum target, GLuint framebuffer) { |
38 glGetInterfacePPAPI()->BindFramebuffer( | 38 glGetInterfacePPAPI()->BindFramebuffer( |
39 glGetCurrentContextPPAPI(), target, framebuffer); | 39 glGetCurrentContextPPAPI(), target, framebuffer); |
40 } | 40 } |
41 | 41 |
42 void GL_APIENTRY glBindRenderbuffer(GLenum target, GLuint renderbuffer) { | 42 void GL_APIENTRY glBindRenderbuffer(GLenum target, GLuint renderbuffer) { |
43 glGetInterfacePPAPI()->BindRenderbuffer( | 43 glGetInterfacePPAPI()->BindRenderbuffer( |
44 glGetCurrentContextPPAPI(), target, renderbuffer); | 44 glGetCurrentContextPPAPI(), target, renderbuffer); |
45 } | 45 } |
46 | 46 |
47 void GL_APIENTRY glBindTexture(GLenum target, GLuint texture) { | 47 void GL_APIENTRY glBindTexture(GLenum target, GLuint texture) { |
48 glGetInterfacePPAPI()->BindTexture( | 48 glGetInterfacePPAPI()->BindTexture( |
49 glGetCurrentContextPPAPI(), target, texture); | 49 glGetCurrentContextPPAPI(), target, texture); |
50 } | 50 } |
51 | 51 |
52 void GL_APIENTRY | 52 void GL_APIENTRY |
53 glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { | 53 glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { |
54 glGetInterfacePPAPI()->BlendColor( | 54 glGetInterfacePPAPI()->BlendColor( |
55 glGetCurrentContextPPAPI(), red, green, blue, alpha); | 55 glGetCurrentContextPPAPI(), red, green, blue, alpha); |
56 } | 56 } |
57 | 57 |
58 void GL_APIENTRY glBlendEquation(GLenum mode) { | 58 void GL_APIENTRY glBlendEquation(GLenum mode) { |
59 glGetInterfacePPAPI()->BlendEquation(glGetCurrentContextPPAPI(), mode); | 59 glGetInterfacePPAPI()->BlendEquation(glGetCurrentContextPPAPI(), mode); |
60 } | 60 } |
61 | 61 |
62 void GL_APIENTRY glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) { | 62 void GL_APIENTRY glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) { |
63 glGetInterfacePPAPI()->BlendEquationSeparate( | 63 glGetInterfacePPAPI()->BlendEquationSeparate( |
64 glGetCurrentContextPPAPI(), modeRGB, modeAlpha); | 64 glGetCurrentContextPPAPI(), modeRGB, modeAlpha); |
65 } | 65 } |
66 | 66 |
67 void GL_APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor) { | 67 void GL_APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor) { |
68 glGetInterfacePPAPI()->BlendFunc( | 68 glGetInterfacePPAPI()->BlendFunc( |
69 glGetCurrentContextPPAPI(), sfactor, dfactor); | 69 glGetCurrentContextPPAPI(), sfactor, dfactor); |
70 } | 70 } |
71 | 71 |
72 void GL_APIENTRY glBlendFuncSeparate(GLenum srcRGB, | 72 void GL_APIENTRY glBlendFuncSeparate(GLenum srcRGB, |
73 GLenum dstRGB, | 73 GLenum dstRGB, |
74 GLenum srcAlpha, | 74 GLenum srcAlpha, |
75 GLenum dstAlpha) { | 75 GLenum dstAlpha) { |
76 glGetInterfacePPAPI()->BlendFuncSeparate( | 76 glGetInterfacePPAPI()->BlendFuncSeparate( |
77 glGetCurrentContextPPAPI(), srcRGB, dstRGB, srcAlpha, dstAlpha); | 77 glGetCurrentContextPPAPI(), srcRGB, dstRGB, srcAlpha, dstAlpha); |
78 } | 78 } |
79 | 79 |
80 void GL_APIENTRY | 80 void GL_APIENTRY glBufferData(GLenum target, |
81 glBufferData(GLenum target, GLsizeiptr size, const void* data, GLenum usage) { | 81 GLsizeiptr size, |
82 const void* data, | |
83 GLenum usage) { | |
82 glGetInterfacePPAPI()->BufferData( | 84 glGetInterfacePPAPI()->BufferData( |
83 glGetCurrentContextPPAPI(), target, size, data, usage); | 85 glGetCurrentContextPPAPI(), target, size, data, usage); |
84 } | 86 } |
85 | 87 |
86 void GL_APIENTRY glBufferSubData(GLenum target, | 88 void GL_APIENTRY glBufferSubData(GLenum target, |
87 GLintptr offset, | 89 GLintptr offset, |
88 GLsizeiptr size, | 90 GLsizeiptr size, |
89 const void* data) { | 91 const void* data) { |
90 glGetInterfacePPAPI()->BufferSubData( | 92 glGetInterfacePPAPI()->BufferSubData( |
91 glGetCurrentContextPPAPI(), target, offset, size, data); | 93 glGetCurrentContextPPAPI(), target, offset, size, data); |
92 } | 94 } |
93 | 95 |
94 GLenum GL_APIENTRY glCheckFramebufferStatus(GLenum target) { | 96 GLenum GL_APIENTRY glCheckFramebufferStatus(GLenum target) { |
95 return glGetInterfacePPAPI()->CheckFramebufferStatus( | 97 return glGetInterfacePPAPI()->CheckFramebufferStatus( |
96 glGetCurrentContextPPAPI(), target); | 98 glGetCurrentContextPPAPI(), target); |
97 } | 99 } |
98 | 100 |
99 void GL_APIENTRY glClear(GLbitfield mask) { | 101 void GL_APIENTRY glClear(GLbitfield mask) { |
100 glGetInterfacePPAPI()->Clear(glGetCurrentContextPPAPI(), mask); | 102 glGetInterfacePPAPI()->Clear(glGetCurrentContextPPAPI(), mask); |
101 } | 103 } |
102 | 104 |
103 void GL_APIENTRY | 105 void GL_APIENTRY |
104 glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { | 106 glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { |
105 glGetInterfacePPAPI()->ClearColor( | 107 glGetInterfacePPAPI()->ClearColor( |
106 glGetCurrentContextPPAPI(), red, green, blue, alpha); | 108 glGetCurrentContextPPAPI(), red, green, blue, alpha); |
107 } | 109 } |
108 | 110 |
109 void GL_APIENTRY glClearDepthf(GLclampf depth) { | 111 void GL_APIENTRY glClearDepthf(GLclampf depth) { |
110 glGetInterfacePPAPI()->ClearDepthf(glGetCurrentContextPPAPI(), depth); | 112 glGetInterfacePPAPI()->ClearDepthf(glGetCurrentContextPPAPI(), depth); |
111 } | 113 } |
112 | 114 |
113 void GL_APIENTRY glClearStencil(GLint s) { | 115 void GL_APIENTRY glClearStencil(GLint s) { |
114 glGetInterfacePPAPI()->ClearStencil(glGetCurrentContextPPAPI(), s); | 116 glGetInterfacePPAPI()->ClearStencil(glGetCurrentContextPPAPI(), s); |
115 } | 117 } |
116 | 118 |
117 void GL_APIENTRY | 119 void GL_APIENTRY glColorMask(GLboolean red, |
118 glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) { | 120 GLboolean green, |
121 GLboolean blue, | |
122 GLboolean alpha) { | |
119 glGetInterfacePPAPI()->ColorMask( | 123 glGetInterfacePPAPI()->ColorMask( |
120 glGetCurrentContextPPAPI(), red, green, blue, alpha); | 124 glGetCurrentContextPPAPI(), red, green, blue, alpha); |
121 } | 125 } |
122 | 126 |
123 void GL_APIENTRY glCompileShader(GLuint shader) { | 127 void GL_APIENTRY glCompileShader(GLuint shader) { |
124 glGetInterfacePPAPI()->CompileShader(glGetCurrentContextPPAPI(), shader); | 128 glGetInterfacePPAPI()->CompileShader(glGetCurrentContextPPAPI(), shader); |
125 } | 129 } |
126 | 130 |
127 void GL_APIENTRY glCompressedTexImage2D(GLenum target, | 131 void GL_APIENTRY glCompressedTexImage2D(GLenum target, |
128 GLint level, | 132 GLint level, |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
265 void GL_APIENTRY glDisableVertexAttribArray(GLuint index) { | 269 void GL_APIENTRY glDisableVertexAttribArray(GLuint index) { |
266 glGetInterfacePPAPI()->DisableVertexAttribArray(glGetCurrentContextPPAPI(), | 270 glGetInterfacePPAPI()->DisableVertexAttribArray(glGetCurrentContextPPAPI(), |
267 index); | 271 index); |
268 } | 272 } |
269 | 273 |
270 void GL_APIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count) { | 274 void GL_APIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count) { |
271 glGetInterfacePPAPI()->DrawArrays( | 275 glGetInterfacePPAPI()->DrawArrays( |
272 glGetCurrentContextPPAPI(), mode, first, count); | 276 glGetCurrentContextPPAPI(), mode, first, count); |
273 } | 277 } |
274 | 278 |
275 void GL_APIENTRY | 279 void GL_APIENTRY glDrawElements(GLenum mode, |
276 glDrawElements(GLenum mode, GLsizei count, GLenum type, const void* indices) { | 280 GLsizei count, |
281 GLenum type, | |
282 const void* indices) { | |
277 glGetInterfacePPAPI()->DrawElements( | 283 glGetInterfacePPAPI()->DrawElements( |
278 glGetCurrentContextPPAPI(), mode, count, type, indices); | 284 glGetCurrentContextPPAPI(), mode, count, type, indices); |
279 } | 285 } |
280 | 286 |
281 void GL_APIENTRY glEnable(GLenum cap) { | 287 void GL_APIENTRY glEnable(GLenum cap) { |
282 glGetInterfacePPAPI()->Enable(glGetCurrentContextPPAPI(), cap); | 288 glGetInterfacePPAPI()->Enable(glGetCurrentContextPPAPI(), cap); |
283 } | 289 } |
284 | 290 |
285 void GL_APIENTRY glEnableVertexAttribArray(GLuint index) { | 291 void GL_APIENTRY glEnableVertexAttribArray(GLuint index) { |
286 glGetInterfacePPAPI()->EnableVertexAttribArray(glGetCurrentContextPPAPI(), | 292 glGetInterfacePPAPI()->EnableVertexAttribArray(glGetCurrentContextPPAPI(), |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
390 GLint GL_APIENTRY glGetAttribLocation(GLuint program, const char* name) { | 396 GLint GL_APIENTRY glGetAttribLocation(GLuint program, const char* name) { |
391 return glGetInterfacePPAPI()->GetAttribLocation( | 397 return glGetInterfacePPAPI()->GetAttribLocation( |
392 glGetCurrentContextPPAPI(), program, name); | 398 glGetCurrentContextPPAPI(), program, name); |
393 } | 399 } |
394 | 400 |
395 void GL_APIENTRY glGetBooleanv(GLenum pname, GLboolean* params) { | 401 void GL_APIENTRY glGetBooleanv(GLenum pname, GLboolean* params) { |
396 glGetInterfacePPAPI()->GetBooleanv(glGetCurrentContextPPAPI(), pname, params); | 402 glGetInterfacePPAPI()->GetBooleanv(glGetCurrentContextPPAPI(), pname, params); |
397 } | 403 } |
398 | 404 |
399 void GL_APIENTRY | 405 void GL_APIENTRY |
400 glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params) { | 406 glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params) { |
401 glGetInterfacePPAPI()->GetBufferParameteriv( | 407 glGetInterfacePPAPI()->GetBufferParameteriv( |
402 glGetCurrentContextPPAPI(), target, pname, params); | 408 glGetCurrentContextPPAPI(), target, pname, params); |
403 } | 409 } |
404 | 410 |
405 GLenum GL_APIENTRY glGetError() { | 411 GLenum GL_APIENTRY glGetError() { |
406 return glGetInterfacePPAPI()->GetError(glGetCurrentContextPPAPI()); | 412 return glGetInterfacePPAPI()->GetError(glGetCurrentContextPPAPI()); |
407 } | 413 } |
408 | 414 |
409 void GL_APIENTRY glGetFloatv(GLenum pname, GLfloat* params) { | 415 void GL_APIENTRY glGetFloatv(GLenum pname, GLfloat* params) { |
410 glGetInterfacePPAPI()->GetFloatv(glGetCurrentContextPPAPI(), pname, params); | 416 glGetInterfacePPAPI()->GetFloatv(glGetCurrentContextPPAPI(), pname, params); |
(...skipping 18 matching lines...) Expand all Loading... | |
429 | 435 |
430 void GL_APIENTRY glGetProgramInfoLog(GLuint program, | 436 void GL_APIENTRY glGetProgramInfoLog(GLuint program, |
431 GLsizei bufsize, | 437 GLsizei bufsize, |
432 GLsizei* length, | 438 GLsizei* length, |
433 char* infolog) { | 439 char* infolog) { |
434 glGetInterfacePPAPI()->GetProgramInfoLog( | 440 glGetInterfacePPAPI()->GetProgramInfoLog( |
435 glGetCurrentContextPPAPI(), program, bufsize, length, infolog); | 441 glGetCurrentContextPPAPI(), program, bufsize, length, infolog); |
436 } | 442 } |
437 | 443 |
438 void GL_APIENTRY | 444 void GL_APIENTRY |
439 glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params) { | 445 glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params) { |
440 glGetInterfacePPAPI()->GetRenderbufferParameteriv( | 446 glGetInterfacePPAPI()->GetRenderbufferParameteriv( |
441 glGetCurrentContextPPAPI(), target, pname, params); | 447 glGetCurrentContextPPAPI(), target, pname, params); |
442 } | 448 } |
443 | 449 |
444 void GL_APIENTRY glGetShaderiv(GLuint shader, GLenum pname, GLint* params) { | 450 void GL_APIENTRY glGetShaderiv(GLuint shader, GLenum pname, GLint* params) { |
445 glGetInterfacePPAPI()->GetShaderiv( | 451 glGetInterfacePPAPI()->GetShaderiv( |
446 glGetCurrentContextPPAPI(), shader, pname, params); | 452 glGetCurrentContextPPAPI(), shader, pname, params); |
447 } | 453 } |
448 | 454 |
449 void GL_APIENTRY glGetShaderInfoLog(GLuint shader, | 455 void GL_APIENTRY glGetShaderInfoLog(GLuint shader, |
(...skipping 18 matching lines...) Expand all Loading... | |
468 char* source) { | 474 char* source) { |
469 glGetInterfacePPAPI()->GetShaderSource( | 475 glGetInterfacePPAPI()->GetShaderSource( |
470 glGetCurrentContextPPAPI(), shader, bufsize, length, source); | 476 glGetCurrentContextPPAPI(), shader, bufsize, length, source); |
471 } | 477 } |
472 | 478 |
473 const GLubyte* GL_APIENTRY glGetString(GLenum name) { | 479 const GLubyte* GL_APIENTRY glGetString(GLenum name) { |
474 return glGetInterfacePPAPI()->GetString(glGetCurrentContextPPAPI(), name); | 480 return glGetInterfacePPAPI()->GetString(glGetCurrentContextPPAPI(), name); |
475 } | 481 } |
476 | 482 |
477 void GL_APIENTRY | 483 void GL_APIENTRY |
478 glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) { | 484 glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) { |
479 glGetInterfacePPAPI()->GetTexParameterfv( | 485 glGetInterfacePPAPI()->GetTexParameterfv( |
480 glGetCurrentContextPPAPI(), target, pname, params); | 486 glGetCurrentContextPPAPI(), target, pname, params); |
481 } | 487 } |
482 | 488 |
483 void GL_APIENTRY | 489 void GL_APIENTRY |
484 glGetTexParameteriv(GLenum target, GLenum pname, GLint* params) { | 490 glGetTexParameteriv(GLenum target, GLenum pname, GLint* params) { |
485 glGetInterfacePPAPI()->GetTexParameteriv( | 491 glGetInterfacePPAPI()->GetTexParameteriv( |
486 glGetCurrentContextPPAPI(), target, pname, params); | 492 glGetCurrentContextPPAPI(), target, pname, params); |
487 } | 493 } |
488 | 494 |
489 void GL_APIENTRY | 495 void GL_APIENTRY |
490 glGetUniformfv(GLuint program, GLint location, GLfloat* params) { | 496 glGetUniformfv(GLuint program, GLint location, GLfloat* params) { |
491 glGetInterfacePPAPI()->GetUniformfv( | 497 glGetInterfacePPAPI()->GetUniformfv( |
492 glGetCurrentContextPPAPI(), program, location, params); | 498 glGetCurrentContextPPAPI(), program, location, params); |
493 } | 499 } |
494 | 500 |
495 void GL_APIENTRY glGetUniformiv(GLuint program, GLint location, GLint* params) { | 501 void GL_APIENTRY glGetUniformiv(GLuint program, GLint location, GLint* params) { |
496 glGetInterfacePPAPI()->GetUniformiv( | 502 glGetInterfacePPAPI()->GetUniformiv( |
497 glGetCurrentContextPPAPI(), program, location, params); | 503 glGetCurrentContextPPAPI(), program, location, params); |
498 } | 504 } |
499 | 505 |
500 GLint GL_APIENTRY glGetUniformLocation(GLuint program, const char* name) { | 506 GLint GL_APIENTRY glGetUniformLocation(GLuint program, const char* name) { |
501 return glGetInterfacePPAPI()->GetUniformLocation( | 507 return glGetInterfacePPAPI()->GetUniformLocation( |
502 glGetCurrentContextPPAPI(), program, name); | 508 glGetCurrentContextPPAPI(), program, name); |
503 } | 509 } |
504 | 510 |
505 void GL_APIENTRY | 511 void GL_APIENTRY |
506 glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) { | 512 glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) { |
507 glGetInterfacePPAPI()->GetVertexAttribfv( | 513 glGetInterfacePPAPI()->GetVertexAttribfv( |
508 glGetCurrentContextPPAPI(), index, pname, params); | 514 glGetCurrentContextPPAPI(), index, pname, params); |
509 } | 515 } |
510 | 516 |
511 void GL_APIENTRY | 517 void GL_APIENTRY |
512 glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params) { | 518 glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params) { |
513 glGetInterfacePPAPI()->GetVertexAttribiv( | 519 glGetInterfacePPAPI()->GetVertexAttribiv( |
514 glGetCurrentContextPPAPI(), index, pname, params); | 520 glGetCurrentContextPPAPI(), index, pname, params); |
515 } | 521 } |
516 | 522 |
517 void GL_APIENTRY | 523 void GL_APIENTRY |
518 glGetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) { | 524 glGetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) { |
519 glGetInterfacePPAPI()->GetVertexAttribPointerv( | 525 glGetInterfacePPAPI()->GetVertexAttribPointerv( |
520 glGetCurrentContextPPAPI(), index, pname, pointer); | 526 glGetCurrentContextPPAPI(), index, pname, pointer); |
521 } | 527 } |
522 | 528 |
523 void GL_APIENTRY glHint(GLenum target, GLenum mode) { | 529 void GL_APIENTRY glHint(GLenum target, GLenum mode) { |
524 glGetInterfacePPAPI()->Hint(glGetCurrentContextPPAPI(), target, mode); | 530 glGetInterfacePPAPI()->Hint(glGetCurrentContextPPAPI(), target, mode); |
525 } | 531 } |
526 | 532 |
527 GLboolean GL_APIENTRY glIsBuffer(GLuint buffer) { | 533 GLboolean GL_APIENTRY glIsBuffer(GLuint buffer) { |
528 return glGetInterfacePPAPI()->IsBuffer(glGetCurrentContextPPAPI(), buffer); | 534 return glGetInterfacePPAPI()->IsBuffer(glGetCurrentContextPPAPI(), buffer); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
620 glGetInterfacePPAPI()->ShaderSource( | 626 glGetInterfacePPAPI()->ShaderSource( |
621 glGetCurrentContextPPAPI(), shader, count, str, length); | 627 glGetCurrentContextPPAPI(), shader, count, str, length); |
622 } | 628 } |
623 | 629 |
624 void GL_APIENTRY glStencilFunc(GLenum func, GLint ref, GLuint mask) { | 630 void GL_APIENTRY glStencilFunc(GLenum func, GLint ref, GLuint mask) { |
625 glGetInterfacePPAPI()->StencilFunc( | 631 glGetInterfacePPAPI()->StencilFunc( |
626 glGetCurrentContextPPAPI(), func, ref, mask); | 632 glGetCurrentContextPPAPI(), func, ref, mask); |
627 } | 633 } |
628 | 634 |
629 void GL_APIENTRY | 635 void GL_APIENTRY |
630 glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) { | 636 glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) { |
631 glGetInterfacePPAPI()->StencilFuncSeparate( | 637 glGetInterfacePPAPI()->StencilFuncSeparate( |
632 glGetCurrentContextPPAPI(), face, func, ref, mask); | 638 glGetCurrentContextPPAPI(), face, func, ref, mask); |
633 } | 639 } |
634 | 640 |
635 void GL_APIENTRY glStencilMask(GLuint mask) { | 641 void GL_APIENTRY glStencilMask(GLuint mask) { |
636 glGetInterfacePPAPI()->StencilMask(glGetCurrentContextPPAPI(), mask); | 642 glGetInterfacePPAPI()->StencilMask(glGetCurrentContextPPAPI(), mask); |
637 } | 643 } |
638 | 644 |
639 void GL_APIENTRY glStencilMaskSeparate(GLenum face, GLuint mask) { | 645 void GL_APIENTRY glStencilMaskSeparate(GLenum face, GLuint mask) { |
640 glGetInterfacePPAPI()->StencilMaskSeparate( | 646 glGetInterfacePPAPI()->StencilMaskSeparate( |
641 glGetCurrentContextPPAPI(), face, mask); | 647 glGetCurrentContextPPAPI(), face, mask); |
642 } | 648 } |
643 | 649 |
644 void GL_APIENTRY glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) { | 650 void GL_APIENTRY glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) { |
645 glGetInterfacePPAPI()->StencilOp( | 651 glGetInterfacePPAPI()->StencilOp( |
646 glGetCurrentContextPPAPI(), fail, zfail, zpass); | 652 glGetCurrentContextPPAPI(), fail, zfail, zpass); |
647 } | 653 } |
648 | 654 |
649 void GL_APIENTRY | 655 void GL_APIENTRY |
650 glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) { | 656 glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) { |
651 glGetInterfacePPAPI()->StencilOpSeparate( | 657 glGetInterfacePPAPI()->StencilOpSeparate( |
652 glGetCurrentContextPPAPI(), face, fail, zfail, zpass); | 658 glGetCurrentContextPPAPI(), face, fail, zfail, zpass); |
653 } | 659 } |
654 | 660 |
655 void GL_APIENTRY glTexImage2D(GLenum target, | 661 void GL_APIENTRY glTexImage2D(GLenum target, |
656 GLint level, | 662 GLint level, |
657 GLint internalformat, | 663 GLint internalformat, |
658 GLsizei width, | 664 GLsizei width, |
659 GLsizei height, | 665 GLsizei height, |
660 GLint border, | 666 GLint border, |
(...skipping 11 matching lines...) Expand all Loading... | |
672 type, | 678 type, |
673 pixels); | 679 pixels); |
674 } | 680 } |
675 | 681 |
676 void GL_APIENTRY glTexParameterf(GLenum target, GLenum pname, GLfloat param) { | 682 void GL_APIENTRY glTexParameterf(GLenum target, GLenum pname, GLfloat param) { |
677 glGetInterfacePPAPI()->TexParameterf( | 683 glGetInterfacePPAPI()->TexParameterf( |
678 glGetCurrentContextPPAPI(), target, pname, param); | 684 glGetCurrentContextPPAPI(), target, pname, param); |
679 } | 685 } |
680 | 686 |
681 void GL_APIENTRY | 687 void GL_APIENTRY |
682 glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params) { | 688 glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params) { |
683 glGetInterfacePPAPI()->TexParameterfv( | 689 glGetInterfacePPAPI()->TexParameterfv( |
684 glGetCurrentContextPPAPI(), target, pname, params); | 690 glGetCurrentContextPPAPI(), target, pname, params); |
685 } | 691 } |
686 | 692 |
687 void GL_APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) { | 693 void GL_APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) { |
688 glGetInterfacePPAPI()->TexParameteri( | 694 glGetInterfacePPAPI()->TexParameteri( |
689 glGetCurrentContextPPAPI(), target, pname, param); | 695 glGetCurrentContextPPAPI(), target, pname, param); |
690 } | 696 } |
691 | 697 |
692 void GL_APIENTRY | 698 void GL_APIENTRY |
693 glTexParameteriv(GLenum target, GLenum pname, const GLint* params) { | 699 glTexParameteriv(GLenum target, GLenum pname, const GLint* params) { |
694 glGetInterfacePPAPI()->TexParameteriv( | 700 glGetInterfacePPAPI()->TexParameteriv( |
695 glGetCurrentContextPPAPI(), target, pname, params); | 701 glGetCurrentContextPPAPI(), target, pname, params); |
696 } | 702 } |
697 | 703 |
698 void GL_APIENTRY glTexSubImage2D(GLenum target, | 704 void GL_APIENTRY glTexSubImage2D(GLenum target, |
699 GLint level, | 705 GLint level, |
700 GLint xoffset, | 706 GLint xoffset, |
701 GLint yoffset, | 707 GLint yoffset, |
702 GLsizei width, | 708 GLsizei width, |
703 GLsizei height, | 709 GLsizei height, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
766 glGetInterfacePPAPI()->Uniform3i( | 772 glGetInterfacePPAPI()->Uniform3i( |
767 glGetCurrentContextPPAPI(), location, x, y, z); | 773 glGetCurrentContextPPAPI(), location, x, y, z); |
768 } | 774 } |
769 | 775 |
770 void GL_APIENTRY glUniform3iv(GLint location, GLsizei count, const GLint* v) { | 776 void GL_APIENTRY glUniform3iv(GLint location, GLsizei count, const GLint* v) { |
771 glGetInterfacePPAPI()->Uniform3iv( | 777 glGetInterfacePPAPI()->Uniform3iv( |
772 glGetCurrentContextPPAPI(), location, count, v); | 778 glGetCurrentContextPPAPI(), location, count, v); |
773 } | 779 } |
774 | 780 |
775 void GL_APIENTRY | 781 void GL_APIENTRY |
776 glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { | 782 glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { |
777 glGetInterfacePPAPI()->Uniform4f( | 783 glGetInterfacePPAPI()->Uniform4f( |
778 glGetCurrentContextPPAPI(), location, x, y, z, w); | 784 glGetCurrentContextPPAPI(), location, x, y, z, w); |
779 } | 785 } |
780 | 786 |
781 void GL_APIENTRY glUniform4fv(GLint location, GLsizei count, const GLfloat* v) { | 787 void GL_APIENTRY glUniform4fv(GLint location, GLsizei count, const GLfloat* v) { |
782 glGetInterfacePPAPI()->Uniform4fv( | 788 glGetInterfacePPAPI()->Uniform4fv( |
783 glGetCurrentContextPPAPI(), location, count, v); | 789 glGetCurrentContextPPAPI(), location, count, v); |
784 } | 790 } |
785 | 791 |
786 void GL_APIENTRY | 792 void GL_APIENTRY |
787 glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) { | 793 glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) { |
788 glGetInterfacePPAPI()->Uniform4i( | 794 glGetInterfacePPAPI()->Uniform4i( |
789 glGetCurrentContextPPAPI(), location, x, y, z, w); | 795 glGetCurrentContextPPAPI(), location, x, y, z, w); |
790 } | 796 } |
791 | 797 |
792 void GL_APIENTRY glUniform4iv(GLint location, GLsizei count, const GLint* v) { | 798 void GL_APIENTRY glUniform4iv(GLint location, GLsizei count, const GLint* v) { |
793 glGetInterfacePPAPI()->Uniform4iv( | 799 glGetInterfacePPAPI()->Uniform4iv( |
794 glGetCurrentContextPPAPI(), location, count, v); | 800 glGetCurrentContextPPAPI(), location, count, v); |
795 } | 801 } |
796 | 802 |
797 void GL_APIENTRY glUniformMatrix2fv(GLint location, | 803 void GL_APIENTRY glUniformMatrix2fv(GLint location, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
838 void GL_APIENTRY glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { | 844 void GL_APIENTRY glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { |
839 glGetInterfacePPAPI()->VertexAttrib2f(glGetCurrentContextPPAPI(), indx, x, y); | 845 glGetInterfacePPAPI()->VertexAttrib2f(glGetCurrentContextPPAPI(), indx, x, y); |
840 } | 846 } |
841 | 847 |
842 void GL_APIENTRY glVertexAttrib2fv(GLuint indx, const GLfloat* values) { | 848 void GL_APIENTRY glVertexAttrib2fv(GLuint indx, const GLfloat* values) { |
843 glGetInterfacePPAPI()->VertexAttrib2fv( | 849 glGetInterfacePPAPI()->VertexAttrib2fv( |
844 glGetCurrentContextPPAPI(), indx, values); | 850 glGetCurrentContextPPAPI(), indx, values); |
845 } | 851 } |
846 | 852 |
847 void GL_APIENTRY | 853 void GL_APIENTRY |
848 glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) { | 854 glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) { |
849 glGetInterfacePPAPI()->VertexAttrib3f( | 855 glGetInterfacePPAPI()->VertexAttrib3f( |
850 glGetCurrentContextPPAPI(), indx, x, y, z); | 856 glGetCurrentContextPPAPI(), indx, x, y, z); |
851 } | 857 } |
852 | 858 |
853 void GL_APIENTRY glVertexAttrib3fv(GLuint indx, const GLfloat* values) { | 859 void GL_APIENTRY glVertexAttrib3fv(GLuint indx, const GLfloat* values) { |
854 glGetInterfacePPAPI()->VertexAttrib3fv( | 860 glGetInterfacePPAPI()->VertexAttrib3fv( |
855 glGetCurrentContextPPAPI(), indx, values); | 861 glGetCurrentContextPPAPI(), indx, values); |
856 } | 862 } |
857 | 863 |
858 void GL_APIENTRY | 864 void GL_APIENTRY |
859 glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { | 865 glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { |
860 glGetInterfacePPAPI()->VertexAttrib4f( | 866 glGetInterfacePPAPI()->VertexAttrib4f( |
861 glGetCurrentContextPPAPI(), indx, x, y, z, w); | 867 glGetCurrentContextPPAPI(), indx, x, y, z, w); |
862 } | 868 } |
863 | 869 |
864 void GL_APIENTRY glVertexAttrib4fv(GLuint indx, const GLfloat* values) { | 870 void GL_APIENTRY glVertexAttrib4fv(GLuint indx, const GLfloat* values) { |
865 glGetInterfacePPAPI()->VertexAttrib4fv( | 871 glGetInterfacePPAPI()->VertexAttrib4fv( |
866 glGetCurrentContextPPAPI(), indx, values); | 872 glGetCurrentContextPPAPI(), indx, values); |
867 } | 873 } |
868 | 874 |
869 void GL_APIENTRY glVertexAttribPointer(GLuint indx, | 875 void GL_APIENTRY glVertexAttribPointer(GLuint indx, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
954 ext->EndQueryEXT(glGetCurrentContextPPAPI(), target); | 960 ext->EndQueryEXT(glGetCurrentContextPPAPI(), target); |
955 } | 961 } |
956 | 962 |
957 void GL_APIENTRY glGetQueryivEXT(GLenum target, GLenum pname, GLint* params) { | 963 void GL_APIENTRY glGetQueryivEXT(GLenum target, GLenum pname, GLint* params) { |
958 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); | 964 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); |
959 if (ext) | 965 if (ext) |
960 ext->GetQueryivEXT(glGetCurrentContextPPAPI(), target, pname, params); | 966 ext->GetQueryivEXT(glGetCurrentContextPPAPI(), target, pname, params); |
961 } | 967 } |
962 | 968 |
963 void GL_APIENTRY | 969 void GL_APIENTRY |
964 glGetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) { | 970 glGetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) { |
965 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); | 971 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); |
966 if (ext) | 972 if (ext) |
967 ext->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id, pname, params); | 973 ext->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id, pname, params); |
968 } | 974 } |
969 | 975 |
970 void GL_APIENTRY glGenVertexArraysOES(GLsizei n, GLuint* arrays) { | 976 void GL_APIENTRY glGenVertexArraysOES(GLsizei n, GLuint* arrays) { |
971 const struct PPB_OpenGLES2VertexArrayObject* ext = | 977 const struct PPB_OpenGLES2VertexArrayObject* ext = |
972 glGetVertexArrayObjectInterfacePPAPI(); | 978 glGetVertexArrayObjectInterfacePPAPI(); |
973 if (ext) | 979 if (ext) |
974 ext->GenVertexArraysOES(glGetCurrentContextPPAPI(), n, arrays); | 980 ext->GenVertexArraysOES(glGetCurrentContextPPAPI(), n, arrays); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1084 if (ext) | 1090 if (ext) |
1085 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); | 1091 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); |
1086 } | 1092 } |
1087 | 1093 |
1088 void GL_APIENTRY glDrawBuffersEXT(GLsizei count, const GLenum* bufs) { | 1094 void GL_APIENTRY glDrawBuffersEXT(GLsizei count, const GLenum* bufs) { |
1089 const struct PPB_OpenGLES2DrawBuffers_Dev* ext = | 1095 const struct PPB_OpenGLES2DrawBuffers_Dev* ext = |
1090 glGetDrawBuffersInterfacePPAPI(); | 1096 glGetDrawBuffersInterfacePPAPI(); |
1091 if (ext) | 1097 if (ext) |
1092 ext->DrawBuffersEXT(glGetCurrentContextPPAPI(), count, bufs); | 1098 ext->DrawBuffersEXT(glGetCurrentContextPPAPI(), count, bufs); |
1093 } | 1099 } |
OLD | NEW |