A CC3VertexArray that manages the per-vertex color aspect of an array of vertices. More...
#import <CC3VertexArrays.h>
Public Member Functions | |
(ccColor4F) | - color4FAt: |
(void) | - setColor4F:at: |
- (ccColor4F) color4FAt: | (GLsizei) | index |
Returns the color element at the specified index in the underlying vertex data.
The index refers to elements, not bytes. The implementation takes into consideration the elementStride and elementOffset properties to access the correct element.
If the createGLBuffer method has been invoked and the underlying vertex data has been released, this method will raise an assertion exception.
- (void) setColor4F: | (ccColor4F) | aColor | |
at: | (GLsizei) | index | |
Sets the color element at the specified index in the underlying vertex data to the specified color value.
The index refers to elements, not bytes. The implementation takes into consideration the elementStride and elementOffset properties to access the correct element.
If the createGLBuffer method has been invoked and the underlying vertex data has been released, this method will raise an assertion exception.