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: 17
Joined: Sun Mar 13, 2016 7:21 am

Applying rotation before scaling

Post by emanevitaerc »

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 »

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: 17
Joined: Sun Mar 13, 2016 7:21 am

Re: Applying rotation before scaling

Post by emanevitaerc »

Post Reply

Who is online

Users browsing this forum: No registered users and 173 guests