OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 // OpenGL ES interface. | 9 // OpenGL ES interface. |
10 #ifndef PPAPI_C_PPB_OPENGLES2_H_ | 10 #ifndef PPAPI_C_PPB_OPENGLES2_H_ |
11 #define PPAPI_C_PPB_OPENGLES2_H_ | 11 #define PPAPI_C_PPB_OPENGLES2_H_ |
12 | 12 |
13 #include "ppapi/c/pp_resource.h" | 13 #include "ppapi/c/pp_resource.h" |
14 | 14 |
15 #ifndef __gl2_h_ | 15 #ifndef __gl2_h_ |
16 typedef unsigned int GLenum; | 16 typedef unsigned int GLenum; |
17 typedef void GLvoid; | 17 typedef void GLvoid; |
| 18 typedef long int GLintptr; |
18 typedef int GLsizei; | 19 typedef int GLsizei; |
| 20 typedef long int GLsizeiptr; |
19 typedef int GLint; | 21 typedef int GLint; |
20 typedef unsigned char GLboolean; | 22 typedef unsigned char GLboolean; |
21 typedef unsigned int GLuint; | 23 typedef unsigned int GLuint; |
22 typedef unsigned int GLbitfield; | 24 typedef unsigned int GLbitfield; |
23 typedef short GLshort; | 25 typedef short GLshort; |
24 typedef float GLfloat; | 26 typedef float GLfloat; |
25 typedef float GLclampf; | 27 typedef float GLclampf; |
26 typedef signed char GLbyte; | 28 typedef signed char GLbyte; |
27 typedef unsigned char GLubyte; | 29 typedef unsigned char GLubyte; |
28 typedef int GLfixed; | 30 typedef int GLfixed; |
29 typedef unsigned short GLushort; | 31 typedef unsigned short GLushort; |
30 typedef int GLclampx; | 32 typedef int GLclampx; |
31 #ifdef _WIN64 | |
32 typedef long long int GLintptr; | |
33 typedef long long int GLsizeiptr; | |
34 #else | |
35 typedef long int GLintptr; | |
36 typedef long int GLsizeiptr; | |
37 #endif // _WIN64 | |
38 #endif // __gl2_h_ | 33 #endif // __gl2_h_ |
39 | 34 |
40 #define PPB_OPENGLES2_INTERFACE_1_0 "PPB_OpenGLES2;1.0" | 35 #define PPB_OPENGLES2_INTERFACE_1_0 "PPB_OpenGLES2;1.0" |
41 #define PPB_OPENGLES2_INTERFACE PPB_OPENGLES2_INTERFACE_1_0 | 36 #define PPB_OPENGLES2_INTERFACE PPB_OPENGLES2_INTERFACE_1_0 |
42 | 37 |
43 struct PPB_OpenGLES2 { | 38 struct PPB_OpenGLES2 { |
44 void (*ActiveTexture)(PP_Resource context, GLenum texture); | 39 void (*ActiveTexture)(PP_Resource context, GLenum texture); |
45 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader); | 40 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader); |
46 void (*BindAttribLocation)( | 41 void (*BindAttribLocation)( |
47 PP_Resource context, GLuint program, GLuint index, const char* name); | 42 PP_Resource context, GLuint program, GLuint index, const char* name); |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 void (*BeginQueryEXT)(PP_Resource context, GLenum target, GLuint id); | 368 void (*BeginQueryEXT)(PP_Resource context, GLenum target, GLuint id); |
374 void (*EndQueryEXT)(PP_Resource context, GLenum target); | 369 void (*EndQueryEXT)(PP_Resource context, GLenum target); |
375 void (*GetQueryivEXT)( | 370 void (*GetQueryivEXT)( |
376 PP_Resource context, GLenum target, GLenum pname, GLint* params); | 371 PP_Resource context, GLenum target, GLenum pname, GLint* params); |
377 void (*GetQueryObjectuivEXT)( | 372 void (*GetQueryObjectuivEXT)( |
378 PP_Resource context, GLuint id, GLenum pname, GLuint* params); | 373 PP_Resource context, GLuint id, GLenum pname, GLuint* params); |
379 }; | 374 }; |
380 | 375 |
381 #endif // PPAPI_C_PPB_OPENGLES2_H_ | 376 #endif // PPAPI_C_PPB_OPENGLES2_H_ |
382 | 377 |
OLD | NEW |