Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: ppapi/c/ppb_opengles.h

Issue 7737013: Move PPAPI graphics3d and opengles interfaces out of Dev. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_PPB_OPENGLES_H_
9 #define PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ 9 #define PPAPI_C_PPB_OPENGLES_H_
10 10
11 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/c/pp_stdint.h" 12 #include "ppapi/c/pp_stdint.h"
13 13
14 #ifndef __gl2_h_ 14 #ifndef __gl2_h_
15 typedef unsigned int GLenum; 15 typedef unsigned int GLenum;
16 typedef void GLvoid; 16 typedef void GLvoid;
17 typedef long int GLintptr; 17 typedef long int GLintptr;
18 typedef int GLsizei; 18 typedef int GLsizei;
19 typedef long int GLsizeiptr; 19 typedef long int GLsizeiptr;
20 typedef int GLint; 20 typedef int GLint;
21 typedef unsigned char GLboolean; 21 typedef unsigned char GLboolean;
22 typedef unsigned int GLuint; 22 typedef unsigned int GLuint;
23 typedef unsigned int GLbitfield; 23 typedef unsigned int GLbitfield;
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 // TODO(brettw) this string should be PPB_OpenGLES2;1.0 when this is frozen. 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 35 // The 2 following OpenGLES describes the version of OpenGL ES, which is
36 // than the Pepper interface version. 36 // different than the Pepper interface version to the right of the semi-colon.
37 #define PPB_OPENGLES2_DEV_INTERFACE_0_1 "PPB_OpenGLES(Dev);2.0" 37 #define PPB_OPENGLES2_INTERFACE_0_9 "PPB_OpenGLES2;0.9"
38 #define PPB_OPENGLES2_DEV_INTERFACE PPB_OPENGLES2_DEV_INTERFACE_0_1 38 #define PPB_OPENGLES2_INTERFACE PPB_OPENGLES2_INTERFACE_0_9
39 39
40 struct PPB_OpenGLES2_Dev { 40 struct PPB_OpenGLES2 {
41 void (*ActiveTexture)(PP_Resource context, GLenum texture); 41 void (*ActiveTexture)(PP_Resource context, GLenum texture);
42 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader); 42 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader);
43 void (*BindAttribLocation)( 43 void (*BindAttribLocation)(
44 PP_Resource context, GLuint program, GLuint index, const char* name); 44 PP_Resource context, GLuint program, GLuint index, const char* name);
45 void (*BindBuffer)(PP_Resource context, GLenum target, GLuint buffer); 45 void (*BindBuffer)(PP_Resource context, GLenum target, GLuint buffer);
46 void (*BindFramebuffer)( 46 void (*BindFramebuffer)(
47 PP_Resource context, GLenum target, GLuint framebuffer); 47 PP_Resource context, GLenum target, GLuint framebuffer);
48 void (*BindRenderbuffer)( 48 void (*BindRenderbuffer)(
49 PP_Resource context, GLenum target, GLuint renderbuffer); 49 PP_Resource context, GLenum target, GLuint renderbuffer);
50 void (*BindTexture)(PP_Resource context, GLenum target, GLuint texture); 50 void (*BindTexture)(PP_Resource context, GLenum target, GLuint texture);
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 GLfloat w); 297 GLfloat w);
298 void (*VertexAttrib4fv)( 298 void (*VertexAttrib4fv)(
299 PP_Resource context, GLuint indx, const GLfloat* values); 299 PP_Resource context, GLuint indx, const GLfloat* values);
300 void (*VertexAttribPointer)( 300 void (*VertexAttribPointer)(
301 PP_Resource context, GLuint indx, GLint size, GLenum type, 301 PP_Resource context, GLuint indx, GLint size, GLenum type,
302 GLboolean normalized, GLsizei stride, const void* ptr); 302 GLboolean normalized, GLsizei stride, const void* ptr);
303 void (*Viewport)( 303 void (*Viewport)(
304 PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height); 304 PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height);
305 }; 305 };
306 306
307 #endif // PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ 307 #endif // PPAPI_C_PPB_OPENGLES_H_
308 308
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698