v2.0.2
Instance Methods | Class Methods | Properties | List of all members
CC3ModelSampleFactory Class Reference

#import <CC3ModelSampleFactory.h>

Inheritance diagram for CC3ModelSampleFactory:
Inheritance graph
[legend]

Instance Methods

(CC3MeshNode *) - makeMultiColoredTeapotNamed:
 
(CC3MeshNode *) - makeTexturableTeapotNamed:
 
(CC3MeshNode *) - makeUniColoredTeapotNamed:withColor:
 

Class Methods

(void) + deleteFactory
 
(CC3ModelSampleFactory *) + factory
 

Properties

CC3MeshmulticoloredTeapotMesh
 
CC3MeshtexturedTeapotMesh
 
CC3MeshunicoloredTeapotMesh
 

Detailed Description

CC3ModelSampleFactory is a convenience utility for creating sample 3D models for experimentation.

The design pattern is a singleton factory object, with methods for creating instances of various 3D models. Access to the factory instance is through the factory class method.

This class should be considered for testing and experimental use only. Unless you really need teapots in your application, there is no need to include this class, or the teapot.h data header file, in any finished application. Doing so will just bloat the size of the application unnecessarily.

Method Documentation

+ (void) deleteFactory

Deletes the factory singleton, to clear items from memory.

+ (CC3ModelSampleFactory*) factory

Returns the singleton instance.

- (CC3MeshNode*) makeMultiColoredTeapotNamed: (NSString *)  aName

Returns an allocated, initialized, autoreleased instance of a teapot painted with a funky color gradient.

- (CC3MeshNode*) makeTexturableTeapotNamed: (NSString *)  aName

Returns an allocated, initialized, autoreleased instance of a teapot suitable for covering with a texture.

- (CC3MeshNode*) makeUniColoredTeapotNamed: (NSString *)  aName
withColor: (ccColor4F)  color 

Returns an allocated, initialized, autoreleased instance of a teapot in a particular color.

Property Documentation

- (CC3Mesh*) multicoloredTeapotMesh
readnonatomicretain

An instance of a teapot mesh that includes a vertex color array.

- (CC3Mesh*) texturedTeapotMesh
readnonatomicretain

An instance of a teapot mesh that includes a texture coordinate map.

- (CC3Mesh*) unicoloredTeapotMesh
readnonatomicretain

An instance of a teapot mesh that will be covered in a single color.


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