Module Application-PIXI
class type _t = { ... }type t= Js.t(_t);Convenience class to create a new PIXI application. This class automatically creates the renderer, ticker and root container.
let createApplicationOptions: ?sharedTicker:bool => ?sharedLoader:bool => ?autoStart:bool => ?width:float => ?height:float => ?view:Webapi.Dom.HtmlElement.t => ?transparent:bool => ?antialias:bool => ?preserveDrawingBuffer:bool => ?resolution:float => ?forceCanvas:bool => ?backgroundColor:int => ?clearBeforeRender:bool => ?roundPixels:bool => ?forceFXAA:bool => ?legacy:bool => unit => Js.t({. sharedTicker: Js.undefined(bool), sharedLoader: Js.undefined(bool), autoStart: Js.undefined(bool), width: Js.undefined(float), height: Js.undefined(float), view: Js.undefined(Webapi.Dom.HtmlElement.t), transparent: Js.undefined(bool), antialias: Js.undefined(bool), preserveDrawingBuffer: Js.undefined(bool), resolution: Js.undefined(float), forceCanvas: Js.undefined(bool), backgroundColor: Js.undefined(int), clearBeforeRender: Js.undefined(bool), roundPixels: Js.undefined(bool), forceFXAA: Js.undefined(bool), legacy: Js.undefined(bool), });let registerPlugin: Js.t({.. init: Js.t(_t) => unit, destroy: Js.t(_t) => unit, }) => unit;Register a middleware plugin for the application
module Impl: { ... };include Impl;
let _create: ?options:'a => unit => t;
let create: ?options:Js.t({. antialias: Js.undefined(bool), autoStart: Js.undefined(bool), backgroundColor: Js.undefined(int), clearBeforeRender: Js.undefined(bool), forceCanvas: Js.undefined(bool), forceFXAA: Js.undefined(bool), height: Js.undefined(float), legacy: Js.undefined(bool), preserveDrawingBuffer: Js.undefined(bool), resolution: Js.undefined(float), roundPixels: Js.undefined(bool), sharedLoader: Js.undefined(bool), sharedTicker: Js.undefined(bool), transparent: Js.undefined(bool), view: Js.undefined(Webapi.Dom.HtmlElement.t), width: Js.undefined(float), }) => unit => t;
let getLoader: Js.t(_t) => Js.t(PIXI.Loader.#_t);Loader instance to help with asset loading.
let setLoader: Js.t(_t) => Js.t(PIXI.Loader.#_t) => unit;Loader instance to help with asset loading.
let getRenderer: Js.t(_t) => Js.t(PIXI.AbstractRenderer.#_t);WebGL renderer if available, otherwise CanvasRenderer.
let setRenderer: Js.t(_t) => Js.t(PIXI.AbstractRenderer.#_t) => unit;WebGL renderer if available, otherwise CanvasRenderer.
let getResizeToWindow: Js.t(_t) => Webapi.Dom.Window.t;The window to resize the application to.
let getResizeToElement: Js.t(_t) => Webapi.Dom.Element.t;The element to resize the application to.
let setResizeTo: Js.t(_t) => [ `Window(Webapi.Dom.Window.t) | `Element(Webapi.Dom.Element.t) ] => unit;The window or element to resize the application to.
let getScreen: Js.t(_t) => PIXI.Rectangle.t;Reference to the renderer's screen rectangle. Its safe to use as filterArea or hitArea for the whole screen.
let setStage: Js.t(_t) => Js.t(PIXI.C.#container) => unit;The root display container that's rendered.
let getTicker: Js.t(_t) => Js.t(PIXI.Ticker.#_t);Ticker for doing render updates.
let setTicker: Js.t(_t) => Js.t(PIXI.Ticker.#_t) => unit;Ticker for doing render updates.
let getView: Js.t(_t) => Webapi.Dom.HtmlElement.t;Reference to the renderer's canvas element.
let _destroy: Js.t(_t) => ?removeView:bool => ?stageOptions:'a => unit => unit;
let destroy: Js.t(_t) => ?removeView:bool => ?stageOptions:Js.t({. baseTexture: Js.undefined(bool), children: Js.undefined(bool), texture: Js.undefined(bool), }) => unit => unit;Destroy and don't use after this.
let render: Js.t(_t) => unit;Render the current stage.
let resize: Js.t(_t) => unit;If resizeTo is set, calling this function will resize to the width and height of that element.
let start: Js.t(_t) => unit;Convenience method for starting the render.
let stop: Js.t(_t) => unit;Convenience method for stopping the render.