Browse Source

Rename love.graphics.[sg]etRenderTarget to love.graphics.[sg]etCanvas

vrld 13 years ago
parent
commit
2b7da8ea27

+ 4 - 4
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 },
 

+ 2 - 2
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);