gl

Description

This is an OpenGL ES 2.0-compatible API for the DMPGL 2.0 graphics library.

Only a C API has been prepared for gl functions. For compatibility with OpenGL ES 2.0, the standard CTR-SDK prefix of nn has not been attached to the function names.

Functions

Geometry and Vertex
glDisableVertexAttribArray Disables a vertex attribute array.
glEnableVertexAttribArray Enables a vertex attribute array.
glVertexAttrib1f Sets vertex attributes using GLfloat values.
glVertexAttrib1fv Sets vertex attributes using a GLfloat array.
glVertexAttrib2f Sets vertex attributes using GLfloat values.
glVertexAttrib2fv Sets vertex attributes using a GLfloat array.
glVertexAttrib3f Sets vertex attributes using GLfloat values.
glVertexAttrib3fv Sets vertex attributes using a GLfloat array.
glVertexAttrib4f Sets vertex attributes using GLfloat values.
glVertexAttrib4fv Sets vertex attributes using a GLfloat array.
glVertexAttribPointer Configures a vertex attribute array.
glGetVertexAttribfv Gets vertex attribute parameters as GLfloat values.
glGetVertexAttribiv Gets vertex attribute parameters as GLint values.
glGetVertexAttribPointerv Gets a pointer to a vertex attribute array.
glDrawArrays Uses a vertex array to render primitives.
glDrawElements Uses vertex indices to render primitives.
glPolygonOffset Configures the offset value to add to fragment depth values.
Viewport and Culling
glFrontFace Specifies the front-facing direction for polygons.
glCullFace Specifies the polygon face to cull when culling is enabled.
glViewport Configures the viewport.
Buffer Objects
glBindBuffer Binds a vertex buffer object to the current bind target.
glGenBuffers Generates vertex buffer objects.
glDeleteBuffers Deletes vertex buffer objects and vertex state collection objects.
glBufferData Loads vertex data into the current vertex buffer object.
glBufferSubData Updates a partial vertex data region in the current vertex buffer object.
glGetBufferParameteriv Gets vertex buffer object parameters.
Textures
glActiveTexture Activates a texture unit.
glBindTexture Binds a texture object to the current bind target.
glGenTextures Generates texture objects.
glDeleteTextures Deletes texture objects, lookup table objects, and texture collection objects.
glTexImage1D Configures lookup table data.
glTexSubImage1D Partially configures lookup table data.
glTexImage2D Configures 2D texture data.
glCompressedTexImage2D Loads texture data in a compressed format.
glCopyTexImage2D Copies the content of the current color buffer into texture data.
glCopyTexSubImage2D Partially copies the content of the current color buffer into texture data.
glTexParameterf Sets a texture parameter as a GLfloat value.
glTexParameterfv Sets a texture parameter array as GLfloat values.
glTexParameteri Sets a texture parameter as a GLint value.
glTexParameteriv Sets a texture parameter array as GLint values.
glGetTexParameterfv Gets GLfloat values for the parameters of texture objects that are currently bound.
glGetTexParameteriv Gets GLint values for the parameters of texture objects that are currently bound.
glGetTexLevelParameterfv Gets the texture level parameter.
glGetTexLevelParameteriv Gets the texture level parameter.
Shaders
glCreateShader Generates a shader object.
glAttachShader Attaches a shader object to a program object.
glDeleteShader Deletes a shader object.
glShaderBinary Loads shader binaries.
glDetachShader Detaches a shader object from a program object.
glCreateProgram Generates a program object.
glDeleteProgram Deletes a program object.
glLinkProgram Links a program object.
glValidateProgram Checks a program object for validity.
glUseProgram Embeds a program object as part of the current rendering pipeline.
glGetProgramiv Gets program object parameters.
glGetShaderiv Gets shader object parameters.
glGetAttachedShaders Gets the names of shader objects that have been attached to a program.
Shader Variables
glBindAttribLocation Binds a vertex attribute name and number.
glGetAttribLocation Gets the number of a program's vertex attribute.
glGetActiveAttrib Gets information for active vertex attributes.
glUniform1f Sets the value of a uniform variable or a single element of a uniform variable array with a data type of GL_FLOAT in the vertex shader, geometry shader, and reserved fragment shader.
glUniform1fv Sets the value of a uniform variable or a uniform variable array with a data type of GL_FLOAT in the vertex shader, geometry shader, and reserved fragment shader.
glUniform1i Sets the value of a uniform variable with a data type of GL_INT, GL_SAMPLER_1D, or GL_BOOL in the vertex shader, geometry shader, and reserved fragment shader.
glUniform1iv Sets the value of a uniform variable or a uniform variable array with a data type of GL_INT, GL_SAMPLER_1D, or GL_BOOL in the vertex shader, geometry shader, and reserved fragment shader.
glUniform2f Sets the value of a uniform variable or a single element of a uniform variable array with a data type of GL_FLOAT_VEC2 in the vertex shader, geometry shader, and reserved fragment shader.
glUniform2fv Sets the value or values of a uniform variable or uniform variable array with a data type of GL_FLOAT_VEC2 in the vertex shader, geometry shader, or reserved fragment shader.
glUniform2i Sets the value of a uniform variable with a data type of GL_INT_VEC2 or GL_BOOL_VEC2 in the vertex shader, geometry shader, and reserved fragment shader.
glUniform2iv Sets the value of a uniform variable or a uniform variable array with a data type of GL_INT_VEC2 or GL_BOOL_VEC2 in the vertex shader, geometry shader, and reserved fragment shader.
glUniform3f Sets the value of a uniform variable or a single element of a uniform variable array with a data type of GL_FLOAT_VEC3 in the vertex shader, geometry shader, and reserved fragment shader.
glUniform3fv Sets the value of a uniform variable or a uniform variable array with a data type of GL_FLOAT_VEC3 in the vertex shader, geometry shader, and reserved fragment shader.
glUniform3i Sets the value of a uniform variable with a data type of GL_INT_VEC3 or GL_BOOL_VEC3 in the vertex shader, geometry shader, and reserved fragment shader.
glUniform3iv Sets the value of a uniform variable or a uniform variable array with a data type of GL_INT_VEC3 or GL_BOOL_VEC3 in the vertex shader, geometry shader, and reserved fragment shader.
glUniform4f Sets the value of a uniform variable or a single element of a uniform variable array with a data type of GL_FLOAT_VEC4 in the vertex shader, geometry shader, and reserved fragment shader.
glUniform4fv Sets the value of a uniform variable or a uniform variable array with a data type of GL_FLOAT_VEC4 in the vertex shader, geometry shader, and reserved fragment shader.
glUniform4i Sets the value of a uniform variable with a data type of GL_INT_VEC4 or GL_BOOL_VEC4 in the vertex shader, geometry shader, and reserved fragment shader.
glUniform4iv Sets the value of a uniform variable or a uniform variable array with a data type of GL_INT_VEC4 or GL_BOOL_VEC4 in the vertex shader, geometry shader, and reserved fragment shader.
glUniformMatrix2fv Sets the value of a GL_FLOAT_VEC2 uniform variable array in the vertex shader and geometry shader.
glUniformMatrix3fv Sets the value of a GL_FLOAT_VEC3 uniform variable array in the vertex shader and geometry shader.
glUniformMatrix4fv Sets the value of a GL_FLOAT_VEC4 uniform variable array in the vertex shader and geometry shader.
glGetUniformfv Gets uniform values as floating-point numbers.
glGetUniformiv Gets values for uniforms that use a data type other than floating-point numbers.
glGetUniformLocation Gets the location of a uniform.
glGetActiveUniform Gets active uniform information.
Fragment Operations
glScissor Configures the scissor rectangle.
glBlendColor Sets the constant color for the blend factors.
glBlendEquation Configures the blend functions. The same functions are set for the RGB and alpha components.
glBlendEquationSeparate Configures the blend functions. Functions are set separately for the RGB and alpha components.
glBlendFunc Configures the source and destination blend factors for the blend feature. The same values are set for the RGB and alpha components.
glBlendFuncSeparate Configures the source and destination blend factors for the blend feature. Values are set separately for the RGB and alpha components.
glDepthFunc Specifies the comparison function to use for depth tests.
glDepthMask Enables or disables writes to the depth buffer.
glDepthRangef Sets the range of depth values for the near and far clipping planes during the conversion from device coordinates to window coordinates following w division.
glStencilFunc Configures the comparison function, reference value, and mask value used by the stencil test.
glStencilMask Sets mask values for enabling or disabling writes to the stencil buffer.
glStencilOp Configures operations on stencil buffer values.
glColorMask Enables or disables writes to the color buffer.
glReadPixels Reads pixel data from a rectangular region in the current render buffer.
glLogicOp Sets the logical operation for pixels.
Framebuffer
glBindFramebuffer Binds a framebuffer object to the current bind target.
glBindRenderbuffer Binds a renderbuffer object to the current bind target.
glGenFramebuffers Generates framebuffer objects.
glGenRenderbuffers Generates renderbuffer objects.
glDeleteFramebuffers Deletes framebuffer objects.
glDeleteRenderbuffers Deletes renderbuffer objects.
glFramebufferTexture2D Attaches a texture to the current framebuffer.
glFramebufferRenderbuffer Attaches a renderbuffer to the current framebuffer.
glGetFramebufferAttachmentParameteriv Gets attachment parameters for a framebuffer object.
glGetRenderbufferParameteriv Gets parameters for the renderbuffer object that is currently bound.
glRenderbufferStorage Allocates the data region for the current renderbuffer object.
glClear Clears each of the buffers attached to the current framebuffer.
glClearColor Sets the color that glClear uses to clear the color buffer.
glClearDepthf Sets the depth value that glClear uses to clear the depth buffer.
glClearStencil Sets the stencil value that glClear uses to clear the stencil buffer.
glCheckFramebufferStatus Checks settings for the current framebuffer object.
Queries
glGetBooleanv Gets GL parameter settings as GLboolean values.
glGetError Gets the error number.
glGetFloatv Gets GL parameter settings as GLfloat values.
glGetIntegerv Gets GL parameter settings as GLint values.
glGetString Gets parameters related to the GL implementation.
glIsEnabled Determines whether a specific GL feature is enabled.
glIsBuffer Checks a vertex buffer object for validity.
glIsTexture Checks a texture object for validity.
glIsProgram Checks a program object for validity.
glIsShader Checks a shader object for validity.
glIsFramebuffer Checks a frame buffer object for validity.
glIsRenderbuffer Checks a renderbuffer object for validity.
Miscellaneous Controls
glDisable Disables specific GL features.
glEnable Enables specific GL features.
glFinish Flushes GL processing.
glFlush Flushes GL processing.
Extensions
glSaveProgramsDMP Saves the program object state.
glRestoreProgramsDMP Restores the program object state.
glSaveVertexStateCollectionsDMP Saves the state of vertex state collection objects.
glRestoreVertexStateCollectionsDMP Restores the state of vertex state collection objects.
glSaveTextureCollectionsDMP Saves the state of texture collection objects.
glRestoreTextureCollectionsDMP Restores the state of texture collection objects.
glClearEarlyDepthDMP Sets the depth value that glClear uses to clear the early depth buffer.
glEarlyDepthFuncDMP Specifies the comparison function to use for early depth tests.
glRenderBlockModeDMP Specifies the block mode for the renderbuffer.
glUniformsDMP Sets multiple uniform values.
glGetUniformsDMP Gets multiple uniform values.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL