Module BaseRenderTexture-PIXI.Impl
let _createOptions: ?width:float => ?height:float => ?scaleMode:int => ?resolution:float => unit => Js.t({. width: Js.undefined(float), height: Js.undefined(float), scaleMode: Js.undefined(int), resolution: Js.undefined(float), });
let createOptions: ?width:float => ?height:float => ?scaleMode:PIXI.SCALE_MODES.t => ?resolution:float => unit => Js.t({. height: Js.undefined(float), resolution: Js.undefined(float), scaleMode: Js.undefined(int), width: Js.undefined(float), });create collection of options for base render texture creation
- parameter width
The width of the render texture
- parameter height
The height of the render texture
- parameter scaleMode
- parameter resolution
The resolution / device pixel ratio of the texture being generated
let _create: ?options:'a => unit => t;
let create: ?options:Js.t({. height: Js.undefined(float), resolution: Js.undefined(float), scaleMode: Js.undefined(int), width: Js.undefined(float), }) => unit => t;creates a new base render texture
- see /bs-pixi/PIXI/BaseRenderTexture-PIXI/#val-createOptions
for options BaseRenderTexture.createOptions
- parameter options
collection of options
let getFilterStack: Js.t(_t) => array(Js.t({.. }));The data structure for the filters
let setFilterStack: Js.t(_t) => array(Js.t({.. })) => unit;The data structure for the filters
let getMaskStack: Js.t(_t) => array(Js.t(PIXI.MaskData.#_t));The data structure for the stencil masks.
let setMaskStack: Js.t(_t) => array(Js.t(PIXI.MaskData.#_t)) => unit;The data structure for the stencil masks.
let destroy: Js.t(_t) => unit;Destroys the texture
let dispose: Js.t(_t) => unit;Frees the texture and framebuffer from WebGL memory without destroying this texture object. This means you can still use the texture later which will upload it to GPU memory again.
let resize: Js.t(_t) => width:float => height:float => unit;Resizes the BaseRenderTexture
- parameter width
The width to resize to
- parameter height
The height to resize to