Applying rotation before scaling

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
emanevitaerc
Prole
Posts: 16
Joined: Sun Mar 13, 2016 7:21 am

Applying rotation before scaling

Post by emanevitaerc » Thu Oct 27, 2016 9:24 am

Is it possible to apply rotation to an image before scaling it? As far as I can tell,

Code: Select all

love.graphics.draw()
seems to apply effects in a rigid order, always scaling the image before rotating it. I want to draw an image the other way around; rotating it and then scaling. Is there any way to accomplish this?

User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Applying rotation before scaling

Post by s-ol » Thu Oct 27, 2016 9:54 am

emanevitaerc wrote:Is it possible to apply rotation to an image before scaling it? As far as I can tell,

Code: Select all

love.graphics.draw()
seems to apply effects in a rigid order, always scaling the image before rotating it. I want to draw an image the other way around; rotating it and then scaling. Is there any way to accomplish this?
https://love2d.org/wiki/love.graphics#Coordinate_System

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end

User avatar
emanevitaerc
Prole
Posts: 16
Joined: Sun Mar 13, 2016 7:21 am

Re: Applying rotation before scaling

Post by emanevitaerc » Thu Oct 27, 2016 11:07 am


Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], nequals30 and 7 guests