From 07492726322079291f295b9324de72d64c4ab8a7 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Fri, 8 Aug 2014 00:56:52 -0300 Subject: [PATCH] Renamed love.graphics.drawStencil to love.graphics.stencil. --HG-- branch : stencil-functions --- src/modules/graphics/opengl/wrap_Graphics.cpp | 4 ++-- src/modules/graphics/opengl/wrap_Graphics.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/graphics/opengl/wrap_Graphics.cpp b/src/modules/graphics/opengl/wrap_Graphics.cpp index bda5aeae8..a9773643b 100644 --- a/src/modules/graphics/opengl/wrap_Graphics.cpp +++ b/src/modules/graphics/opengl/wrap_Graphics.cpp @@ -124,7 +124,7 @@ int w_getScissor(lua_State *L) return 4; } -int w_drawStencil(lua_State *L) +int w_stencil(lua_State *L) { luaL_checktype(L, 1, LUA_TFUNCTION); @@ -1420,7 +1420,7 @@ static const luaL_Reg functions[] = { "setScissor", w_setScissor }, { "getScissor", w_getScissor }, - { "drawStencil", w_drawStencil }, + { "stencil", w_stencil }, { "setStencilTest", w_setStencilTest }, { "getStencilTest", w_getStencilTest }, diff --git a/src/modules/graphics/opengl/wrap_Graphics.h b/src/modules/graphics/opengl/wrap_Graphics.h index 4fe6ec9a4..600cada39 100644 --- a/src/modules/graphics/opengl/wrap_Graphics.h +++ b/src/modules/graphics/opengl/wrap_Graphics.h @@ -48,7 +48,7 @@ int w_getHeight(lua_State *L); int w_getDimensions(lua_State *L); int w_setScissor(lua_State *L); int w_getScissor(lua_State *L); -int w_drawStencil(lua_State *L); +int w_stencil(lua_State *L); int w_setStencilTest(lua_State *L); int w_getStencilTest(lua_State *L); int w_newImage(lua_State *L);