mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Moved anisotropic filtering to Image:setFilter(min, mag, anisotropy), added anisotropic filtering support to canvases and fonts
This commit is contained in:
@@ -101,6 +101,9 @@ int w_Canvas_setFilter(lua_State *L)
|
||||
|
||||
canvas->setFilter(f);
|
||||
|
||||
float anisotropy = (float) luaL_optnumber(L, 4, 1.0);
|
||||
canvas->setAnisotropy(anisotropy);
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
@@ -118,7 +121,9 @@ int w_Canvas_getFilter(lua_State *L)
|
||||
lua_pushstring(L, minstr);
|
||||
lua_pushstring(L, magstr);
|
||||
|
||||
return 2;
|
||||
lua_pushnumber(L, canvas->getAnisotropy());
|
||||
|
||||
return 3;
|
||||
}
|
||||
|
||||
int w_Canvas_setWrap(lua_State *L)
|
||||
|
||||
Reference in New Issue
Block a user