Package apple.scenekit.protocol
Interface SCNNodeRendererDelegate
-
public interface SCNNodeRendererDelegate[@category] NSObject (SCNNodeRendererDelegate) The SCNNodeRendererDelegate protocol declares the methods that an instance of SCNNode invokes to let a delegate customize its rendering.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidrenderNodeRendererArguments(SCNNode node, SCNRenderer renderer, NSDictionary<java.lang.String,?> arguments)renderNode:renderer:arguments: Invoked when a node is rendered.
-
-
-
Method Detail
-
renderNodeRendererArguments
default void renderNodeRendererArguments(SCNNode node, SCNRenderer renderer, NSDictionary<java.lang.String,?> arguments)
renderNode:renderer:arguments: Invoked when a node is rendered. The preferred way to customize the rendering is to tweak the material properties of the different materials of the node's geometry. SCNMaterial conforms to the SCNShadable protocol and allows for more advanced rendering using GLSL. You would typically use a renderer delegate with a node that has no geometry and only serves as a location in space. An example would be attaching a particle system to that node and render it with custom OpenGL code. Only drawing calls and the means to achieve them are supposed to be performed during the renderer delegate callback, any changes in the model (nodes, geometry...) would involve unexpected results.- Parameters:
node- The node to render.renderer- The scene renderer to render into.arguments- A dictionary whose values are SCNMatrix4 matrices wrapped in NSValue objects.
-
-