Inherits from CC3ShaderSourceCodeCompilationStringCountVisitor : CC3ShaderSourceCodeVisitor : NSObject
Declared in CC3Shaders.h

Overview

Visits an assembly of nested CC3ShaderSourceCode instances to populate an array of source code strings to be submitted to the compiler, in order to compile the source code contained within the assembly of CC3ShaderSourceCode instances.

The source code strings are accumulated in the sourceCompilationStrings array property, and the number of strings added to that array is contained within the sourceCompilationStringCount superclass property.

Properties

sourceCompilationStrings

Returns the pointer to the array of source code strings that is populated by this visitor.

@property (nonatomic, readonly) const GLchar **sourceCompilationStrings

Declared In

CC3Shaders.h

Class Methods

visitorWithCompilationStrings:

Allocates and initializes an instance that populates the specified compilation strings.

+ (id)visitorWithCompilationStrings:(const GLchar **)sourceCompilationStrings

Declared In

CC3Shaders.h

Instance Methods

addSourceCompilationString:

Adds the specified source code string to the array in the sourceCompilationStrings property, and increments the value of the sourceCompilationStringCount property.

- (void)addSourceCompilationString:(const GLchar *)sourceCompilationString

Declared In

CC3Shaders.h

initWithCompilationStrings:

Initializes this instance to populate the specified compilation strings.

- (id)initWithCompilationStrings:(const GLchar **)sourceCompilationStrings

Declared In

CC3Shaders.h