#import <CC3TextureUnit.h>
Properties | |
GLenum | alphaOperand0 |
GLenum | alphaOperand1 |
GLenum | alphaOperand2 |
GLenum | alphaSource0 |
GLenum | alphaSource1 |
GLenum | alphaSource2 |
GLenum | combineAlphaFunction |
GLenum | combineRGBFunction |
BOOL | isBumpMap |
GLenum | rgbOperand0 |
GLenum | rgbOperand1 |
GLenum | rgbOperand2 |
GLenum | rgbSource0 |
GLenum | rgbSource1 |
GLenum | rgbSource2 |
GLenum | textureEnvironmentMode |
Properties inherited from CC3TextureUnit | |
CCColorRef | color |
ccColor4F | constantColor |
BOOL | isBumpMap |
CC3Vector | lightDirection |
CCOpacity | opacity |
CC3DOT3RGB | rgbNormalMap |
GLenum | textureEnvironmentMode |
Additional Inherited Members | |
Instance Methods inherited from CC3TextureUnit | |
(void) | - bindWithVisitor: |
Class Methods inherited from CC3TextureUnit | |
(void) | + bindDefaultWithVisitor: |
(id) | + textureUnit |
A texture unit that provides complete flexibility in defining the way the texture will be combined with the output of previous texture units.
|
readwritenonatomicassign |
Defines the operand to be applied to the alpha component of alphaSource0 prior to it being used by the combiner.
This property may be set to any of the following values:
The initial value of this property is GL_SRC_ALPHA, indicating that the alpha component of alphaSource0 will be used as-is by the combiner.
|
readwritenonatomicassign |
Defines the operand to be applied to the alpha component of alphaSource1 prior to it being used by the combiner.
See the notes for the alphaOperand0 property for the list of permitted values.
The initial value of this property is GL_SRC_ALPHA, indicating that the alpha component of alphaSource1 will be used as-is by the combiner.
|
readwritenonatomicassign |
Defines the operand to be applied to the alpha component of alphaSource2 prior to it being used by the combiner.
See the notes for the alphaOperand0 property for the list of permitted values.
The initial value of this property is GL_SRC_ALPHA, indicating that the alpha component of alphaSource2 will be used as-is by the combiner.
|
readwritenonatomicassign |
Identifies the source texture for the alpha component used as argument zero in the texture function defined by the combineAlphaFunction property.
This property may be set to any of the following values:
The intial value of this property is GL_TEXTURE, indicating that the texture combiner will use this texture as argument zero in the texture combiner function.
|
readwritenonatomicassign |
Identifies the source texture for the alpha components used as argument one in the texture function defined by the combineAlphaFunction property.
See the notes for the alphaSource0 property for the list of permitted values.
The intial value of this property is GL_PREVIOUS, indicating that the texture combiner will use the output of the previous texture unit in the chain, or the color of the material if processing texture unit zero.
|
readwritenonatomicassign |
Identifies the source texture for the alpha components used as argument two in the texture function defined by the combineAlphaFunction property.
See the notes for the alphaSource0 property for the list of permitted values.
The intial value of this property is GL_CONSTANT, indicating that the texture combiner will use the alpha value in the constantColor property of this texture unit.
|
readwritenonatomicassign |
If the textureEnvironmentMode property is set to GL_COMBINE, this property defines the form of combining function used to combine the alpha component of the texture associated with this texture unit with the output of the previous texture unit.
This property may be set to any of the following values:
The initial value of this property is set to GL_MODULATE, which replicates the behaviour of the CC3Texture class
|
readwritenonatomicassign |
If the textureEnvironmentMode property is set to GL_COMBINE, this property defines the form of combining function used to combine the RGB components of the texture associated with this texture unit with the output of the previous texture unit.
This property may be set to any of the following values:
The initial value of this property is set to GL_MODULATE, which replicates the behaviour of the CC3Texture class
|
readnonatomicassign |
Returns whether this texture unit is configured as a bump-map.
This implementation always returns YES if the textureEnvironmentMode property is set to GL_COMBINE and the combineRGBFunction property is set to either GL_DOT3_RGB or GL_DOT3_RGBA.
|
readwritenonatomicassign |
Defines the operand to be applied to the RGB components of rgbSource0 prior to them being used by the combiner.
This property may be set to any of the following values:
The initial value of this property is GL_SRC_COLOR, indicating that the RGB color of rgbSource0 will be used as-is by the combiner.
|
readwritenonatomicassign |
Defines the operand to be applied to the RGB components of rgbSource1 prior to them being used by the combiner.
See the notes for the rgbOperand0 property for the list of permitted values.
The initial value of this property is GL_SRC_COLOR, indicating that the RGB color of rgbSource1 will be used as-is by the combiner.
|
readwritenonatomicassign |
Defines the operand to be applied to the RGB components of rgbSource2 prior to them being used by the combiner.
See the notes for the rgbOperand2 property for the list of permitted values.
The initial value of this property is GL_SRC_ALPHA, indicating that the alpha component of rgbSource2 will be used by the combiner.
|
readwritenonatomicassign |
Identifies the source texture for the RGB components used as argument zero in the texture function defined by the combineRGBFunction property.
This property may be set to any of the following values:
The intial value of this property is GL_TEXTURE, indicating that the texture combiner will use this texture as argument zero in the texture combiner function.
|
readwritenonatomicassign |
Identifies the source texture for the RGB components used as argument one in the texture function defined by the combineRGBFunction property.
See the notes for the rgbSource0 property for the list of permitted values.
The intial value of this property is GL_PREVIOUS, indicating that the texture combiner will use the output of the previous texture unit in the chain, or the color of the material if processing texture unit zero.
|
readwritenonatomicassign |
Identifies the source texture for the RGB components used as argument two in the texture function defined by the combineRGBFunction property.
See the notes for the rgbSource0 property for the list of permitted values.
The intial value of this property is GL_CONSTANT, indicating that the texture combiner will use the value in the constantColor property of this texture unit.
|
readwritenonatomicassign |
Defines the texture function to be used when combining this texture unit with the output of the previous texture unit.
This can be set to one of several fixed texture functions (GL_ADD, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE), in which case the remaining configuration properties of this class are ignored. Setting this property to GL_MODULATE replicates the default behaviour of the CC3Texture class.
Setting this property to GL_COMBINE activates the other configuration properties of this class, opening up significant additional configuration flexibility.
The initial value of this property is GL_COMBINE, indicating that all configuration properties are active.