diff src/modules/graphics/Graphics.cpp @ 1137:4296fccb2da4

Fix Issue #476: Add HDR Canvas (thanks, Alexander Szpakowski!). * Add `love.graphics.isSupported("hdrcanvas")' to query whether the hardware actually supports HDR canvases. * Add optional third argument to `love.graphics.newCanvas(w,h, type)', where `type' is one of "normal" or "hdr" and defaults to "normal". HDR canvases use floating point that can have values > 1 to store pixels, allowing for HDR rendering and other higher level lighting techniques when combined with pixel effects. * Add `canvas:getType()'.
author vrld <vrld@vrld.org>
date Thu, 11 Oct 2012 22:22:10 +0200
parents 1bd1670a04e1
children b757895d6ca2 448da0a19ddb
line wrap: on
line diff
--- a/src/modules/graphics/Graphics.cpp	Tue Oct 09 13:05:13 2012 -0400
+++ b/src/modules/graphics/Graphics.cpp	Thu Oct 11 22:22:10 2012 +0200
@@ -156,6 +156,7 @@
 StringMap<Graphics::Support, Graphics::SUPPORT_MAX_ENUM>::Entry Graphics::supportEntries[] =
 {
 	{ "canvas", Graphics::SUPPORT_CANVAS },
+	{ "hdrcanvas", Graphics::SUPPORT_HDR_CANVAS },
 	{ "pixeleffect", Graphics::SUPPORT_PIXELEFFECT },
 	{ "npot", Graphics::SUPPORT_NPOT },
 	{ "subtractive", Graphics::SUPPORT_SUBTRACTIVE },