CC3VertexTangents Class Reference
Inherits from | CC3VertexArray : CC3Identifiable : NSObject |
Declared in | CC3VertexArrays.h |
Instance Methods
setTangent:at:
Sets the tangent element at the specified index in the underlying vertex content to the specified tangent value.
- (void)setTangent:(CC3Vector)aTangent at:(GLuint)index
Discussion
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.
Declared In
CC3VertexArrays.h
tangentAt:
Returns the tangent element at the specified index in the underlying vertex content.
- (CC3Vector)tangentAt:(GLuint)index
Discussion
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.
Declared In
CC3VertexArrays.h