#import <CC3ModelSampleFactory.h>
Instance Methods | |
(CC3MeshNode *) | - makeMultiColoredTeapotNamed: |
(CC3MeshNode *) | - makeTexturableTeapotNamed: |
(CC3MeshNode *) | - makeUniColoredTeapotNamed:withColor: |
Class Methods | |
(void) | + deleteFactory |
(CC3ModelSampleFactory *) | + factory |
Properties | |
CC3Mesh * | multicoloredTeapotMesh |
CC3Mesh * | texturedTeapotMesh |
CC3Mesh * | unicoloredTeapotMesh |
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.
+ (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.
|
readnonatomicretain |
An instance of a teapot mesh that includes a vertex color array.
|
readnonatomicretain |
An instance of a teapot mesh that includes a texture coordinate map.
|
readnonatomicretain |
An instance of a teapot mesh that will be covered in a single color.