Class: LiteRGSS::BlendMode
Overview
BlendMode applicable to a ShaderedSprite
Constant Summary collapse
- 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
-
#alpha_dest_factor ⇒ Integer
Return the destination alpha factor.
-
#alpha_equation ⇒ Integer
Return the alpha equation.
-
#alpha_src_factor ⇒ Integer
Return the source alpha factor.
-
#blend_type ⇒ Integer
writeonly
Set the RMXP blend_type : 0 = normal, 1 = addition, 2 = substraction.
-
#color_dest_factor ⇒ Integer
Return the destination color factor.
-
#color_equation ⇒ Integer
Return the color equation.
-
#color_src_factor ⇒ Integer
Return the source color factor.
Instance Attribute Details
#alpha_dest_factor ⇒ Integer
Return the destination alpha factor
854 855 856 |
# File 'LiteRGSS.rb.yard.rb', line 854 def alpha_dest_factor @alpha_dest_factor end |
#alpha_equation ⇒ Integer
Return the alpha equation
858 859 860 |
# File 'LiteRGSS.rb.yard.rb', line 858 def alpha_equation @alpha_equation end |
#alpha_src_factor ⇒ Integer
Return the source alpha factor
852 853 854 |
# File 'LiteRGSS.rb.yard.rb', line 852 def alpha_src_factor @alpha_src_factor end |
#blend_type=(value) ⇒ Integer (writeonly)
Returns Set the RMXP blend_type : 0 = normal, 1 = addition, 2 = substraction.
860 861 862 |
# File 'LiteRGSS.rb.yard.rb', line 860 def blend_type=(value) @blend_type = value end |
#color_dest_factor ⇒ Integer
Return the destination color factor
850 851 852 |
# File 'LiteRGSS.rb.yard.rb', line 850 def color_dest_factor @color_dest_factor end |
#color_equation ⇒ Integer
Return the color equation
856 857 858 |
# File 'LiteRGSS.rb.yard.rb', line 856 def color_equation @color_equation end |
#color_src_factor ⇒ Integer
Return the source color factor
848 849 850 |
# File 'LiteRGSS.rb.yard.rb', line 848 def color_src_factor @color_src_factor end |