consistent versions arcoss all combos
This commit is contained in:
parent
e198e521d6
commit
788b5a0821
1 changed files with 10 additions and 2 deletions
|
@ -365,12 +365,20 @@ proc draw*(
|
||||||
) {.inline.} =
|
) {.inline.} =
|
||||||
image.drawCorrect(mask, translate(pos), blendMode)
|
image.drawCorrect(mask, translate(pos), blendMode)
|
||||||
|
|
||||||
proc draw*(a, b: Mask, mat = mat3(), blendMode = bmMask) =
|
proc draw*(a, b: Mask, mat: Mat3, blendMode = bmMask) =
|
||||||
a.drawCorrect(b, mat, blendMode)
|
a.drawCorrect(b, mat, blendMode)
|
||||||
|
|
||||||
proc draw*(mask: Mask, image: Image, mat = mat3(), blendMode = bmMask) =
|
proc draw*(a, b: Mask, pos = vec2(0, 0), blendMode = bmMask) {.inline.} =
|
||||||
|
a.draw(b, translate(pos), blendMode)
|
||||||
|
|
||||||
|
proc draw*(mask: Mask, image: Image, mat: Mat3, blendMode = bmMask) =
|
||||||
mask.drawCorrect(image, mat, blendMode)
|
mask.drawCorrect(image, mat, blendMode)
|
||||||
|
|
||||||
|
proc draw*(
|
||||||
|
mask: Mask, image: Image, pos = vec2(0, 0), blendMode = bmMask
|
||||||
|
) {.inline.} =
|
||||||
|
mask.draw(image, translate(pos), blendMode)
|
||||||
|
|
||||||
when defined(release):
|
when defined(release):
|
||||||
{.pop.}
|
{.pop.}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue