Public Member Functions

CC3VertexColors Class Reference

A CC3VertexArray that manages the per-vertex color aspect of an array of vertices. More...

#import <CC3VertexArrays.h>

Inheritance diagram for CC3VertexColors:
CC3VertexArray CC3Identifiable

List of all members.

Public Member Functions

(ccColor4F) - color4FAt:
(void) - setColor4F:at:

Detailed Description


Member Function Documentation

- (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.


The documentation for this class was generated from the following file: