add basic window system
This commit is contained in:
parent
0ce34bd35c
commit
bc8308723b
2 changed files with 3 additions and 1 deletions
|
@ -15,3 +15,5 @@ function w.new(inner, x, y, w, h)
|
|||
local r = window.new(a, x, y, h, w)
|
||||
return r
|
||||
end
|
||||
|
||||
return w
|
||||
|
|
|
@ -22,7 +22,7 @@ function w.new(inner, x, y, w, h)
|
|||
|
||||
function r:draw()
|
||||
love.graphics.push()
|
||||
love.graphics.setTransform(self.transform)
|
||||
love.graphics.applyTransform(self.transform)
|
||||
inner:draw()
|
||||
love.graphics.pop()
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue