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

Side by Side Diff: ppapi/c/dev/ppb_opengles_dev.h

Issue 5567004: Proposed changes to Pepper 3D API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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) 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/GLES2/khrplatform.h" 12 #include "ppapi/GLES2/khrplatform.h"
13 13
14 #define PPB_OPENGLES_DEV_INTERFACE "PPB_OpenGLES(Dev);2.0" 14 #define PPB_OPENGLES2_DEV_INTERFACE "PPB_OpenGLES(Dev);2.0"
15 15
16 typedef unsigned int GLenum; 16 typedef unsigned int GLenum;
17 typedef void GLvoid; 17 typedef void GLvoid;
18 typedef khronos_intptr_t GLintptr; 18 typedef khronos_intptr_t GLintptr;
19 typedef int GLsizei; 19 typedef int GLsizei;
20 typedef khronos_ssize_t GLsizeiptr; 20 typedef khronos_ssize_t GLsizeiptr;
21 typedef int GLint; 21 typedef int GLint;
22 typedef unsigned char GLboolean; 22 typedef unsigned char GLboolean;
23 typedef unsigned int GLuint; 23 typedef unsigned int GLuint;
24 typedef unsigned int GLbitfield; 24 typedef unsigned int GLbitfield;
25 typedef short GLshort; 25 typedef short GLshort;
26 typedef float GLfloat; 26 typedef float GLfloat;
27 typedef float GLclampf; 27 typedef float GLclampf;
28 typedef signed char GLbyte; 28 typedef signed char GLbyte;
29 typedef unsigned char GLubyte; 29 typedef unsigned char GLubyte;
30 typedef int GLfixed; 30 typedef int GLfixed;
31 typedef unsigned short GLushort; 31 typedef unsigned short GLushort;
32 typedef int GLclampx; 32 typedef int GLclampx;
33 33
34 struct PPB_OpenGLES_Dev { 34 struct PPB_OpenGLES2_Dev {
35 // TODO(alokp): Add context argument to all gl functions.
35 void (*ActiveTexture)(GLenum texture); 36 void (*ActiveTexture)(GLenum texture);
36 void (*AttachShader)(GLuint program, GLuint shader); 37 void (*AttachShader)(GLuint program, GLuint shader);
37 void (*BindAttribLocation)(GLuint program, GLuint index, const char* name); 38 void (*BindAttribLocation)(GLuint program, GLuint index, const char* name);
38 void (*BindBuffer)(GLenum target, GLuint buffer); 39 void (*BindBuffer)(GLenum target, GLuint buffer);
39 void (*BindFramebuffer)(GLenum target, GLuint framebuffer); 40 void (*BindFramebuffer)(GLenum target, GLuint framebuffer);
40 void (*BindRenderbuffer)(GLenum target, GLuint renderbuffer); 41 void (*BindRenderbuffer)(GLenum target, GLuint renderbuffer);
41 void (*BindTexture)(GLenum target, GLuint texture); 42 void (*BindTexture)(GLenum target, GLuint texture);
42 void (*BlendColor)( 43 void (*BlendColor)(
43 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); 44 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
44 void (*BlendEquation)(GLenum mode); 45 void (*BlendEquation)(GLenum mode);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 void (*VertexAttrib2fv)(GLuint indx, const GLfloat* values); 221 void (*VertexAttrib2fv)(GLuint indx, const GLfloat* values);
221 void (*VertexAttrib3f)(GLuint indx, GLfloat x, GLfloat y, GLfloat z); 222 void (*VertexAttrib3f)(GLuint indx, GLfloat x, GLfloat y, GLfloat z);
222 void (*VertexAttrib3fv)(GLuint indx, const GLfloat* values); 223 void (*VertexAttrib3fv)(GLuint indx, const GLfloat* values);
223 void (*VertexAttrib4f)( 224 void (*VertexAttrib4f)(
224 GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w); 225 GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
225 void (*VertexAttrib4fv)(GLuint indx, const GLfloat* values); 226 void (*VertexAttrib4fv)(GLuint indx, const GLfloat* values);
226 void (*VertexAttribPointer)( 227 void (*VertexAttribPointer)(
227 GLuint indx, GLint size, GLenum type, GLboolean normalized, 228 GLuint indx, GLint size, GLenum type, GLboolean normalized,
228 GLsizei stride, const void* ptr); 229 GLsizei stride, const void* ptr);
229 void (*Viewport)(GLint x, GLint y, GLsizei width, GLsizei height); 230 void (*Viewport)(GLint x, GLint y, GLsizei width, GLsizei height);
230 void (*SwapBuffers)();
231 void (*CopyTextureToParentTexture)(
232 GLuint client_child_id, GLuint client_parent_id);
233 }; 231 };
234 232
235 #endif // PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ 233 #endif // PPAPI_C_DEV_PPB_OPENGLES_DEV_H_
236 234
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698