B.Render.BlendState()

Represent a blending state.

To get the object use pass.state(B.Render.State.BLEND).

METHODS:

pass()

Returns linked pass.

RETURNS:

default()

Resets to default values.

// equivalent to
state.const(B.Math.makeColor(0, 0, 0, 0));
state.src(B.Render.Blend.ONE);
state.dest(B.Render.Blend.ZERO);
state.eq(B.Render.BlendEq.ADD);
state.enabled(false);

RETURNS:

enabled(value)

Enables/disables the blending state.

PARAMETERS:

{boolean} value

RETURNS:

enabled()

Gets the blending state enable.

RETURNS:

{boolean}

const(color)

Sets blend constant color.

PARAMETERS:

{B.Math.Color} color

RETURNS:

const()

Gets blend constant color.

RETURNS:

src(factor)

Sets source blending factor.

PARAMETERS:

{B.Render.Blend} factor

RETURNS:

src()

Gets source blending factor.

RETURNS:

dest(factor)

Sets destination blending factor.

PARAMETERS:

{B.Render.Blend} factor

RETURNS:

dest()

Gets destination blending factor.

RETURNS:

eq(equation)

Sets blending equation.

PARAMETERS:

{B.Render.BlendEq} equation

RETURNS:

eq()

Gets blending equation.

RETURNS:

METHODS: