CC3PVRShamanShaderSemantics Class Reference
Inherits from | CC3PFXShaderSemantics : CC3ShaderSemanticsByVarName : CC3ShaderSemanticsBase : NSObject |
Declared in | CC3PVRShamanShaderSemantics.h |
Overview
CC3PVRShamanShaderSemantics provides a mapping from the PVRShaman names declared in a PFX effect within a PFX effects file, and the standard semantics from the CC3Semantic enumeration.
Class Methods
addSemantic:forPVRShamanSemanticName:
By default, this class populates the standard mappings between PVRShaman semantic names and semantic values. You can use this method to add an additional mapping, or to change an existing mapping.
+ (void)addSemantic:(GLenum)semantic forPVRShamanSemanticName:(NSString *)semanticName
Declared In
CC3PVRShamanShaderSemantics.h
semanticForPVRShamanSemanticName:
Returns the semantic value corresponding the the specified PVRShaman semantic name, or returns kCC3SemanticNone if the semantic could not be determined from the PVRShaman semantic name.
+ (GLenum)semanticForPVRShamanSemanticName:(NSString *)semanticName
Declared In
CC3PVRShamanShaderSemantics.h
Instance Methods
semanticForPFXSemanticName:
Returns the semantic value corresponding the the specified PFX semantic name, or returns kCC3SemanticNone if the semantic could not be determined from the PFX semantic name.
- (GLenum)semanticForPFXSemanticName:(NSString *)semanticName
Discussion
This implementation simply delegates to the class-side semanticForPVRShamanSemanticName: method.
Declared In
CC3PVRShamanShaderSemantics.h