Commits

vrld committed 540acd5

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

Comments (0)

Files changed (2)

src/modules/graphics/opengl/wrap_Graphics.cpp

 		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))
 		return 0;
 	}
 
-	int w_getRenderTarget(lua_State * L)
+	int w_getCanvas(lua_State * L)
 	{
 		Canvas *canvas = Canvas::current;
 		if (canvas)
 		{ "getPointStyle", w_getPointStyle },
 		{ "getMaxPointSize", w_getMaxPointSize },
 		{ "newScreenshot", w_newScreenshot },
-		{ "setRenderTarget", w_setRenderTarget },
-		{ "getRenderTarget", w_getRenderTarget },
+		{ "setCanvas", w_setCanvas },
+		{ "getCanvas", w_getCanvas },
 
 		{ "setPixelEffect", w_setPixelEffect },
 

src/modules/graphics/opengl/wrap_Graphics.h

 	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);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.