Static Public Member Functions | Properties

CC3PODMaterial Class Reference

A CC3Material whose content originates from POD resource data. More...

#import <CC3PODMaterial.h>

Inheritance diagram for CC3PODMaterial:
CC3Material CC3Identifiable

List of all members.

Static Public Member Functions

(void) + setShininessExpansionFactor:
(GLfloat) + shininessExpansionFactor

Properties

int podTextureIndex

Detailed Description


Member Function Documentation

+ (id) materialAtIndex: (int)  aPODIndex
fromPODResource: (CC3PODResource *)  aPODRez 

Allocates and initializes an autoreleased instance from the data of this type at the specified index within the specified POD resource.

+ (void) setShininessExpansionFactor: (GLfloat)  aFloat

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.

The initial value of this factor is 400. It can be changed using this method.

+ (GLfloat) 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.

The initial value of this factor is 400. It can be changed with the setShininessExpansionFactor: method.


Property Documentation

- (int) podTextureIndex [read, write, assign]

The index of the texture in the POD file used by this node.

This value will be -1 if the material has no texture.


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