Interface ICustomAnimationFrameRequester
interface ICustomAnimationFrameRequester {
cancelAnimationFrame?: Function;
renderFunction?: Function;
requestAnimationFrame: Function;
requestID?: number;
}
cancelAnimationFrame?: Function;
renderFunction?: Function;
requestAnimationFrame: Function;
requestID?: number;
}
Index
Properties
Optionalcancel Animation Frame
cancelAnimationFrame?: Function
Called to cancel the next frame request
Optionalrender Function
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
request Animation Frame
requestAnimationFrame: Function
Called to request the next frame to render to
Optionalrequest ID
requestID?: number
You can pass this value to cancelAnimationFrame() to cancel the refresh callback request
Interface for any object that can request an animation frame