Module State-PIXI

class type _t = { ... }
type t = Js.t(_t);

This is a WebGL state, and is is passed The WebGL StateManager. Each mesh rendered may require WebGL to be in a different state. For example you may want different blend mode or to enable polygon offsets

module Impl: { ... };
include Impl;
let create: unit => t;
let getBlend: Js.t(_t) => bool;

Activates blending of the computed fragment color values

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

Activates blending of the computed fragment color values

let _getBlendMode: Js.t(_t) => int;
let _setBlendMode: Js.t(_t) => int => unit;
let getBlendMode: Js.t(_t) => PIXI.BLEND_MODES.t;

The blend mode to be applied when this state is set. Apply a value of PIXI.BLEND_MODES.NORMAL to reset the blend mode. Setting this mode to anything other than NO_BLEND will automatically switch blending on.

let setBlendMode: Js.t(_t) => PIXI.BLEND_MODES.t => unit;

The blend mode to be applied when this state is set. Apply a value of PIXI.BLEND_MODES.NORMAL to reset the blend mode. Setting this mode to anything other than NO_BLEND will automatically switch blending on.

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

Specifies whether or not front or back-facing polygons can be culled

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

Specifies whether or not front or back-facing polygons can be culled.

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

Activates culling of polygons

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

Activates culling of polygons

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

Activates depth comparisons and updates to the depth buffer

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

Activates depth comparisons and updates to the depth buffer

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

Activates adding an offset to depth values of polygon's fragments

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

Activates adding an offset to depth values of polygon's fragments

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

The polygon offset. Setting this property to anything other than 0 will automatically enable polygon offset fill

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

The polygon offset. Setting this property to anything other than 0 will automatically enable polygon offset fill