When I use the same coordinates and dimensions for love.graphics.rectangle and love.graphics.setScissor, they don't match up. Is that a general problem, or am I missing something?
The general code I used to test this was
local lg=love.graphics
lg.rectangle('line',x,y,w,h)
lg.setScissor(x,y,w,h)
lg.rectangle('fill',x,y,w,h)
Difference between scissor and rectangle sizes.
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- slime
- Solid Snayke
- Posts: 3160
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Difference between scissor and rectangle sizes.
[wiki]love.graphics.setScissor[/wiki] isn't affected by graphics transformations (love.graphics.push/translate/rotate/scale/etc).
Re: Difference between scissor and rectangle sizes.
yup, that solved it. My bad.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests