Instance Method

program:bindValueForSymbol:atLocation:programID:renderer:

Invoked on the delegate to let it bind program values and/or associated graphics resources (such as textures) for symbols.

Declaration

- (BOOL)program:(SCNProgram *)program bindValueForSymbol:(NSString *)symbol atLocation:(unsigned int)location programID:(unsigned int)programID renderer:(SCNRenderer *)renderer;

Parameters

program

The SCNProgram object to bind values for.

symbol

The name of the symbol to bind a value for.

location

The location of the symbol within the program object to be modified.

programID

The underlying OpenGL program object in which the binding is made.

renderer

The renderer that is currently rendering the scene.

Discussion

If you use the handleBindingOfSymbol:usingBlock: method to associate a handler block with a SceneKit object for a symbol, SceneKit will not call the delegate’s program:bindValueForSymbol:atLocation:programID:renderer: method for that symbol when rendering that object.

See Also

Binding and Unbinding Values

- program:unbindValueForSymbol:atLocation:programID:renderer:

Invoked on the delegate to let it unbind program values and/or also unbind associated graphic resources (such as textures).

Deprecated