v2.0.2
Properties | List of all members
CC3GLSLVariableConfiguration Class Reference

#import <CC3ShaderSemantics.h>

Inheritance diagram for CC3GLSLVariableConfiguration:
Inheritance graph
[legend]

Properties

NSString * name
 
GLenum semantic
 
GLuint semanticIndex
 

Detailed Description

A CC3GLSLVariableConfiguration carries information for configuring a single CC3GLSLVariable.

An implementation of the CC3ShaderSemanticsDelegate protocol will typically contain a collection of instances of this class, or a subclass, to configure the variables associated with a CC3ShaderProgram.

This base implementation maps a variable name to a semantic value. Subclasses may add additional variable configuration information.

Property Documentation

- (NSString*) name
readwritenonatomicretain

The name of the variable.

Typically this is the name of the variable as declared in the GLSL program source code.

- (GLenum) semantic
readwritenonatomicassign

A symbolic constant indicating the semantic meaning of this variable.

See the description of the same property on the CC3GLSLVariable class for a full description.

The initial value of this property is kCC3SemanticNone.

- (GLuint) semanticIndex
readwritenonatomicassign

When the semantic refers to an element of a structure that may have multiple instances, this property indicates to which instance this variable refers.

See the description of the same property on the CC3GLSLVariable class for a full description.

The initial value of this property is zero.


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