Class: RGSS::Blend
- Inherits:
-
Object
- Object
- RGSS::Blend
- Defined in:
- lib/rgss/blend.rb
Constant Summary collapse
- ZERO =
0x0000
- ONE =
0x0001
- SRC_COLOR =
0x0300
- ONE_MINUS_SRC_COLOR =
0x0301
- DST_COLOR =
0x0306
- ONE_MINUS_DST_COLOR =
0x0307
- SRC_ALPHA =
0x0302
- ONE_MINUS_SRC_ALPHA =
0x0303
- DST_ALPHA =
0x0304
- ONE_MINUS_DST_ALPHA =
0x0305
- CONSTANT_COLOR =
0x8001
- ONE_MINUS_CONSTANT_COLOR =
0x8002
- CONSTANT_ALPHA =
0x8003
- ONE_MINUS_CONSTANT_ALPHA =
0x8004
- SRC_ALPHA_SATURATE =
0x0308
- SRC1_COLOR =
0x88F9
- ONE_MINUS_SRC1_COLOR =
0x88FA
- SRC1_ALPHA =
0x8589
- ONE_MINUS_SRC1_ALPHA =
0x88FB
- OP_ADD =
0x8006
- OP_SUBTRACT =
0x800A
- OP_REVERSE_SUBTRACT =
0x800B
- OP_MIN =
0x8007
- OP_MAX =
0x8008
Instance Attribute Summary collapse
-
#dst ⇒ Object
Returns the value of attribute dst.
-
#op ⇒ Object
Returns the value of attribute op.
-
#src ⇒ Object
Returns the value of attribute src.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(op, src, dst) ⇒ Blend
constructor
A new instance of Blend.
Constructor Details
#initialize(op, src, dst) ⇒ Blend
Returns a new instance of Blend.
36 37 38 39 40 |
# File 'lib/rgss/blend.rb', line 36 def initialize(op, src, dst) @op = op @src = src @dst = dst end |
Instance Attribute Details
#dst ⇒ Object
Returns the value of attribute dst.
34 35 36 |
# File 'lib/rgss/blend.rb', line 34 def dst @dst end |
#op ⇒ Object
Returns the value of attribute op.
32 33 34 |
# File 'lib/rgss/blend.rb', line 32 def op @op end |
#src ⇒ Object
Returns the value of attribute src.
33 34 35 |
# File 'lib/rgss/blend.rb', line 33 def src @src end |
Class Method Details
.default ⇒ Object
42 43 44 |
# File 'lib/rgss/blend.rb', line 42 def self.default new(OP_ADD, SRC_ALPHA, ONE_MINUS_SRC_ALPHA) end |