Renamed love.graphics.getMaxImageSize to love.graphics.getMaxTextureSize (old function is still there, but deprecated.)

This commit is contained in:
Alex Szpakowski
2014-01-09 22:18:37 -04:00
parent 6fcebf69e4
commit c64b3d2527
4 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -316,7 +316,7 @@ void Graphics::discardStencil()
glDisable(GL_STENCIL_TEST);
}
int Graphics::getMaxImageSize() const
int Graphics::getMaxTextureSize() const
{
return gl.getMaxTextureSize();
}
+2 -3
View File
@@ -187,10 +187,9 @@ public:
void discardStencil();
/**
* Gets the maximum supported width or height of Images and Canvases on this
* system.
* Gets the maximum supported width or height of Textures on this system.
**/
int getMaxImageSize() const;
int getMaxTextureSize() const;
/**
* Creates an Image object with padding and/or optimization.
@@ -135,9 +135,9 @@ int w_setInvertedStencil(lua_State *L)
return setStencil(L, true);
}
int w_getMaxImageSize(lua_State *L)
int w_getMaxTextureSize(lua_State *L)
{
lua_pushinteger(L, instance->getMaxImageSize());
lua_pushinteger(L, instance->getMaxTextureSize());
return 1;
}
@@ -1339,7 +1339,7 @@ static const luaL_Reg functions[] =
{ "getPointSize", w_getPointSize },
{ "getPointStyle", w_getPointStyle },
{ "getMaxPointSize", w_getMaxPointSize },
{ "getMaxImageSize", w_getMaxImageSize },
{ "getMaxTextureSize", w_getMaxTextureSize },
{ "newScreenshot", w_newScreenshot },
{ "setCanvas", w_setCanvas },
{ "getCanvas", w_getCanvas },
@@ -1382,6 +1382,9 @@ static const luaL_Reg functions[] =
{ "shear", w_shear },
{ "origin", w_origin },
// Deprecated since 0.9.1.
{ "getMaxImageSize", w_getMaxTextureSize },
{ 0, 0 }
};
+1 -1
View File
@@ -50,7 +50,7 @@ int w_setScissor(lua_State *L);
int w_getScissor(lua_State *L);
int w_setStencil(lua_State *L);
int w_setInvertedStencil(lua_State *L);
int w_getMaxImageSize(lua_State *L);
int w_getMaxTextureSize(lua_State *L);
int w_newImage(lua_State *L);
int w_newQuad(lua_State *L);
int w_newFont(lua_State *L);