summaryrefslogtreecommitdiffhomepage
path: root/not/Layer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'not/Layer.lua')
-rw-r--r--not/Layer.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/not/Layer.lua b/not/Layer.lua
index db16175..63c38ac 100644
--- a/not/Layer.lua
+++ b/not/Layer.lua
@@ -5,6 +5,10 @@ function Layer:new (width, height)
self.canvas = love.graphics.newCanvas(width, height)
end
+function Layer:delete ()
+ self.canvas = nil
+end
+
--- Sets this layer as current canvas for drawing with love.graphics functions.
-- @return old canvas used by love
function Layer:setAsCanvas ()