API Mapping

GL ES 2.0 GLWeb20Context
Core GL ES 2.0
ActiveTexture (GLenum texture)
AttachShader (GLuint program, GLuint shader)
BindAttribLocation (GLuint program, GLuint index, const char *name)
BindBuffer (GLenum target, GLuint buffer)
BindTexture (GLenum target, GLuint texture)
BlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
BlendEquation (GLenum mode)
BlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha)
BlendFunc (GLenum sfactor, GLenum dfactor)
BlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
BufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage) bufferData (uint target, Array data, uint elementType, uint usage)
BufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data) bufferSubData (uint target, uint offset, Array data, uint elementType)
Clear (GLbitfield mask)
ClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
ClearDepthf (GLclampf depth) clearDepth (float depth);
ClearStencil (GLint s)
ColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
CompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data) see texImage2DHTML
CompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data) see texSubImage2DHTML
CopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) TODO
CopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) TODO
uint glCreateProgram (void)
uint glCreateShader (GLenum type)
CullFace (GLenum mode)
DeleteBuffers (GLsizei n, const GLuint *buffers) deleteBuffers (Array buffers)
DeleteTextures (GLsizei n, const GLuint *textures) deleteTextures (Array textures)
DeleteProgram (GLuint program)
DeleteShader (GLuint shader)
DetachShader (GLuint program, GLuint shader)
DepthFunc (GLenum func)
DepthMask (GLboolean flag)
DepthRangef (GLclampf zNear, GLclampf zFar)
Disable (GLenum cap)
DisableVertexAttribArray (GLuint index)
DrawArrays (GLenum mode, GLint first, GLsizei count)
DrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices) TODO
Enable (GLenum cap)
EnableVertexAttribArray (GLuint index)
Finish (void) NONE
Flush (void) NONE
FrontFace (GLenum mode)
GetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)Object getActiveAttrib (uint program, uint index)
obj = { type: ..., size: ..., name: ... }
GetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name) Object getActiveUniform (uint program, uint index)
obj = { type: ..., size: ..., name: ... }
GetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders) Array getAttachedShaders (uint program)
int glGetAttribLocation (GLuint program, const char *name) int getAttribLocation (uint program, string name)
GetBooleanv (GLenum pname, GLboolean *params) see getParameter
GetBufferParameteriv (GLenum target, GLenum pname, GLint *params) see getBufferParameter
GenBuffers (GLsizei n, GLuint *buffers) Array genBuffers (uint n)
GenTextures (GLsizei n, GLuint *textures) Array genTextures (uint n)
enum glGetError (void)
GetFloatv (GLenum pname, GLfloat *params) see getParameter
GetIntegerv (GLenum pname, GLint *params) see getParameter
GetPointerv (GLenum pname, void **params) see getParameter
GetProgramiv (GLuint program, GLenum pname, GLint *params) see getProgramParameter
GetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei *length, char *infolog) string getProgramInfoLog (uint program)
const GLubyte * glGetString (GLenum name) see getParameter
GetTexParameteriv (GLenum target, GLenum pname, GLint *params) see getTexParameter
GetTexParameterfv (GLenum target, GLenum pname, GLfloat *params) see getTexParameter
GetUniformfv (GLuint program, GLint location, GLfloat *params) TODO
GetUniformiv (GLuint program, GLint location, GLint *params) TODO
int glGetUniformLocation (GLuint program, const char *name) int getUniformLocation (uint program, string name)
GetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params) see getVertexAttrib
GetVertexAttribiv (GLuint index, GLenum pname, GLint *params) see getVertexAttrib
GetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer) see getVertexAttrib
Hint (GLenum target, GLenum mode)
boolean glIsBuffer (GLuint buffer)
boolean glIsEnabled (GLenum cap)
boolean glIsProgram (GLuint program)
boolean glIsShader (GLuint shader)
boolean glIsTexture (GLuint texture)
LineWidth (GLfloat width)
LinkProgram (GLuint program)
PixelStorei (GLenum pname, GLint param) NONE
PointSize (GLfloat size)
PolygonOffset (GLfloat factor, GLfloat units)
ReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels) NONE
SampleCoverage (GLclampf value, GLboolean invert)
Scissor (GLint x, GLint y, GLsizei width, GLsizei height)
StencilFunc (GLenum func, GLint ref, GLuint mask)
StencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask)
StencilMask (GLuint mask)
StencilMaskSeparate (GLenum face, GLuint mask)
StencilOp (GLenum fail, GLenum zfail, GLenum zpass)
StencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
TexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels) see texImage2DHTML
TexParameteri (GLenum target, GLenum pname, GLint param) see texParameter
TexParameterf (GLenum target, GLenum pname, GLfloat param) see texParameter
TexParameteriv (GLenum target, GLenum pname, const GLint *params) see texParameter
TexParameterfv (GLenum target, GLenum pname, const GLfloat *params) see texParameter
TexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels) see texSubImage2DHTML
Uniform1i (GLint location, GLint x)
Uniform2i (GLint location, GLint x, GLint y)
Uniform3i (GLint location, GLint x, GLint y, GLint z)
Uniform4i (GLint location, GLint x, GLint y, GLint z, GLint w)
Uniform1iv (GLint location, GLsizei count, const GLint *v)
Uniform2iv (GLint location, GLsizei count, const GLint *v)
Uniform3iv (GLint location, GLsizei count, const GLint *v)
Uniform4iv (GLint location, GLsizei count, const GLint *v)
see uniformi
Uniform1f (GLint location, GLfloat x)
Uniform2f (GLint location, GLfloat x, GLfloat y)
Uniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z)
Uniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Uniform1fv (GLint location, GLsizei count, const GLfloat *v)
Uniform2fv (GLint location, GLsizei count, const GLfloat *v)
Uniform3fv (GLint location, GLsizei count, const GLfloat *v)
Uniform4fv (GLint location, GLsizei count, const GLfloat *v)
see uniformf
UniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
UniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
UniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
see uniformMatrix
UseProgram (GLuint program)
ValidateProgram (GLuint program)
VertexAttrib1f (GLuint indx, GLfloat x)
VertexAttrib2f (GLuint indx, GLfloat x, GLfloat y)
VertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z)
VertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
VertexAttrib1fv (GLuint indx, const GLfloat *values)
VertexAttrib2fv (GLuint indx, const GLfloat *values)
VertexAttrib3fv (GLuint indx, const GLfloat *values)
VertexAttrib4fv (GLuint indx, const GLfloat *values)
TODO
VertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr) vertexAttribPointer (uint index, Object bufferObject)
vertexAttribPointer (uint index, uint size, uint elementType, Array data)
Viewport (GLint x, GLint y, GLsizei width, GLsizei height)
OES_framebuffer_object
TODO
OES_mapbuffer
NOT SUPPORTED
OES_texture_3D
TODO
OES_shader_source
TODO
CompileShader (GLuint shader)
GetShaderiv (GLuint shader, GLenum pname, GLint *params) see getShaderParameter
GetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog) string getShaderInfoLog (uint shader)
GetShaderSource (GLuint shader, GLsizei bufsize, GLsizei *length, char *source) TODO
ReleaseShaderCompilerOES(void) NONE
ShaderSource(GLuint shader, GLsizei count, const char **string, const GLint *length) shaderSource(uint shader, string source)
OES_shader_binary NOT SUPPORTED

API Additions

texImage2DHTML (uint target, DOMImageElement image)
texImage2DHTML (uint target, int level, DOMImageElement image)
texSubImage2DHTML (uint target, DOMImageElement image, int xoff, int yoff, int width, int height)
texSubImage2DHTML (uint target, int level, DOMImageElement image, int xoff, int yoff, int width, int height)
getParameter (uint pname)
getBufferParameter (uint target, uint pname)
getProgramParameter
getShaderParameter
getTexParameter
getVertexAttrib
texParameter
uniformf
uniformi
uniformMatrix