Properties

CC3LineNode Class Reference

CC3LineNode is a type of CC3MeshNode that is specialized to display lines. More...

#import <CC3MeshNode.h>

Inheritance diagram for CC3LineNode:
Inheritance graph
[legend]
Collaboration diagram for CC3LineNode:
Collaboration graph
[legend]

List of all members.

Properties

GLenum performanceHint DEPRECATED_ATTRIBUTE

Detailed Description

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.

To color the lines, use the pureColor property to draw the lines in a pure, solid color that is not affected by lighting conditions. You can also add a material to your CC3LineNode instance to get more subtle coloring and blending, but this can sometimes appear strange with lines. You can also use CCActionInterval to change the tinting or opacity of the lines, as you would with any mesh node.

Several convenience methods exist in the CC3MeshNode class to aid in constructing a CC3LineNode instance:


Property Documentation

- (GLenum performanceHint) DEPRECATED_ATTRIBUTE [read, write, assign]
Deprecated:
Property renamed to lineSmoothingHint on CC3MeshNode.

Implements CC3MeshNode.


The documentation for this class was generated from the following file: