From 219559cf205310f903eebff2782d874d023125a5 Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Mon, 10 Apr 2017 00:41:48 +0200
Subject: [PATCH] add Window.SetComposeMethod

---
 pixelgl/window.go | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pixelgl/window.go b/pixelgl/window.go
index c998359..a84f1cf 100644
--- a/pixelgl/window.go
+++ b/pixelgl/window.go
@@ -381,6 +381,12 @@ func (w *Window) SetColorMask(c color.Color) {
 	w.canvas.SetColorMask(c)
 }
 
+// SetComposeMethod sets a Porter-Duff composition method to be used in the following draws onto
+// this Window.
+func (w *Window) SetComposeMethod(cmp pixel.ComposeMethod) {
+	w.canvas.SetComposeMethod(cmp)
+}
+
 // SetSmooth sets whether the stretched Pictures drawn onto this Window should be drawn smooth or
 // pixely.
 func (w *Window) SetSmooth(smooth bool) {
-- 
GitLab