Home Reference Source Repository
import SCNProgramDelegate from 'jscenekit/js/SceneKit/SCNProgramDelegate.js'
public interface | source

SCNProgramDelegate

The interface for tracking errors that occur when compiling shader source code.

See:

Method Summary

Public Methods
public

programBindValueForSymbolAtLocation(program: SCNProgram, symbol: string, location: number, programID: number, renderer: SCNRenderer): boolean

this method was deprecated.

If you use the handleBinding(ofSymbol:handler:) 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.

public

programHandleError(program: SCNProgram, error: Error): void

Examine the error parameter for details of the compilation error provided by the GLSL compiler.

public
this method was deprecated.

Asks the delegate whether fragments rendered by a program are opaque.

public

programUnbindValueForSymbolAtLocation(program: SCNProgram, symbol: string, location: number, programID: number, renderer: SCNRenderer): void

this method was deprecated.

If you use the handleUnbinding(ofSymbol:handler:) method to associate a handler block with a SceneKit object for a symbol, SceneKit will not call the delegate’s program(_:unbindValueForSymbol:atLocation:programID:renderer:) method for that symbol when rendering that object.

Public Methods

public programBindValueForSymbolAtLocation(program: SCNProgram, symbol: string, location: number, programID: number, renderer: SCNRenderer): boolean source

this method was deprecated.

If you use the handleBinding(ofSymbol:handler:) 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.

Params:

NameTypeAttributeDescription
program SCNProgram

The SCNProgram object to bind values for.

symbol string

The name of the symbol to bind a value for.

location number

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

programID number

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

renderer SCNRenderer

The renderer that is currently rendering the scene.

Return:

boolean

See:

public programHandleError(program: SCNProgram, error: Error): void source

Examine the error parameter for details of the compilation error provided by the GLSL compiler.

Params:

NameTypeAttributeDescription
program SCNProgram

The program that generated the compilation error.

error Error

The compilation error that was raised.

Return:

void

See:

public programIsOpaque(program: SCNProgram): boolean source

this method was deprecated.

Asks the delegate whether fragments rendered by a program are opaque.

Params:

NameTypeAttributeDescription
program SCNProgram

Return:

boolean

See:

public programUnbindValueForSymbolAtLocation(program: SCNProgram, symbol: string, location: number, programID: number, renderer: SCNRenderer): void source

this method was deprecated.

If you use the handleUnbinding(ofSymbol:handler:) method to associate a handler block with a SceneKit object for a symbol, SceneKit will not call the delegate’s program(_:unbindValueForSymbol:atLocation:programID:renderer:) method for that symbol when rendering that object.

Params:

NameTypeAttributeDescription
program SCNProgram

The SCNProgram object to unbind values for.

symbol string

The name of the symbol to unbind a value for.

location number

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

programID number

The underlying OpenGL program object in which the unbinding is done.

renderer SCNRenderer

The renderer that is currently rendering the scene.

Return:

void

See: