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

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

Issue 5927002: Moved the logic of maintaining the current context to gles2 helper library. (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 // OpenGL ES interface.
8 // functions.
9 #ifndef PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ 8 #ifndef PPAPI_C_DEV_PPB_OPENGLES_DEV_H_
10 #define PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ 9 #define PPAPI_C_DEV_PPB_OPENGLES_DEV_H_
11 10
12 #include "ppapi/GLES2/khrplatform.h" 11 #ifndef __gl2_h_
13 12 #include <KHR/khrplatform.h>
14 #define PPB_OPENGLES_DEV_INTERFACE "PPB_OpenGLES(Dev);2.0"
15 13
16 typedef unsigned int GLenum; 14 typedef unsigned int GLenum;
17 typedef void GLvoid; 15 typedef void GLvoid;
18 typedef khronos_intptr_t GLintptr; 16 typedef khronos_intptr_t GLintptr;
19 typedef int GLsizei; 17 typedef int GLsizei;
20 typedef khronos_ssize_t GLsizeiptr; 18 typedef khronos_ssize_t GLsizeiptr;
21 typedef int GLint; 19 typedef int GLint;
22 typedef unsigned char GLboolean; 20 typedef unsigned char GLboolean;
23 typedef unsigned int GLuint; 21 typedef unsigned int GLuint;
24 typedef unsigned int GLbitfield; 22 typedef unsigned int GLbitfield;
25 typedef short GLshort; 23 typedef short GLshort;
26 typedef float GLfloat; 24 typedef float GLfloat;
27 typedef float GLclampf; 25 typedef float GLclampf;
28 typedef signed char GLbyte; 26 typedef signed char GLbyte;
29 typedef unsigned char GLubyte; 27 typedef unsigned char GLubyte;
30 typedef int GLfixed; 28 typedef int GLfixed;
31 typedef unsigned short GLushort; 29 typedef unsigned short GLushort;
32 typedef int GLclampx; 30 typedef int GLclampx;
31 #endif // __gl2_h_
33 32
34 struct PPB_OpenGLES_Dev { 33 #define PPB_OPENGLES2_DEV_INTERFACE "PPB_OpenGLES(Dev);2.0"
35 void (*ActiveTexture)(GLenum texture); 34
36 void (*AttachShader)(GLuint program, GLuint shader); 35 struct PPB_OpenGLES2_Dev {
37 void (*BindAttribLocation)(GLuint program, GLuint index, const char* name); 36 void (*ActiveTexture)(PP_Resource context, GLenum texture);
38 void (*BindBuffer)(GLenum target, GLuint buffer); 37 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader);
39 void (*BindFramebuffer)(GLenum target, GLuint framebuffer); 38 void (*BindAttribLocation)(
40 void (*BindRenderbuffer)(GLenum target, GLuint renderbuffer); 39 PP_Resource context, GLuint program, GLuint index, const char* name);
41 void (*BindTexture)(GLenum target, GLuint texture); 40 void (*BindBuffer)(PP_Resource context, GLenum target, GLuint buffer);
41 void (*BindFramebuffer)(
42 PP_Resource context, GLenum target, GLuint framebuffer);
43 void (*BindRenderbuffer)(
44 PP_Resource context, GLenum target, GLuint renderbuffer);
45 void (*BindTexture)(PP_Resource context, GLenum target, GLuint texture);
42 void (*BlendColor)( 46 void (*BlendColor)(
43 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); 47 PP_Resource context, GLclampf red, GLclampf green, GLclampf blue,
44 void (*BlendEquation)(GLenum mode); 48 GLclampf alpha);
45 void (*BlendEquationSeparate)(GLenum modeRGB, GLenum modeAlpha); 49 void (*BlendEquation)(PP_Resource context, GLenum mode);
46 void (*BlendFunc)(GLenum sfactor, GLenum dfactor); 50 void (*BlendEquationSeparate)(
51 PP_Resource context, GLenum modeRGB, GLenum modeAlpha);
52 void (*BlendFunc)(PP_Resource context, GLenum sfactor, GLenum dfactor);
47 void (*BlendFuncSeparate)( 53 void (*BlendFuncSeparate)(
48 GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); 54 PP_Resource context, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha,
55 GLenum dstAlpha);
49 void (*BufferData)( 56 void (*BufferData)(
50 GLenum target, GLsizeiptr size, const void* data, GLenum usage); 57 PP_Resource context, GLenum target, GLsizeiptr size, const void* data,
58 GLenum usage);
51 void (*BufferSubData)( 59 void (*BufferSubData)(
52 GLenum target, GLintptr offset, GLsizeiptr size, const void* data); 60 PP_Resource context, GLenum target, GLintptr offset, GLsizeiptr size,
53 GLenum (*CheckFramebufferStatus)(GLenum target); 61 const void* data);
54 void (*Clear)(GLbitfield mask); 62 GLenum (*CheckFramebufferStatus)(PP_Resource context, GLenum target);
63 void (*Clear)(PP_Resource context, GLbitfield mask);
55 void (*ClearColor)( 64 void (*ClearColor)(
56 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); 65 PP_Resource context, GLclampf red, GLclampf green, GLclampf blue,
57 void (*ClearDepthf)(GLclampf depth); 66 GLclampf alpha);
58 void (*ClearStencil)(GLint s); 67 void (*ClearDepthf)(PP_Resource context, GLclampf depth);
68 void (*ClearStencil)(PP_Resource context, GLint s);
59 void (*ColorMask)( 69 void (*ColorMask)(
60 GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); 70 PP_Resource context, GLboolean red, GLboolean green, GLboolean blue,
61 void (*CompileShader)(GLuint shader); 71 GLboolean alpha);
72 void (*CompileShader)(PP_Resource context, GLuint shader);
62 void (*CompressedTexImage2D)( 73 void (*CompressedTexImage2D)(
63 GLenum target, GLint level, GLenum internalformat, GLsizei width, 74 PP_Resource context, GLenum target, GLint level, GLenum internalformat,
64 GLsizei height, GLint border, GLsizei imageSize, const void* data); 75 GLsizei width, GLsizei height, GLint border, GLsizei imageSize,
76 const void* data);
65 void (*CompressedTexSubImage2D)( 77 void (*CompressedTexSubImage2D)(
66 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 78 PP_Resource context, GLenum target, GLint level, GLint xoffset,
67 GLsizei height, GLenum format, GLsizei imageSize, const void* data); 79 GLint yoffset, GLsizei width, GLsizei height, GLenum format,
80 GLsizei imageSize, const void* data);
68 void (*CopyTexImage2D)( 81 void (*CopyTexImage2D)(
69 GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, 82 PP_Resource context, GLenum target, GLint level, GLenum internalformat,
70 GLsizei width, GLsizei height, GLint border); 83 GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
71 void (*CopyTexSubImage2D)( 84 void (*CopyTexSubImage2D)(
72 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, 85 PP_Resource context, GLenum target, GLint level, GLint xoffset,
73 GLint y, GLsizei width, GLsizei height); 86 GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
74 GLuint (*CreateProgram)(); 87 GLuint (*CreateProgram)(PP_Resource context);
75 GLuint (*CreateShader)(GLenum type); 88 GLuint (*CreateShader)(PP_Resource context, GLenum type);
76 void (*CullFace)(GLenum mode); 89 void (*CullFace)(PP_Resource context, GLenum mode);
77 void (*DeleteBuffers)(GLsizei n, const GLuint* buffers); 90 void (*DeleteBuffers)(PP_Resource context, GLsizei n, const GLuint* buffers);
78 void (*DeleteFramebuffers)(GLsizei n, const GLuint* framebuffers); 91 void (*DeleteFramebuffers)(
79 void (*DeleteProgram)(GLuint program); 92 PP_Resource context, GLsizei n, const GLuint* framebuffers);
80 void (*DeleteRenderbuffers)(GLsizei n, const GLuint* renderbuffers); 93 void (*DeleteProgram)(PP_Resource context, GLuint program);
81 void (*DeleteShader)(GLuint shader); 94 void (*DeleteRenderbuffers)(
82 void (*DeleteTextures)(GLsizei n, const GLuint* textures); 95 PP_Resource context, GLsizei n, const GLuint* renderbuffers);
83 void (*DepthFunc)(GLenum func); 96 void (*DeleteShader)(PP_Resource context, GLuint shader);
84 void (*DepthMask)(GLboolean flag); 97 void (*DeleteTextures)(
85 void (*DepthRangef)(GLclampf zNear, GLclampf zFar); 98 PP_Resource context, GLsizei n, const GLuint* textures);
86 void (*DetachShader)(GLuint program, GLuint shader); 99 void (*DepthFunc)(PP_Resource context, GLenum func);
87 void (*Disable)(GLenum cap); 100 void (*DepthMask)(PP_Resource context, GLboolean flag);
88 void (*DisableVertexAttribArray)(GLuint index); 101 void (*DepthRangef)(PP_Resource context, GLclampf zNear, GLclampf zFar);
89 void (*DrawArrays)(GLenum mode, GLint first, GLsizei count); 102 void (*DetachShader)(PP_Resource context, GLuint program, GLuint shader);
103 void (*Disable)(PP_Resource context, GLenum cap);
104 void (*DisableVertexAttribArray)(PP_Resource context, GLuint index);
105 void (*DrawArrays)(
106 PP_Resource context, GLenum mode, GLint first, GLsizei count);
90 void (*DrawElements)( 107 void (*DrawElements)(
91 GLenum mode, GLsizei count, GLenum type, const void* indices); 108 PP_Resource context, GLenum mode, GLsizei count, GLenum type,
92 void (*Enable)(GLenum cap); 109 const void* indices);
93 void (*EnableVertexAttribArray)(GLuint index); 110 void (*Enable)(PP_Resource context, GLenum cap);
94 void (*Finish)(); 111 void (*EnableVertexAttribArray)(PP_Resource context, GLuint index);
95 void (*Flush)(); 112 void (*Finish)(PP_Resource context);
113 void (*Flush)(PP_Resource context);
96 void (*FramebufferRenderbuffer)( 114 void (*FramebufferRenderbuffer)(
97 GLenum target, GLenum attachment, GLenum renderbuffertarget, 115 PP_Resource context, GLenum target, GLenum attachment,
98 GLuint renderbuffer); 116 GLenum renderbuffertarget, GLuint renderbuffer);
99 void (*FramebufferTexture2D)( 117 void (*FramebufferTexture2D)(
100 GLenum target, GLenum attachment, GLenum textarget, GLuint texture, 118 PP_Resource context, GLenum target, GLenum attachment, GLenum textarget,
101 GLint level); 119 GLuint texture, GLint level);
102 void (*FrontFace)(GLenum mode); 120 void (*FrontFace)(PP_Resource context, GLenum mode);
103 void (*GenBuffers)(GLsizei n, GLuint* buffers); 121 void (*GenBuffers)(PP_Resource context, GLsizei n, GLuint* buffers);
104 void (*GenerateMipmap)(GLenum target); 122 void (*GenerateMipmap)(PP_Resource context, GLenum target);
105 void (*GenFramebuffers)(GLsizei n, GLuint* framebuffers); 123 void (*GenFramebuffers)(
106 void (*GenRenderbuffers)(GLsizei n, GLuint* renderbuffers); 124 PP_Resource context, GLsizei n, GLuint* framebuffers);
107 void (*GenTextures)(GLsizei n, GLuint* textures); 125 void (*GenRenderbuffers)(
126 PP_Resource context, GLsizei n, GLuint* renderbuffers);
127 void (*GenTextures)(PP_Resource context, GLsizei n, GLuint* textures);
108 void (*GetActiveAttrib)( 128 void (*GetActiveAttrib)(
109 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, 129 PP_Resource context, GLuint program, GLuint index, GLsizei bufsize,
110 GLint* size, GLenum* type, char* name); 130 GLsizei* length, GLint* size, GLenum* type, char* name);
111 void (*GetActiveUniform)( 131 void (*GetActiveUniform)(
112 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, 132 PP_Resource context, GLuint program, GLuint index, GLsizei bufsize,
113 GLint* size, GLenum* type, char* name); 133 GLsizei* length, GLint* size, GLenum* type, char* name);
114 void (*GetAttachedShaders)( 134 void (*GetAttachedShaders)(
115 GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders); 135 PP_Resource context, GLuint program, GLsizei maxcount, GLsizei* count,
116 GLint (*GetAttribLocation)(GLuint program, const char* name); 136 GLuint* shaders);
117 void (*GetBooleanv)(GLenum pname, GLboolean* params); 137 GLint (*GetAttribLocation)(
118 void (*GetBufferParameteriv)(GLenum target, GLenum pname, GLint* params); 138 PP_Resource context, GLuint program, const char* name);
119 GLenum (*GetError)(); 139 void (*GetBooleanv)(PP_Resource context, GLenum pname, GLboolean* params);
120 void (*GetFloatv)(GLenum pname, GLfloat* params); 140 void (*GetBufferParameteriv)(
141 PP_Resource context, GLenum target, GLenum pname, GLint* params);
142 GLenum (*GetError)(PP_Resource context);
143 void (*GetFloatv)(PP_Resource context, GLenum pname, GLfloat* params);
121 void (*GetFramebufferAttachmentParameteriv)( 144 void (*GetFramebufferAttachmentParameteriv)(
122 GLenum target, GLenum attachment, GLenum pname, GLint* params); 145 PP_Resource context, GLenum target, GLenum attachment, GLenum pname,
123 void (*GetIntegerv)(GLenum pname, GLint* params); 146 GLint* params);
124 void (*GetProgramiv)(GLuint program, GLenum pname, GLint* params); 147 void (*GetIntegerv)(PP_Resource context, GLenum pname, GLint* params);
148 void (*GetProgramiv)(
149 PP_Resource context, GLuint program, GLenum pname, GLint* params);
125 void (*GetProgramInfoLog)( 150 void (*GetProgramInfoLog)(
126 GLuint program, GLsizei bufsize, GLsizei* length, char* infolog); 151 PP_Resource context, GLuint program, GLsizei bufsize, GLsizei* length,
152 char* infolog);
127 void (*GetRenderbufferParameteriv)( 153 void (*GetRenderbufferParameteriv)(
128 GLenum target, GLenum pname, GLint* params); 154 PP_Resource context, GLenum target, GLenum pname, GLint* params);
129 void (*GetShaderiv)(GLuint shader, GLenum pname, GLint* params); 155 void (*GetShaderiv)(
156 PP_Resource context, GLuint shader, GLenum pname, GLint* params);
130 void (*GetShaderInfoLog)( 157 void (*GetShaderInfoLog)(
131 GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog); 158 PP_Resource context, GLuint shader, GLsizei bufsize, GLsizei* length,
159 char* infolog);
132 void (*GetShaderPrecisionFormat)( 160 void (*GetShaderPrecisionFormat)(
133 GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision); 161 PP_Resource context, GLenum shadertype, GLenum precisiontype,
162 GLint* range, GLint* precision);
134 void (*GetShaderSource)( 163 void (*GetShaderSource)(
135 GLuint shader, GLsizei bufsize, GLsizei* length, char* source); 164 PP_Resource context, GLuint shader, GLsizei bufsize, GLsizei* length,
136 const GLubyte* (*GetString)(GLenum name); 165 char* source);
137 void (*GetTexParameterfv)(GLenum target, GLenum pname, GLfloat* params); 166 const GLubyte* (*GetString)(PP_Resource context, GLenum name);
138 void (*GetTexParameteriv)(GLenum target, GLenum pname, GLint* params); 167 void (*GetTexParameterfv)(
139 void (*GetUniformfv)(GLuint program, GLint location, GLfloat* params); 168 PP_Resource context, GLenum target, GLenum pname, GLfloat* params);
140 void (*GetUniformiv)(GLuint program, GLint location, GLint* params); 169 void (*GetTexParameteriv)(
141 GLint (*GetUniformLocation)(GLuint program, const char* name); 170 PP_Resource context, GLenum target, GLenum pname, GLint* params);
142 void (*GetVertexAttribfv)(GLuint index, GLenum pname, GLfloat* params); 171 void (*GetUniformfv)(
143 void (*GetVertexAttribiv)(GLuint index, GLenum pname, GLint* params); 172 PP_Resource context, GLuint program, GLint location, GLfloat* params);
144 void (*GetVertexAttribPointerv)(GLuint index, GLenum pname, void** pointer); 173 void (*GetUniformiv)(
145 void (*Hint)(GLenum target, GLenum mode); 174 PP_Resource context, GLuint program, GLint location, GLint* params);
146 GLboolean (*IsBuffer)(GLuint buffer); 175 GLint (*GetUniformLocation)(
147 GLboolean (*IsEnabled)(GLenum cap); 176 PP_Resource context, GLuint program, const char* name);
148 GLboolean (*IsFramebuffer)(GLuint framebuffer); 177 void (*GetVertexAttribfv)(
149 GLboolean (*IsProgram)(GLuint program); 178 PP_Resource context, GLuint index, GLenum pname, GLfloat* params);
150 GLboolean (*IsRenderbuffer)(GLuint renderbuffer); 179 void (*GetVertexAttribiv)(
151 GLboolean (*IsShader)(GLuint shader); 180 PP_Resource context, GLuint index, GLenum pname, GLint* params);
152 GLboolean (*IsTexture)(GLuint texture); 181 void (*GetVertexAttribPointerv)(
153 void (*LineWidth)(GLfloat width); 182 PP_Resource context, GLuint index, GLenum pname, void** pointer);
154 void (*LinkProgram)(GLuint program); 183 void (*Hint)(PP_Resource context, GLenum target, GLenum mode);
155 void (*PixelStorei)(GLenum pname, GLint param); 184 GLboolean (*IsBuffer)(PP_Resource context, GLuint buffer);
156 void (*PolygonOffset)(GLfloat factor, GLfloat units); 185 GLboolean (*IsEnabled)(PP_Resource context, GLenum cap);
186 GLboolean (*IsFramebuffer)(PP_Resource context, GLuint framebuffer);
187 GLboolean (*IsProgram)(PP_Resource context, GLuint program);
188 GLboolean (*IsRenderbuffer)(PP_Resource context, GLuint renderbuffer);
189 GLboolean (*IsShader)(PP_Resource context, GLuint shader);
190 GLboolean (*IsTexture)(PP_Resource context, GLuint texture);
191 void (*LineWidth)(PP_Resource context, GLfloat width);
192 void (*LinkProgram)(PP_Resource context, GLuint program);
193 void (*PixelStorei)(PP_Resource context, GLenum pname, GLint param);
194 void (*PolygonOffset)(PP_Resource context, GLfloat factor, GLfloat units);
157 void (*ReadPixels)( 195 void (*ReadPixels)(
158 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, 196 PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height,
159 GLenum type, void* pixels); 197 GLenum format, GLenum type, void* pixels);
160 void (*ReleaseShaderCompiler)(); 198 void (*ReleaseShaderCompiler)(PP_Resource context);
161 void (*RenderbufferStorage)( 199 void (*RenderbufferStorage)(
162 GLenum target, GLenum internalformat, GLsizei width, GLsizei height); 200 PP_Resource context, GLenum target, GLenum internalformat, GLsizei width,
163 void (*SampleCoverage)(GLclampf value, GLboolean invert); 201 GLsizei height);
164 void (*Scissor)(GLint x, GLint y, GLsizei width, GLsizei height); 202 void (*SampleCoverage)(
203 PP_Resource context, GLclampf value, GLboolean invert);
204 void (*Scissor)(
205 PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height);
165 void (*ShaderBinary)( 206 void (*ShaderBinary)(
166 GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, 207 PP_Resource context, GLsizei n, const GLuint* shaders,
167 GLsizei length); 208 GLenum binaryformat, const void* binary, GLsizei length);
168 void (*ShaderSource)( 209 void (*ShaderSource)(
169 GLuint shader, GLsizei count, const char** str, const GLint* length); 210 PP_Resource context, GLuint shader, GLsizei count, const char** str,
170 void (*StencilFunc)(GLenum func, GLint ref, GLuint mask); 211 const GLint* length);
212 void (*StencilFunc)(
213 PP_Resource context, GLenum func, GLint ref, GLuint mask);
171 void (*StencilFuncSeparate)( 214 void (*StencilFuncSeparate)(
172 GLenum face, GLenum func, GLint ref, GLuint mask); 215 PP_Resource context, GLenum face, GLenum func, GLint ref, GLuint mask);
173 void (*StencilMask)(GLuint mask); 216 void (*StencilMask)(PP_Resource context, GLuint mask);
174 void (*StencilMaskSeparate)(GLenum face, GLuint mask); 217 void (*StencilMaskSeparate)(PP_Resource context, GLenum face, GLuint mask);
175 void (*StencilOp)(GLenum fail, GLenum zfail, GLenum zpass); 218 void (*StencilOp)(
219 PP_Resource context, GLenum fail, GLenum zfail, GLenum zpass);
176 void (*StencilOpSeparate)( 220 void (*StencilOpSeparate)(
177 GLenum face, GLenum fail, GLenum zfail, GLenum zpass); 221 PP_Resource context, GLenum face, GLenum fail, GLenum zfail,
222 GLenum zpass);
178 void (*TexImage2D)( 223 void (*TexImage2D)(
179 GLenum target, GLint level, GLint internalformat, GLsizei width, 224 PP_Resource context, GLenum target, GLint level, GLint internalformat,
180 GLsizei height, GLint border, GLenum format, GLenum type, 225 GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type,
181 const void* pixels); 226 const void* pixels);
182 void (*TexParameterf)(GLenum target, GLenum pname, GLfloat param); 227 void (*TexParameterf)(
183 void (*TexParameterfv)(GLenum target, GLenum pname, const GLfloat* params); 228 PP_Resource context, GLenum target, GLenum pname, GLfloat param);
184 void (*TexParameteri)(GLenum target, GLenum pname, GLint param); 229 void (*TexParameterfv)(
185 void (*TexParameteriv)(GLenum target, GLenum pname, const GLint* params); 230 PP_Resource context, GLenum target, GLenum pname, const GLfloat* params);
231 void (*TexParameteri)(
232 PP_Resource context, GLenum target, GLenum pname, GLint param);
233 void (*TexParameteriv)(
234 PP_Resource context, GLenum target, GLenum pname, const GLint* params);
186 void (*TexSubImage2D)( 235 void (*TexSubImage2D)(
187 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 236 PP_Resource context, GLenum target, GLint level, GLint xoffset,
188 GLsizei height, GLenum format, GLenum type, const void* pixels); 237 GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type,
189 void (*Uniform1f)(GLint location, GLfloat x); 238 const void* pixels);
190 void (*Uniform1fv)(GLint location, GLsizei count, const GLfloat* v); 239 void (*Uniform1f)(PP_Resource context, GLint location, GLfloat x);
191 void (*Uniform1i)(GLint location, GLint x); 240 void (*Uniform1fv)(
192 void (*Uniform1iv)(GLint location, GLsizei count, const GLint* v); 241 PP_Resource context, GLint location, GLsizei count, const GLfloat* v);
193 void (*Uniform2f)(GLint location, GLfloat x, GLfloat y); 242 void (*Uniform1i)(PP_Resource context, GLint location, GLint x);
194 void (*Uniform2fv)(GLint location, GLsizei count, const GLfloat* v); 243 void (*Uniform1iv)(
195 void (*Uniform2i)(GLint location, GLint x, GLint y); 244 PP_Resource context, GLint location, GLsizei count, const GLint* v);
196 void (*Uniform2iv)(GLint location, GLsizei count, const GLint* v); 245 void (*Uniform2f)(PP_Resource context, GLint location, GLfloat x, GLfloat y);
197 void (*Uniform3f)(GLint location, GLfloat x, GLfloat y, GLfloat z); 246 void (*Uniform2fv)(
198 void (*Uniform3fv)(GLint location, GLsizei count, const GLfloat* v); 247 PP_Resource context, GLint location, GLsizei count, const GLfloat* v);
199 void (*Uniform3i)(GLint location, GLint x, GLint y, GLint z); 248 void (*Uniform2i)(PP_Resource context, GLint location, GLint x, GLint y);
200 void (*Uniform3iv)(GLint location, GLsizei count, const GLint* v); 249 void (*Uniform2iv)(
250 PP_Resource context, GLint location, GLsizei count, const GLint* v);
251 void (*Uniform3f)(
252 PP_Resource context, GLint location, GLfloat x, GLfloat y, GLfloat z);
253 void (*Uniform3fv)(
254 PP_Resource context, GLint location, GLsizei count, const GLfloat* v);
255 void (*Uniform3i)(
256 PP_Resource context, GLint location, GLint x, GLint y, GLint z);
257 void (*Uniform3iv)(
258 PP_Resource context, GLint location, GLsizei count, const GLint* v);
201 void (*Uniform4f)( 259 void (*Uniform4f)(
202 GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w); 260 PP_Resource context, GLint location, GLfloat x, GLfloat y, GLfloat z,
203 void (*Uniform4fv)(GLint location, GLsizei count, const GLfloat* v); 261 GLfloat w);
204 void (*Uniform4i)(GLint location, GLint x, GLint y, GLint z, GLint w); 262 void (*Uniform4fv)(
205 void (*Uniform4iv)(GLint location, GLsizei count, const GLint* v); 263 PP_Resource context, GLint location, GLsizei count, const GLfloat* v);
264 void (*Uniform4i)(
265 PP_Resource context, GLint location, GLint x, GLint y, GLint z, GLint w);
266 void (*Uniform4iv)(
267 PP_Resource context, GLint location, GLsizei count, const GLint* v);
206 void (*UniformMatrix2fv)( 268 void (*UniformMatrix2fv)(
207 GLint location, GLsizei count, GLboolean transpose, 269 PP_Resource context, GLint location, GLsizei count, GLboolean transpose,
208 const GLfloat* value); 270 const GLfloat* value);
209 void (*UniformMatrix3fv)( 271 void (*UniformMatrix3fv)(
210 GLint location, GLsizei count, GLboolean transpose, 272 PP_Resource context, GLint location, GLsizei count, GLboolean transpose,
211 const GLfloat* value); 273 const GLfloat* value);
212 void (*UniformMatrix4fv)( 274 void (*UniformMatrix4fv)(
213 GLint location, GLsizei count, GLboolean transpose, 275 PP_Resource context, GLint location, GLsizei count, GLboolean transpose,
214 const GLfloat* value); 276 const GLfloat* value);
215 void (*UseProgram)(GLuint program); 277 void (*UseProgram)(PP_Resource context, GLuint program);
216 void (*ValidateProgram)(GLuint program); 278 void (*ValidateProgram)(PP_Resource context, GLuint program);
217 void (*VertexAttrib1f)(GLuint indx, GLfloat x); 279 void (*VertexAttrib1f)(PP_Resource context, GLuint indx, GLfloat x);
218 void (*VertexAttrib1fv)(GLuint indx, const GLfloat* values); 280 void (*VertexAttrib1fv)(
219 void (*VertexAttrib2f)(GLuint indx, GLfloat x, GLfloat y); 281 PP_Resource context, GLuint indx, const GLfloat* values);
220 void (*VertexAttrib2fv)(GLuint indx, const GLfloat* values); 282 void (*VertexAttrib2f)(
221 void (*VertexAttrib3f)(GLuint indx, GLfloat x, GLfloat y, GLfloat z); 283 PP_Resource context, GLuint indx, GLfloat x, GLfloat y);
222 void (*VertexAttrib3fv)(GLuint indx, const GLfloat* values); 284 void (*VertexAttrib2fv)(
285 PP_Resource context, GLuint indx, const GLfloat* values);
286 void (*VertexAttrib3f)(
287 PP_Resource context, GLuint indx, GLfloat x, GLfloat y, GLfloat z);
288 void (*VertexAttrib3fv)(
289 PP_Resource context, GLuint indx, const GLfloat* values);
223 void (*VertexAttrib4f)( 290 void (*VertexAttrib4f)(
224 GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w); 291 PP_Resource context, GLuint indx, GLfloat x, GLfloat y, GLfloat z,
225 void (*VertexAttrib4fv)(GLuint indx, const GLfloat* values); 292 GLfloat w);
293 void (*VertexAttrib4fv)(
294 PP_Resource context, GLuint indx, const GLfloat* values);
226 void (*VertexAttribPointer)( 295 void (*VertexAttribPointer)(
227 GLuint indx, GLint size, GLenum type, GLboolean normalized, 296 PP_Resource context, GLuint indx, GLint size, GLenum type,
228 GLsizei stride, const void* ptr); 297 GLboolean normalized, GLsizei stride, const void* ptr);
229 void (*Viewport)(GLint x, GLint y, GLsizei width, GLsizei height); 298 void (*Viewport)(
230 void (*SwapBuffers)(); 299 PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height);
231 }; 300 };
232 301
233 #endif // PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ 302 #endif // PPAPI_C_DEV_PPB_OPENGLES_DEV_H_
234 303
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698