readded support for screenshots - love.graphics.newScreenshot() returns ImageData that can be manipulated as one pleases

This commit is contained in:
bill@Ixion
2009-09-01 03:56:00 -05:00
parent b8677cebd0
commit cece5fe625
11 changed files with 475 additions and 364 deletions
+6 -1
View File
@@ -45,7 +45,12 @@ namespace image
if(luax_istype(L, 1, DATA_T))
{
Data * d = luax_checktype<Data>(L, 1, "Data", DATA_T);
ImageData * t = instance->newImageData(d);
ImageData * t;
try {
t = instance->newImageData(d);
} catch (love::Exception & e) {
return luaL_error(L, e.what());
}
luax_newtype(L, "ImageData", IMAGE_IMAGE_DATA_T, (void*)t);
return 1;
}