mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
Rename love.graphics.[sg]etRenderTarget to love.graphics.[sg]etCanvas
This commit is contained in:
@@ -762,7 +762,7 @@ namespace opengl
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_setRenderTarget(lua_State * L)
|
||||
int w_setCanvas(lua_State * L)
|
||||
{
|
||||
// called with nil or none -> reset to default buffer
|
||||
if (lua_isnoneornil(L,1))
|
||||
@@ -778,7 +778,7 @@ namespace opengl
|
||||
return 0;
|
||||
}
|
||||
|
||||
int w_getRenderTarget(lua_State * L)
|
||||
int w_getCanvas(lua_State * L)
|
||||
{
|
||||
Canvas *canvas = Canvas::current;
|
||||
if (canvas)
|
||||
@@ -1253,8 +1253,8 @@ namespace opengl
|
||||
{ "getPointStyle", w_getPointStyle },
|
||||
{ "getMaxPointSize", w_getMaxPointSize },
|
||||
{ "newScreenshot", w_newScreenshot },
|
||||
{ "setRenderTarget", w_setRenderTarget },
|
||||
{ "getRenderTarget", w_getRenderTarget },
|
||||
{ "setCanvas", w_setCanvas },
|
||||
{ "getCanvas", w_getCanvas },
|
||||
|
||||
{ "setPixelEffect", w_setPixelEffect },
|
||||
|
||||
|
||||
@@ -89,8 +89,8 @@ namespace opengl
|
||||
int w_getPointStyle(lua_State * L);
|
||||
int w_getMaxPointSize(lua_State * L);
|
||||
int w_newScreenshot(lua_State * L);
|
||||
int w_setRenderTarget(lua_State * L);
|
||||
int w_getRenderTarget(lua_State * L);
|
||||
int w_setCanvas(lua_State * L);
|
||||
int w_getCanvas(lua_State * L);
|
||||
int w_setPixelEffect(lua_State * L);
|
||||
int w_isSupported(lua_State * L);
|
||||
int w_draw(lua_State * L);
|
||||
|
||||
Reference in New Issue
Block a user