diff src/modules/graphics/Graphics.cpp @ 1399:fa3eabb3602a MRTs

Added MRT support to canvases via love.graphics.setCanvases(c1, c2, ...), and an 'effects' callback function in shaders. - Simultanious rendering to multiple canvases requires all canvases to be the same size (limitation of pre-GL3.0 framebuffers) - love.graphics.isSupported("mrtcanvas") was added - love_Canvases[n] (0-based array of active canvases) can be written to in pixel shaders in the 'effects' callback function - everything drawn to multiple canvases at once will be duplicated to all canvases if no shader is active or the standard 'effect' shader function is used
author Alex Szpakowski <slime73@gmail.com>
date Sun, 24 Mar 2013 02:20:15 -0300
parents 4a6e86ce7b7b
children bee3f7b0dca0
line wrap: on
line diff
--- a/src/modules/graphics/Graphics.cpp	Thu Mar 21 12:21:13 2013 -0300
+++ b/src/modules/graphics/Graphics.cpp	Sun Mar 24 02:20:15 2013 -0300
@@ -158,6 +158,7 @@
 {
 	{ "canvas", Graphics::SUPPORT_CANVAS },
 	{ "hdrcanvas", Graphics::SUPPORT_HDR_CANVAS },
+	{ "mrtcanvas", Graphics::SUPPORT_MRT_CANVAS },
 	{ "shader", Graphics::SUPPORT_SHADER },
 	{ "npot", Graphics::SUPPORT_NPOT },
 	{ "subtractive", Graphics::SUPPORT_SUBTRACTIVE },