OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // OpenGL ES interface. | 7 // OpenGL ES interface. |
8 #ifndef PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ |
9 #define PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 typedef short GLshort; | 24 typedef short GLshort; |
25 typedef float GLfloat; | 25 typedef float GLfloat; |
26 typedef float GLclampf; | 26 typedef float GLclampf; |
27 typedef int8_t GLbyte; | 27 typedef int8_t GLbyte; |
28 typedef uint8_t GLubyte; | 28 typedef uint8_t GLubyte; |
29 typedef int32_t GLfixed; | 29 typedef int32_t GLfixed; |
30 typedef unsigned short GLushort; | 30 typedef unsigned short GLushort; |
31 typedef int GLclampx; | 31 typedef int GLclampx; |
32 #endif // __gl2_h_ | 32 #endif // __gl2_h_ |
33 | 33 |
34 #define PPB_OPENGLES2_DEV_INTERFACE "PPB_OpenGLES(Dev);2.0" | 34 // TODO(brettw) this string should be PPB_OpenGLES2;1.0 when this is frozen. |
| 35 // The 2.0 is trying to describe the version of OpenGL ES which is different |
| 36 // than the Pepper interface version. |
| 37 #define PPB_OPENGLES2_DEV_INTERFACE_0_1 "PPB_OpenGLES(Dev);2.0" |
| 38 #define PPB_OPENGLES2_DEV_INTERFACE PPB_OPENGLES2_DEV_INTERFACE_0_1 |
35 | 39 |
36 struct PPB_OpenGLES2_Dev { | 40 struct PPB_OpenGLES2_Dev { |
37 void (*ActiveTexture)(PP_Resource context, GLenum texture); | 41 void (*ActiveTexture)(PP_Resource context, GLenum texture); |
38 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader); | 42 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader); |
39 void (*BindAttribLocation)( | 43 void (*BindAttribLocation)( |
40 PP_Resource context, GLuint program, GLuint index, const char* name); | 44 PP_Resource context, GLuint program, GLuint index, const char* name); |
41 void (*BindBuffer)(PP_Resource context, GLenum target, GLuint buffer); | 45 void (*BindBuffer)(PP_Resource context, GLenum target, GLuint buffer); |
42 void (*BindFramebuffer)( | 46 void (*BindFramebuffer)( |
43 PP_Resource context, GLenum target, GLuint framebuffer); | 47 PP_Resource context, GLenum target, GLuint framebuffer); |
44 void (*BindRenderbuffer)( | 48 void (*BindRenderbuffer)( |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 PP_Resource context, GLuint indx, const GLfloat* values); | 299 PP_Resource context, GLuint indx, const GLfloat* values); |
296 void (*VertexAttribPointer)( | 300 void (*VertexAttribPointer)( |
297 PP_Resource context, GLuint indx, GLint size, GLenum type, | 301 PP_Resource context, GLuint indx, GLint size, GLenum type, |
298 GLboolean normalized, GLsizei stride, const void* ptr); | 302 GLboolean normalized, GLsizei stride, const void* ptr); |
299 void (*Viewport)( | 303 void (*Viewport)( |
300 PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height); | 304 PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height); |
301 }; | 305 }; |
302 | 306 |
303 #endif // PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ | 307 #endif // PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ |
304 | 308 |
OLD | NEW |