Page 1 of 1

Screen as one of multiple render targets?

Posted: Mon Jul 13, 2015 10:33 am
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.

Re: Screen as one of multiple render targets?

Posted: Mon Jul 13, 2015 12:35 pm
by slime
This is not possible in OpenGL, unfortunately.

Re: Screen as one of multiple render targets?

Posted: Mon Jul 13, 2015 2:29 pm
by Jorzi
Ok, thanks :)

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