import SCNProgramDelegate from 'jscenekit/js/SceneKit/SCNProgramDelegate.js'
SCNProgramDelegate
The interface for tracking errors that occur when compiling shader source code.
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 |
programIsOpaque(program: SCNProgram): boolean 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
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:
Name | Type | Attribute | Description |
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. |
public programHandleError(program: SCNProgram, error: Error): void source
Examine the error parameter for details of the compilation error provided by the GLSL compiler.
Params:
Name | Type | Attribute | Description |
program | SCNProgram | The program that generated the compilation error. |
|
error | Error | The compilation error that was raised. |
Return:
void |
public programIsOpaque(program: SCNProgram): boolean source
Asks the delegate whether fragments rendered by a program are opaque.
Params:
Name | Type | Attribute | Description |
program | SCNProgram |
public programUnbindValueForSymbolAtLocation(program: SCNProgram, symbol: string, location: number, programID: number, renderer: SCNRenderer): void source
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:
Name | Type | Attribute | Description |
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 |