CCRenderer Class Reference
| Inherits from | NSObject |
| Declared in | CCRenderer.h |
Tasks
Other Methods
-
– invalidateState -
– enqueueClear:color:depth:stencil:globalSortOrder: -
– enqueueBlock:globalSortOrder:debugLabel:threadSafe: -
– enqueueMethod:target: -
– pushGroup -
– popGroupWithDebugLabel:globalSortOrder:
NoARC Methods
-
– enqueueTriangles:andVertexes:withState:globalSortOrder: -
– enqueueLines:andVertexes:withState:globalSortOrder:
Extension Methods
Class Methods
Instance Methods
bindVAO:
Bind the renderer’s VAO if it is not currently bound.
- (void)bindVAO:(BOOL)bindDeclared In
CCRenderer_private.henqueueBlock:globalSortOrder:debugLabel:threadSafe:
Enqueue a block that performs GL commands. The debugLabel is optional and will show up in in the GLES frame debugger. Enqueued commands are sorted by their globalSortOrder value before rendering. Currently this value is 0 for everything except custom draw methods.
- (void)enqueueBlock:(void ( ^ ) ( ))block globalSortOrder:(NSInteger)globalSortOrder debugLabel:(NSString *)debugLabel threadSafe:(BOOL)threadSafeDeclared In
CCRenderer.henqueueClear:color:depth:stencil:globalSortOrder:
Enqueue a OpenGL clear operation for the given buffers and the given values. Enqueued commands are sorted by their globalSortOrder value before rendering. Currently this value is 0 for everything except custom draw methods.
- (void)enqueueClear:(GLbitfield)mask color:(GLKVector4)color4 depth:(GLclampf)depth stencil:(GLint)stencil globalSortOrder:(NSInteger)globalSortOrderDeclared In
CCRenderer.henqueueLines:andVertexes:withState:globalSortOrder:
Enqueue a drawing command for some lines. Returns a CCRendereBuffer that you should fill using CCRenderBufferSetVertex() and CCRenderBufferSetLine(). Note: These are primitive OpenGL lines that you’ll only want to use for debug rendering. They are not batched. Enqueued commands are sorted by their globalSortOrder value before rendering. Currently this value is 0 for everything except custom draw methods.
- (CCRenderBuffer)enqueueLines:(NSUInteger)lineCount andVertexes:(NSUInteger)vertexCount withState:(CCRenderState *)renderState globalSortOrder:(NSInteger)globalSortOrderDeclared In
CCRenderer.henqueueMethod:target:
Enqueue a method that performs GL commands. Enqueued commands are sorted by their globalSortOrder value before rendering. Currently this value is 0 for everything except custom draw methods.
- (void)enqueueMethod:(SEL)selector target:(id)targetDeclared In
CCRenderer.henqueueRenderCommand:
Enqueue a general or custom render command.
- (void)enqueueRenderCommand:(id<CCRenderCommand>)renderCommandDeclared In
CCRenderer_private.henqueueTriangles:andVertexes:withState:globalSortOrder:
Enqueue a drawing command for some triangles. Returns a CCRendereBuffer that you should fill using CCRenderBufferSetVertex() and CCRenderBufferSetTriangle(). Enqueued commands are sorted by their globalSortOrder value before rendering. Currently this value is 0 for everything except custom draw methods.
- (CCRenderBuffer)enqueueTriangles:(NSUInteger)triangleCount andVertexes:(NSUInteger)vertexCount withState:(CCRenderState *)renderState globalSortOrder:(NSInteger)globalSortOrderDeclared In
CCRenderer.hinvalidateState
Mark the renderer’s cached GL state as invalid executing custom OpenGL code. You only need to call this if you change the shader, texture or blending mode states.
- (void)invalidateStateDeclared In
CCRenderer.hpopGroupWithDebugLabel:globalSortOrder:
End the most recent group started using pushGroup. The grouped commands are sorted together using the gives sorting order.
- (void)popGroupWithDebugLabel:(NSString *)debugLabel globalSortOrder:(NSInteger)globalSortOrderDeclared In
CCRenderer.h