CC3PODMaterial Class Reference
Inherits from | CC3Material : CC3Identifiable : NSObject |
Declared in | CC3PODMaterial.h CC3PODMaterial.mm |
Tasks
Other Methods
-
pfxEffect
property -
+ materialAtIndex:fromPODResource:
-
+ shininessExpansionFactor
-
+ setShininessExpansionFactor:
Other Methods
Class Methods
materialAtIndex:fromPODResource:
Allocates and initializes an autoreleased instance from the data of this type at the specified index within the specified POD resource.
+ (id)materialAtIndex:(int)aPODIndex fromPODResource:(CC3PODResource *)aPODRez
Declared In
CC3PODMaterial.h
setShininessExpansionFactor:
The shininess of a material as specified in a POD file has a very different scale than the shininess value used by OpenGL ES. To compensate for this, the shininess value extracted from a POD file is multiplied by this factor before being applied to the material.
+ (void)setShininessExpansionFactor:(GLfloat)aFloat
Discussion
The initial value of this factor assumes the POD shininess range to be between zero and one. Since the OpenGL range is zero to 128, the initial value of this property is set to 128. If your POD files use a different range of shininess values, you can modify the value of this property to bring that range into the standard OpenGL range of zero to 128.
Declared In
CC3PODMaterial.h
shininessExpansionFactor
The shininess of a material as specified in a POD file has a very different scale than the shininess value used by OpenGL ES. To compensate for this, the shininess value extracted from a POD file is multiplied by this factor before being applied to the material.
+ (GLfloat)shininessExpansionFactor
Discussion
The initial value of this factor assumes the POD shininess range to be between zero and one. Since the OpenGL range is zero to 128, the initial value of this property is set to 128. If your POD files use a different range of shininess values, you can modify the value of this property to bring that range into the standard OpenGL range of zero to 128.
Declared In
CC3PODMaterial.h
Instance Methods
addBumpMapTexture:fromPODResource:
If the specified texture index is valid, extracts the texture from the POD resource, configures it as a bump-map texture, and adds it to this material.
- (void)addBumpMapTexture:(GLint)aPODTexIndex fromPODResource:(CC3PODResource *)aPODRez
Declared In
CC3PODMaterial.mm
addTexture:fromPODResource:
If the specified texture index is valid, extracts the texture from the POD resource and adds it to this material.
- (void)addTexture:(GLint)aPODTexIndex fromPODResource:(CC3PODResource *)aPODRez
Declared In
CC3PODMaterial.mm
initAtIndex:fromPODResource:
Initializes this instance from the data of this type at the specified index within the specified POD resource.
- (id)initAtIndex:(GLint)aPODIndex fromPODResource:(CC3PODResource *)aPODRez
Declared In
CC3IdentifiablePODExtensions.h
podIndex
The index of this object in the POD resource data. This generally means the podIndex'th type of object of the class.
- (GLint)podIndex
Declared In
CC3IdentifiablePODExtensions.h
populateFrom:
Template method that populates this instance from the specified other instance.
- (void)populateFrom:(CC3PODMaterial *)another
Discussion
This method is invoked automatically during object copying via the copy or copyWithZone: method. In most situations, the application should use the copy method, and should never need to invoke this method directly.
Subclasses that add additional instance state (instance variables) should extend copying by overriding this method to copy that additional state. Superclass that override this method should be sure to invoke the superclass implementation to ensure that superclass state is copied as well.
Declared In
CC3Identifiable.h