OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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. DO NOT EDIT! | 5 // This file is auto-generated. DO NOT EDIT! |
6 | 6 |
7 // This interface is used to access common and lite profile OpenGL ES 2.0 | 7 // This interface is used to access common and lite profile OpenGL ES 2.0 |
8 // functions. | 8 // functions. |
9 #ifndef PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ | 9 #ifndef PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ |
10 #define PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ | 10 #define PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ |
11 | 11 |
| 12 #include "ppapi/c/pp_macros.h" |
12 #include "ppapi/GLES2/khrplatform.h" | 13 #include "ppapi/GLES2/khrplatform.h" |
13 | 14 |
14 #define PPB_OPENGLES_DEV_INTERFACE "PPB_OpenGLES(Dev);2.0" | 15 #define PPB_OPENGLES_DEV_INTERFACE "PPB_OpenGLES(Dev);2.0" |
15 | 16 |
16 typedef unsigned int GLenum; | 17 typedef unsigned int GLenum; |
| 18 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLenum, 4); |
17 typedef void GLvoid; | 19 typedef void GLvoid; |
18 typedef khronos_intptr_t GLintptr; | 20 typedef khronos_intptr_t GLintptr; |
19 typedef int GLsizei; | 21 typedef int GLsizei; |
| 22 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLsizei, 4); |
20 typedef khronos_ssize_t GLsizeiptr; | 23 typedef khronos_ssize_t GLsizeiptr; |
21 typedef int GLint; | 24 typedef int GLint; |
| 25 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLint, 4); |
22 typedef unsigned char GLboolean; | 26 typedef unsigned char GLboolean; |
| 27 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLboolean, 1); |
23 typedef unsigned int GLuint; | 28 typedef unsigned int GLuint; |
| 29 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLuint, 4); |
24 typedef unsigned int GLbitfield; | 30 typedef unsigned int GLbitfield; |
| 31 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLbitfield, 4); |
25 typedef short GLshort; | 32 typedef short GLshort; |
| 33 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLshort, 2); |
26 typedef float GLfloat; | 34 typedef float GLfloat; |
| 35 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLfloat, 4); |
27 typedef float GLclampf; | 36 typedef float GLclampf; |
| 37 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLclampf, 4); |
28 typedef signed char GLbyte; | 38 typedef signed char GLbyte; |
| 39 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLbyte, 1); |
29 typedef unsigned char GLubyte; | 40 typedef unsigned char GLubyte; |
| 41 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLubyte, 1); |
30 typedef int GLfixed; | 42 typedef int GLfixed; |
| 43 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLfixed, 4); |
31 typedef unsigned short GLushort; | 44 typedef unsigned short GLushort; |
| 45 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLushort, 2); |
32 typedef int GLclampx; | 46 typedef int GLclampx; |
| 47 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLclampx, 4); |
33 | 48 |
34 struct PPB_OpenGLES_Dev { | 49 struct PPB_OpenGLES_Dev { |
35 void (*ActiveTexture)(GLenum texture); | 50 void (*ActiveTexture)(GLenum texture); |
36 void (*AttachShader)(GLuint program, GLuint shader); | 51 void (*AttachShader)(GLuint program, GLuint shader); |
37 void (*BindAttribLocation)(GLuint program, GLuint index, const char* name); | 52 void (*BindAttribLocation)(GLuint program, GLuint index, const char* name); |
38 void (*BindBuffer)(GLenum target, GLuint buffer); | 53 void (*BindBuffer)(GLenum target, GLuint buffer); |
39 void (*BindFramebuffer)(GLenum target, GLuint framebuffer); | 54 void (*BindFramebuffer)(GLenum target, GLuint framebuffer); |
40 void (*BindRenderbuffer)(GLenum target, GLuint renderbuffer); | 55 void (*BindRenderbuffer)(GLenum target, GLuint renderbuffer); |
41 void (*BindTexture)(GLenum target, GLuint texture); | 56 void (*BindTexture)(GLenum target, GLuint texture); |
42 void (*BlendColor)( | 57 void (*BlendColor)( |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 GLuint indx, GLint size, GLenum type, GLboolean normalized, | 242 GLuint indx, GLint size, GLenum type, GLboolean normalized, |
228 GLsizei stride, const void* ptr); | 243 GLsizei stride, const void* ptr); |
229 void (*Viewport)(GLint x, GLint y, GLsizei width, GLsizei height); | 244 void (*Viewport)(GLint x, GLint y, GLsizei width, GLsizei height); |
230 void (*SwapBuffers)(); | 245 void (*SwapBuffers)(); |
231 void (*CopyTextureToParentTexture)( | 246 void (*CopyTextureToParentTexture)( |
232 GLuint client_child_id, GLuint client_parent_id); | 247 GLuint client_child_id, GLuint client_parent_id); |
233 }; | 248 }; |
234 | 249 |
235 #endif // PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ | 250 #endif // PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ |
236 | 251 |
OLD | NEW |