Module RenderTexture-PIXI.Impl

let create: baseRenderTexture:Js.t(PIXI.BaseRenderTexture.#_t) => ?⁠frame:Js.t(PIXI.Rectangle.#_t) => unit => t;
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;

A short hand way of creating a render texture

see /bs-pixi/PIXI/RenderTexture-PIXI/#val-createOptions

for options RenderTexture.createOptions

parameter options

collection of options

let getFilterFrame: Js.t(_t) => Js.t(PIXI.Rectangle.#_t);

Stores sourceFrame when this texture is inside current filter stack. You can read it inside filters.

let setFilterFrame: Js.t(_t) => Js.t(PIXI.Rectangle.#_t) => unit;

Stores sourceFrame when this texture is inside current filter stack. You can read it inside filters.

let getValid: Js.t(_t) => bool;

This will let the renderer know if the texture is valid. If it's not then it cannot be rendered.

let setValid: Js.t(_t) => bool => unit;

This will let the renderer know if the texture is valid. If it's not then it cannot be rendered.

let resize: Js.t(_t) => width:float => height:float => ?⁠resizeBaseTexture:bool => unit => unit;

Resizes the RenderTexture

parameter width

The width to resize to.

parameter height

The height to resize to.

parameter resizeBaseTexture

Should the baseTexture.width and height values be resized as well?

let setResolution: Js.t(_t) => resolution:float => unit;

Changes the resolution of baseTexture, but does not change framebuffer size.

parameter resolution

The new resolution to apply to RenderTexture