org.rajawali3d.scene / ASceneFrameCallback

ASceneFrameCallback

abstract class ASceneFrameCallback
abstract class ASceneFrameCallback

Abstract class for receiving frame callbacks from Scene. The timing of this interface assumes that the rendering time does not affect the timing of operations before and after the frame. Pre- and Post- operations are provided because of how these tie in with the animation system. Pre- tasks will be executed prior to animation updates. Post- tasks will be executed after all drawing has occurred. #callPreFrame() and #callPostFrame() frame exist to simplify interfacing to Rajawali's frame task system. By default they both return false, signalling that the callback should be ignored by the scene. Implementing classes must override these methods to return true as appropriate for the tasks they are handling.

Author
Jared Woolston (jwoolston@tenkiv.com)