pub unsafe trait SCNProgramDelegate: NSObjectProtocol {
// Provided methods
unsafe fn program_bindValueForSymbol_atLocation_programID_renderer(
&self,
program: &SCNProgram,
symbol: &NSString,
location: c_uint,
program_id: c_uint,
renderer: &SCNRenderer,
) -> bool
where Self: Sized + Message { ... }
unsafe fn program_unbindValueForSymbol_atLocation_programID_renderer(
&self,
program: &SCNProgram,
symbol: &NSString,
location: c_uint,
program_id: c_uint,
renderer: &SCNRenderer,
)
where Self: Sized + Message { ... }
unsafe fn program_handleError(&self, program: &SCNProgram, error: &NSError)
where Self: Sized + Message { ... }
unsafe fn programIsOpaque(&self, program: &SCNProgram) -> bool
where Self: Sized + Message { ... }
}SCNShadable only.Expand description
The SCNProgramDelegate protocol declares the methods that an instance of SCNProgram invokes to delegate the binding of parameters.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn program_bindValueForSymbol_atLocation_programID_renderer(
&self,
program: &SCNProgram,
symbol: &NSString,
location: c_uint,
program_id: c_uint,
renderer: &SCNRenderer,
) -> bool
👎Deprecated: Use -[SCNShadable handleBindingOfSymbol:usingBlock:] insteadAvailable on crate feature SCNRenderer only.
unsafe fn program_bindValueForSymbol_atLocation_programID_renderer( &self, program: &SCNProgram, symbol: &NSString, location: c_uint, program_id: c_uint, renderer: &SCNRenderer, ) -> bool
SCNRenderer only.Invoked on the delegate to let it bind program values and/or also bind associated graphics resources (such as textures).
Parameter program: The program to bind values for.
Parameter symbol: The name of the symbol to bind a value for.
Parameter location: The location of the symbol within the program object to be modified.
Parameter programID: The program object.
Parameter renderer: The renderer that is currently rendering the scene.
Sourceunsafe fn program_unbindValueForSymbol_atLocation_programID_renderer(
&self,
program: &SCNProgram,
symbol: &NSString,
location: c_uint,
program_id: c_uint,
renderer: &SCNRenderer,
)
👎Deprecated: Use -[SCNShadable handleUnbindingOfSymbol:usingBlock:] insteadAvailable on crate feature SCNRenderer only.
unsafe fn program_unbindValueForSymbol_atLocation_programID_renderer( &self, program: &SCNProgram, symbol: &NSString, location: c_uint, program_id: c_uint, renderer: &SCNRenderer, )
SCNRenderer only.Invoked on the delegate to let it unbind program values and/or also unbind associated graphic resources (such as textures).
Parameter program: The program to unbind values for.
Parameter symbol: The name of the symbol to unbind a value for.
Parameter location: The location of the symbol within the program object to be modified.
Parameter programID: The program object.
Parameter renderer: The renderer that is currently rendering the scene.
Sourceunsafe fn program_handleError(&self, program: &SCNProgram, error: &NSError)
unsafe fn program_handleError(&self, program: &SCNProgram, error: &NSError)
Invoked on the delegate whenever a compilation error occurs.
Error domain is SCNErrorDomain.
Parameter program: The program that generated a compilation error.
Parameter error: The compilation error.
Sourceunsafe fn programIsOpaque(&self, program: &SCNProgram) -> bool
👎Deprecated: Use SCNProgram.opaque instead
unsafe fn programIsOpaque(&self, program: &SCNProgram) -> bool
The delegate should implement this mehod and return NO if the fragments generated by the program are not opaque.
Parameter program: The queried program.
This is deprecated. Use SCNProgram’s opaque property instead.