Equivalent to Quad:flip in 0.9.0?

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
masherman1970
Prole
Posts: 2
Joined: Sat Dec 28, 2013 1:37 am

Equivalent to Quad:flip in 0.9.0?

Post by masherman1970 »

Hello Eveybody,

I'm a complete newbie to Love and Lua (although I've been a professional c++ programmer for the last 17 years). Anyhow I'm going through the book "Love for Lua Game Programming" which appears to use a version of Love prior to 0.9.0 because its sample code has calls to Quad:flip. Now I'm using version 0.9.0 (in which Quad:flip has been removed) and have searched but am unable to find what to use in place of Quad:flip.

Any help is greatly appreciated!

thanks,
Marc
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Equivalent to Quad:flip in 0.9.0?

Post by bartbes »

A combination of [wiki]Quad:getViewport[/wiki] and [wiki]Quad:setViewport[/wiki], probably negating the width and/or height.
Alternatively, the quad can be flipped while drawn (using negative scale parameters).
masherman1970
Prole
Posts: 2
Joined: Sat Dec 28, 2013 1:37 am

Re: Equivalent to Quad:flip in 0.9.0?

Post by masherman1970 »

Thanks bartbes :-)
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Divinity, Semrush [Bot] and 12 guests