Screen as one of multiple render targets?

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
Jorzi
Prole
Posts: 11
Joined: Wed Mar 19, 2014 9:14 am

Screen as one of multiple render targets?

Post by Jorzi »

Hi

Since 0.9.1 you can render to multiple canvases at once using love.graphics.setCanvas( canvas1, canvas2, ... )
However, in order to draw directly to the screen, you need to use love.graphics.setCanvas( ) with zero arguments.

My question is: Is it possible to render to the screen and other canvases at the same time?
I already tried love.graphics.setCanvas( nil, canvas2, ... ) but it didn't work...
As a workaround I'm currently using one extra canvas, which I then render directly to the screen, but I find this a bit wasteful.
User avatar
slime
Solid Snayke
Posts: 3163
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Screen as one of multiple render targets?

Post by slime »

This is not possible in OpenGL, unfortunately.
Jorzi
Prole
Posts: 11
Joined: Wed Mar 19, 2014 9:14 am

Re: Screen as one of multiple render targets?

Post by Jorzi »

Ok, thanks :)

Good to know that it's an actual limitation an not just something I can't figure out
Post Reply

Who is online

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