Class: LiteRGSS::BlendMode

Inherits:
Object
  • Object
show all
Defined in:
LiteRGSS.rb

Overview

BlendMode applicable to a ShaderedSprite

Direct Known Subclasses

Shader

Constant Summary

Add =

Add equation : Pixel = Src * SrcFactor + Dst * DstFactor

sf::BlendMode::Equation::Add
Subtract =

Substract equation : Pixel = Src * SrcFactor - Dst * DstFactor

sf::BlendMode::Equation::Subtract
ReverseSubtract =

Reverse substract equation : Pixel = Dst * DstFactor - Src * SrcFactor.

sf::BlendMode::Equation::ReverseSubtract
Zero =

Zero factor : (0, 0, 0, 0)

sf::BlendMode::Factor::Zero
One =

One factor : (1, 1, 1, 1)

sf::BlendMode::Factor::One
SrcColor =

Src color factor : (src.r, src.g, src.b, src.a)

sf::BlendMode::Factor::SrcColor
OneMinusSrcColor =

One minus src color factor : (1, 1, 1, 1) - (src.r, src.g, src.b, src.a)

sf::BlendMode::Factor::OneMinusSrcColor
DstColor =

Dest color factor : (dst.r, dst.g, dst.b, dst.a)

sf::BlendMode::Factor::DstColor
OneMinusDstColor =

One minus dest color factor : (1, 1, 1, 1) - (dst.r, dst.g, dst.b, dst.a)

sf::BlendMode::Factor::OneMinusDstColor
SrcAlpha =

Src alpha factor : (src.a, src.a, src.a, src.a)

sf::BlendMode::Factor::SrcAlpha
OneMinusSrcAlpha =

One minus src alpha factor : (1, 1, 1, 1) - (src.a, src.a, src.a, src.a)

sf::BlendMode::Factor::OneMinusSrcAlpha
DstAlpha =

Dest alpha factor : (dst.a, dst.a, dst.a, dst.a)

sf::BlendMode::Factor::DstAlpha
OneMinusDstAlpha =

One minus dest alpha factor : (1, 1, 1, 1) - (dst.a, dst.a, dst.a, dst.a)

sf::BlendMode::Factor::OneMinusDstAlpha

Instance Attribute Summary collapse

Instance Attribute Details

#alpha_dest_factorInteger

Return the destination alpha factor

Returns:

  • (Integer)

#alpha_equationInteger

Return the alpha equation

Returns:

  • (Integer)

#alpha_src_factorInteger

Return the source alpha factor

Returns:

  • (Integer)

#blend_typeInteger

Set the RMXP blend_type : 0 = normal, 1 = addition, 2 = substraction

Returns:

  • (Integer)

#color_dest_factorInteger

Return the destination color factor

Returns:

  • (Integer)

#color_equationInteger

Return the color equation

Returns:

  • (Integer)

#color_src_factorInteger

Return the source color factor

Returns:

  • (Integer)