ICustomAnimationFrameRequester

Interface for any object that can request an animation frame

Hierarchy

  • ICustomAnimationFrameRequester

Index

Properties

Optional renderFunction

Find examples in Playground
renderFunction: Function

This function will be called when the render loop is ready. If this is not populated, the engine's renderloop function will be called

requestAnimationFrame

Find examples in Playground
requestAnimationFrame: Function

Called to request the next frame to render to

see

https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame

Optional requestID

Find examples in Playground
requestID: number

You can pass this value to cancelAnimationFrame() to cancel the refresh callback request

see

https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame#Return_value

Generated using TypeDoc