#import <CC3UtilityMeshNodes.h>
CC3LineNode is a type of CC3MeshNode that is specialized to display lines.
Since lines are a mesh like any other mesh, the functionality required to create and manipulate line meshes is present in the CC3MeshNode class, and if you choose, you can create and manage line meshes using that class alone. At present, CC3LineNode exists for the most part simply to identify box meshes as such. However, in future, additional state or behaviour may be added to this class.
To draw lines, you must make sure that the drawingMode property is set to one of GL_LINES, GL_LINE_STRIP or GL_LINE_LOOP. This property must be set after the mesh is attached. Other than that, you configure the mesh node and its mesh as you would with any mesh node.
Several convenience methods exist in the CC3MeshNode class to aid in constructing a CC3LineNode instance:
|
readwritenonatomicassign |