Public Member Functions

CC3VertexNormals Class Reference

A CC3VertexArray that manages the normal aspect of an array of vertices. More...

#import <CC3VertexArrays.h>

Inheritance diagram for CC3VertexNormals:
CC3VertexArray CC3Identifiable

List of all members.

Public Member Functions

(CC3Vector- normalAt:
(void) - setNormal:at:

Detailed Description


Member Function Documentation

- (CC3Vector) normalAt: (GLsizei)  index

Returns the normal 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) 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 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: