Interface SCNSceneRendererDelegate

  • All Known Subinterfaces:
    ARSCNViewDelegate

    public interface SCNSceneRendererDelegate
    [@protocol] SCNSceneRendererDelegate Implement this protocol to perform operations at various times during the rendering
    • Method Detail

      • rendererDidApplyAnimationsAtTime

        default void rendererDidApplyAnimationsAtTime​(SCNSceneRenderer renderer,
                                                      double time)
        renderer:didApplyAnimationsAtTime: Invoked on the delegate once the scene renderer did apply the animations. All modifications done within this method don't go through the transaction model, they are directly applied on the presentation tree.
        Parameters:
        renderer - The renderer that did render the scene.
        time - The time at which the animations were applied.
      • rendererDidRenderSceneAtTime

        default void rendererDidRenderSceneAtTime​(SCNSceneRenderer renderer,
                                                  SCNScene scene,
                                                  double time)
        renderer:didRenderScene:atTime: Invoked on the delegate once the scene renderer did render the scene. Starting in 10.10 all modifications done within this method don't go through the transaction model, they are directly applied on the presentation tree.
        Parameters:
        renderer - The renderer that did render the scene.
        scene - The rendered scene.
        time - The time at which the scene was rendered.
      • rendererDidSimulatePhysicsAtTime

        default void rendererDidSimulatePhysicsAtTime​(SCNSceneRenderer renderer,
                                                      double time)
        renderer:didSimulatePhysicsAtTime: Invoked on the delegate once the scene renderer did simulate the physics. All modifications done within this method don't go through the transaction model, they are directly applied on the presentation tree.
        Parameters:
        renderer - The renderer that did render the scene.
        time - The time at which the physics were simulated.
      • rendererUpdateAtTime

        default void rendererUpdateAtTime​(SCNSceneRenderer renderer,
                                          double time)
        renderer:updateAtTime: Implement this to perform per-frame game logic. Called exactly once per frame before any animation and actions are evaluated and any physics are simulated. All modifications done within this method don't go through the transaction model, they are directly applied on the presentation tree.
        Parameters:
        renderer - The renderer that will render the scene.
        time - The time at which to update the scene.
      • rendererWillRenderSceneAtTime

        default void rendererWillRenderSceneAtTime​(SCNSceneRenderer renderer,
                                                   SCNScene scene,
                                                   double time)
        renderer:willRenderScene:atTime: Invoked on the delegate before the scene renderer renders the scene. At this point the openGL context and the destination framebuffer are bound. Starting in 10.10 all modifications done within this method don't go through the transaction model, they are directly applied on the presentation tree.
        Parameters:
        renderer - The renderer that will render the scene.
        scene - The scene to be rendered.
        time - The time at which the scene is to be rendered.
      • rendererDidApplyConstraintsAtTime

        default void rendererDidApplyConstraintsAtTime​(SCNSceneRenderer renderer,
                                                       double time)
        renderer:didApplyConstraintsAtTime: Invoked on the delegate once the scene renderer did apply the constraints. All modifications done within this method don't go through the transaction model, they are directly applied on the presentation tree.
        Parameters:
        renderer - The renderer that did render the scene.
        time - The time at which the constraints were simulated.