Added antialiasing (MSAA) support to Canvases via a new optional parameter. Added Canvas:getFSAA.

This commit is contained in:
Alex Szpakowski
2014-01-27 01:31:41 -04:00
parent 10f1e23931
commit 7556fde5e6
21 changed files with 321 additions and 54 deletions
@@ -120,6 +120,13 @@ int w_Canvas_getType(lua_State *L)
return 1;
}
int w_Canvas_getFSAA(lua_State *L)
{
Canvas *canvas = luax_checkcanvas(L, 1);
lua_pushinteger(L, canvas->getFSAA());
return 1;
}
static const luaL_Reg functions[] =
{
// From wrap_Texture.
@@ -136,6 +143,7 @@ static const luaL_Reg functions[] =
{ "getPixel", w_Canvas_getPixel },
{ "clear", w_Canvas_clear },
{ "getType", w_Canvas_getType },
{ "getFSAA", w_Canvas_getFSAA },
{ 0, 0 }
};