A CC3VertexArray that manages the normal aspect of an array of vertices. More...
#import <CC3VertexArrays.h>
Public Member Functions | |
(CC3Vector) | - normalAt: |
(void) | - setNormal:at: |
A CC3VertexArray that manages the normal aspect of an array of vertices.
- (CC3Vector) normalAt: | (GLsizei) | index |
Returns the normal element at the specified index in the underlying vertex data.
The index refers to vertices, 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) setNormal: | (CC3Vector) | aNormal | |
at: | (GLsizei) | index | |
Sets the normal element at the specified index in the underlying vertex data to the specified normal value.
The index refers to vertices, 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.