v2.0.2
Classes | Enumerations | Functions
CC3GLSLVariable.h File Reference
#import "CC3Foundation.h"
#import "CC3Matrix4x4.h"

Classes

class  CC3GLSLAttribute
 
class  CC3GLSLUniform
 
class  CC3GLSLUniformOverride
 
class  CC3GLSLVariable
 

Enumerations

enum  CC3GLSLVariableScope { kCC3GLSLVariableScopeUnknown = 0, kCC3GLSLVariableScopeScene, kCC3GLSLVariableScopeNode, kCC3GLSLVariableScopeDraw }
 

Functions

NSString * NSStringFromCC3GLSLVariableScope (CC3GLSLVariableScope scope)
 

Enumeration Type Documentation

Indicates the scope of a GLSL variable.

GLSL variable are automatically populated prior to drawing. This enumeration indicates when and how often the variable needs to be populated.

Most GLSL variables need to be populated anew as each node is drawn. But some variables, such as lighting or camera content only needs to be populated once each time the scene is drawn, and some other variables, such as bone matrices, need to be populated on each draw call.

Enumerator
kCC3GLSLVariableScopeUnknown 

The scope of the variable is unknown.

kCC3GLSLVariableScopeScene 

The scope of the variable is the entire scene.

kCC3GLSLVariableScopeNode 

The scope of the variable is the current node.

kCC3GLSLVariableScopeDraw 

The scope of the variable is the current draw call.

Function Documentation

NSString* NSStringFromCC3GLSLVariableScope ( CC3GLSLVariableScope  scope)

Returns a string representation of the specified GLSL variable scope.