Classes | |
| class | FileUtils |
| Helper class to handle file operations. More... | |
| class | BatchCommand |
| Command used to draw batches in one TextureAtlas. More... | |
| class | CustomCommand |
| Custom command is used for call custom openGL command which can not be done by other commands, such as stencil function, depth functions etc. More... | |
| struct | VertexAttrib |
| VertexAttrib is a structure to encapsulate data got from glGetActiveAttrib. More... | |
| struct | Uniform |
| Uniform is a structure to encapsulate data got from glGetActiveUniform and glGetUniformLocation. More... | |
| class | GLProgram |
| GLProgram Class that implements a glProgram. More... | |
| class | GLProgramCache |
| GLProgramCache Singleton that stores manages GLProgram objects (shaders) More... | |
| class | UniformValue |
| Uniform Value, which is used to store to value send to openGL pipe line by glUniformXXX. More... | |
| class | VertexAttribValue |
| Vertex Attribute Value, which is an abstraction of VertexAttribute and data pointer. More... | |
| class | GLProgramState |
| GLProgramState holds the 'state' (uniforms and attributes) of the GLProgram. More... | |
| class | GLProgramStateCache |
| Some GLprogram state could be shared. More... | |
| class | GroupCommand |
| GroupCommand is used to group several command together, and more, it can be nestd. More... | |
| class | Primitive |
| Primitive can support sending points, lines and triangles to glpipeline, which is an abstraction of primitive data. More... | |
| class | PrimitiveCommand |
| Command used to render primitive, similar to QuadCommand. More... | |
| class | QuadCommand |
| Command used to render one or more Quads, similar to TrianglesCommand. More... | |
| class | RenderCommand |
Base class of the RenderCommand hierarchy. More... | |
| class | RenderQueue |
Class that knows how to sort RenderCommand objects. More... | |
| class | TrianglesCommand |
| Command used to render one or more Triangles, which is similar to QuadCommand. More... | |
| struct | TrianglesCommand::Triangles |
| The structure of Triangles. More... | |
| class | VertexBuffer |
| VertexBuffer is an abstraction of low level openGL Vertex Buffer Object. More... | |
| class | IndexBuffer |
| IndexBuffer is an abstraction of low level openGL Buffer Object. More... | |
| struct | VertexStreamAttribute |
| VertexStreamAttribute is used to specify the vertex attribute for drawing, which is correspondent to glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr). More... | |
| class | VertexData |
| VertexData is a class used for specify input streams for GPU rendering pipeline, a VertexData will be composed by several streams, every stream will contain a VertexStreamAttribute and the binding VertexBuffer. More... | |
Functions | |
| void | (void) |
| Invalidates the GL state cache. More... | |
| void | (GLuint program) |
| Uses the GL program in case program is different than the current one. More... | |
| void | (GLenum sfactor, GLenum dfactor) |
| Uses a blending function in case it not already used. More... | |
| void | (uint32_t flags) |
| Will enable the vertex attribs that are passed as flags. More... | |
| void | (GLuint textureUnit, GLuint textureId) |
| If the texture is not already bound to a given unit, it binds it. More... | |
| void | (GLuint textureUnit, GLuint textureId, GLuint textureType=GL_TEXTURE_2D) |
| If the texture is not already bound to a given unit, it binds it. More... | |
| void | (GLenum texture) |
| Select active texture unit. More... | |
|
strong |
Defines the alignment of text.
|
strong |
Defines the alignment of text.
|
strong |
Defines the alignment of text.
| anonymous enum |
Enum the preallocated vertex attribute.
| var enum |
Enum the preallocated vertex attribute.
| local enum |
Enum the preallocated vertex attribute.
| anonymous enum |
Preallocated uniform handle.
| var enum |
Preallocated uniform handle.
| local enum |
Preallocated uniform handle.
| anonymous enum |
Vertex attrib flags.
| var enum |
Vertex attrib flags.
| local enum |
Vertex attrib flags.
|
strong |
Enum the type of render command.
| Enumerator | |
|---|---|
| UNKNOWN_COMMAND |
Reserved type. |
| QUAD_COMMAND |
Quad command, used for draw quad. |
| CUSTOM_COMMAND |
Custom command, used for calling callback for rendering. |
| BATCH_COMMAND |
Batch command, used for draw batches in texture atlas. |
| GROUP_COMMAND |
Group command, which can group command in a tree hierarchy. |
| MESH_COMMAND |
Mesh command, used to draw 3D meshes. |
| PRIMITIVE_COMMAND |
Primitive command, used to draw primitives such as lines, points and triangles. |
| TRIANGLES_COMMAND |
Triangles command, used to draw triangles. |
|
strong |
Enum the type of render command.
| Enumerator | |
|---|---|
| UNKNOWN_COMMAND |
Reserved type. |
| QUAD_COMMAND |
Quad command, used for draw quad. |
| CUSTOM_COMMAND |
Custom command, used for calling callback for rendering. |
| BATCH_COMMAND |
Batch command, used for draw batches in texture atlas. |
| GROUP_COMMAND |
Group command, which can group command in a tree hierarchy. |
| MESH_COMMAND |
Mesh command, used to draw 3D meshes. |
| PRIMITIVE_COMMAND |
Primitive command, used to draw primitives such as lines, points and triangles. |
| TRIANGLES_COMMAND |
Triangles command, used to draw triangles. |
|
strong |
Enum the type of render command.
| Enumerator | |
|---|---|
| UNKNOWN_COMMAND |
Reserved type. |
| QUAD_COMMAND |
Quad command, used for draw quad. |
| CUSTOM_COMMAND |
Custom command, used for calling callback for rendering. |
| BATCH_COMMAND |
Batch command, used for draw batches in texture atlas. |
| GROUP_COMMAND |
Group command, which can group command in a tree hierarchy. |
| MESH_COMMAND |
Mesh command, used to draw 3D meshes. |
| PRIMITIVE_COMMAND |
Primitive command, used to draw primitives such as lines, points and triangles. |
| TRIANGLES_COMMAND |
Triangles command, used to draw triangles. |
| enum QUEUE_GROUP |
RenderCommand will be divided into Queue Groups.
| var QUEUE_GROUP |
RenderCommand will be divided into Queue Groups.
| local QUEUE_GROUP |
RenderCommand will be divided into Queue Groups.
|
strong |
|
strong |
|
strong |
| void cocos2d::GL::invalidateStateCache |
( | void | ) |
Invalidates the GL state cache.
If CC_ENABLE_GL_STATE_CACHE it will reset the GL state cache.
| var invalidateStateCache | ( | ) |
Invalidates the GL state cache.
If CC_ENABLE_GL_STATE_CACHE it will reset the GL state cache.
| local invalidateStateCache | ( | ) |
Invalidates the GL state cache.
If CC_ENABLE_GL_STATE_CACHE it will reset the GL state cache.
| void cocos2d::GL::useProgram | ( | GLuint | program | ) |
Uses the GL program in case program is different than the current one.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will the glUseProgram() directly.
| var useProgram | ( | var | program | ) |
Uses the GL program in case program is different than the current one.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will the glUseProgram() directly.
| local useProgram | ( | local | program | ) |
Uses the GL program in case program is different than the current one.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will the glUseProgram() directly.
| void cocos2d::GL::blendFunc | ( | GLenum | sfactor, |
| GLenum | dfactor | ||
| ) |
Uses a blending function in case it not already used.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will the glBlendFunc() directly.
| var blendFunc | ( | var | sfactor, |
| var | dfactor | ||
| ) |
Uses a blending function in case it not already used.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will the glBlendFunc() directly.
| local blendFunc | ( | local | sfactor, |
| local | dfactor | ||
| ) |
Uses a blending function in case it not already used.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will the glBlendFunc() directly.
| void cocos2d::GL::enableVertexAttribs |
( | uint32_t | flags | ) |
Will enable the vertex attribs that are passed as flags.
Possible flags:
These flags can be ORed. The flags that are not present, will be disabled.
| var enableVertexAttribs | ( | var | flags | ) |
Will enable the vertex attribs that are passed as flags.
Possible flags:
These flags can be ORed. The flags that are not present, will be disabled.
| local enableVertexAttribs | ( | local | flags | ) |
Will enable the vertex attribs that are passed as flags.
Possible flags:
These flags can be ORed. The flags that are not present, will be disabled.
| void cocos2d::GL::bindTexture2DN | ( | GLuint | textureUnit, |
| GLuint | textureId | ||
| ) |
If the texture is not already bound to a given unit, it binds it.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.
| var bindTexture2DN | ( | var | textureUnit, |
| var | textureId | ||
| ) |
If the texture is not already bound to a given unit, it binds it.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.
| local bindTexture2DN | ( | local | textureUnit, |
| local | textureId | ||
| ) |
If the texture is not already bound to a given unit, it binds it.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.
| void cocos2d::GL::bindTextureN | ( | GLuint | textureUnit, |
| GLuint | textureId, | ||
| GLuint | textureType = GL_TEXTURE_2D |
||
| ) |
If the texture is not already bound to a given unit, it binds it.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.
| var bindTextureN | ( | var | textureUnit, |
| var | textureId, | ||
| var | textureType = GL_TEXTURE_2D |
||
| ) |
If the texture is not already bound to a given unit, it binds it.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.
| local bindTextureN | ( | local | textureUnit, |
| local | textureId, | ||
| local | textureType = GL_TEXTURE_2D |
||
| ) |
If the texture is not already bound to a given unit, it binds it.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.
| void cocos2d::GL::activeTexture | ( | GLenum | texture | ) |
Select active texture unit.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glActiveTexture() directly.
| var activeTexture | ( | var | texture | ) |
Select active texture unit.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glActiveTexture() directly.
| local activeTexture | ( | local | texture | ) |
Select active texture unit.
If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glActiveTexture() directly.