fix(camera): remove scissoring from the hump camera library used
This commit is contained in:
parent
443b8c0e1c
commit
fafaa3fe49
1 changed files with 0 additions and 4 deletions
|
@ -107,9 +107,6 @@ function camera:attach(x,y,w,h, noclip)
|
||||||
w,h = w or love.graphics.getWidth(), h or love.graphics.getHeight()
|
w,h = w or love.graphics.getWidth(), h or love.graphics.getHeight()
|
||||||
|
|
||||||
self._sx,self._sy,self._sw,self._sh = love.graphics.getScissor()
|
self._sx,self._sy,self._sw,self._sh = love.graphics.getScissor()
|
||||||
if not noclip then
|
|
||||||
love.graphics.setScissor(x,y,w,h)
|
|
||||||
end
|
|
||||||
|
|
||||||
local cx,cy = x+w/2, y+h/2
|
local cx,cy = x+w/2, y+h/2
|
||||||
love.graphics.push()
|
love.graphics.push()
|
||||||
|
@ -121,7 +118,6 @@ end
|
||||||
|
|
||||||
function camera:detach()
|
function camera:detach()
|
||||||
love.graphics.pop()
|
love.graphics.pop()
|
||||||
love.graphics.setScissor(self._sx,self._sy,self._sw,self._sh)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function camera:draw(...)
|
function camera:draw(...)
|
||||||
|
|
Loading…
Reference in a new issue