A CC3VertexArray that manages the per-vertex color aspect of an array of vertices. More...
#import <CC3VertexArrays.h>
Public Member Functions | |
(ccColor4B) | - color4BAt: |
(ccColor4F) | - color4FAt: |
(void) | - setColor4B:at: |
(void) | - setColor4F:at: |
A CC3VertexArray that manages the per-vertex color aspect of an array of vertices.
- (ccColor4B) color4BAt: | (GLsizei) | index |
Returns the color element at the specified index in the underlying vertex data.
If the underlying vertex data is not of type GLubyte, the color components are converted to GLubyte before the color value is returned.
The index refers to elements, not bytes. The implementation takes into consideration the elementStride and elementOffset properties to access the correct element.
If the releaseRedundantData method has been invoked and the underlying vertex data has been released, this method will raise an assertion exception.
- (ccColor4F) color4FAt: | (GLsizei) | index |
Returns the color element at the specified index in the underlying vertex data.
If the underlying vertex data is not of type GLfloat, the color components are converted to GLfloat before the color value is returned.
The index refers to elements, not bytes. The implementation takes into consideration the elementStride and elementOffset properties to access the correct element.
If the releaseRedundantData method has been invoked and the underlying vertex data has been released, this method will raise an assertion exception.
- (void) setColor4B: | (ccColor4B) | aColor | |
at: | (GLsizei) | index | |
Sets the color element at the specified index in the underlying vertex data to the specified color value.
If the underlying vertex data is not of type GLubyte, the color components are converted to the appropriate type (typically GLfloat) before being set in the 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 releaseRedundantData 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.
If the underlying vertex data is not of type GLfloat, the color components are converted to the appropriate type (typically GLubyte) before being set in the 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 releaseRedundantData method has been invoked and the underlying vertex data has been released, this method will raise an assertion exception.