diff --git a/src/modules/graphics/opengl/wrap_Graphics.cpp b/src/modules/graphics/opengl/wrap_Graphics.cpp index 5b7b7866b..7c86b610b 100644 --- a/src/modules/graphics/opengl/wrap_Graphics.cpp +++ b/src/modules/graphics/opengl/wrap_Graphics.cpp @@ -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 }, diff --git a/src/modules/graphics/opengl/wrap_Graphics.h b/src/modules/graphics/opengl/wrap_Graphics.h index 7759d5def..4e0b8b2d0 100644 --- a/src/modules/graphics/opengl/wrap_Graphics.h +++ b/src/modules/graphics/opengl/wrap_Graphics.h @@ -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);