#import <CC3VertexArrays.h>
Additional Inherited Members | |
Class Methods inherited from CC3VertexArray | |
(id) | + arrayFromCPODData:fromSPODMesh: |
(GLenum) | + defaultSemantic |
(id) | + vertexArray |
(id) | + vertexArrayWithName: |
(id) | + vertexArrayWithTag: |
(id) | + vertexArrayWithTag:withName: |
Properties inherited from CC3VertexArray | |
GLvoid *elements | __deprecated |
GLuint elementCount | __deprecated |
GLuint elementStride | __deprecated |
GLfloat capacityExpansionFactor | __deprecated |
BOOL shouldReleaseRedundantData | __deprecated |
GLuint | allocatedVertexCapacity |
GLuint | bufferID |
GLenum | bufferTarget |
GLenum | bufferUsage |
GLuint | elementLength |
GLuint | elementOffset |
GLint | elementSize |
GLenum | elementType |
BOOL | isUsingGLBuffer |
GLenum | semantic |
BOOL | shouldAllowVertexBuffering |
BOOL | shouldNormalizeContent |
BOOL | shouldReleaseRedundantContent |
GLuint | vertexCount |
GLuint | vertexStride |
GLvoid * | vertices |
A CC3VertexArray that manages the normal aspect of an array of vertices.
- (void) flipNormals |
Reverses the direction of all of the normals in this mesh.
- (CC3Vector) normalAt: | (GLuint) | index |
Returns the normal element at the specified index in the underlying vertex content.
The index refers to vertices, not bytes. The implementation takes into consideration the vertexStride and elementOffset properties to access the correct element.
If the releaseRedundantContent method has been invoked and the underlying vertex content has been released, this method will raise an assertion exception.
- (void) setNormal: | (CC3Vector) | aNormal | |
at: | (GLuint) | index | |
Sets the normal element at the specified index in the underlying vertex content to the specified normal value.
The index refers to vertices, not bytes. The implementation takes into consideration the vertexStride and elementOffset properties to access the correct element.
If the releaseRedundantContent method has been invoked and the underlying vertex content has been released, this method will raise an assertion exception.