aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/texture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/modules/graphics/texture.cpp')
-rw-r--r--src/lua/modules/graphics/texture.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lua/modules/graphics/texture.cpp b/src/lua/modules/graphics/texture.cpp
index d1d187d..77a93b8 100644
--- a/src/lua/modules/graphics/texture.cpp
+++ b/src/lua/modules/graphics/texture.cpp
@@ -32,19 +32,6 @@ namespace lua
return 1;
}
- static int l_getPixel(lua_State* L)
- {
- TextureRef ref = checkTexture(L);
- int x = luax_checknumber(L, 2);
- int y = luax_checknumber(L, 3);
- color c = ref->getPixel(x, y);
- luax_pushnumber(L, c.rgba.r);
- luax_pushnumber(L, c.rgba.g);
- luax_pushnumber(L, c.rgba.b);
- luax_pushnumber(L, c.rgba.a);
- return 4;
- }
-
static int l_setAnchor(lua_State* L)
{
TextureRef ref = checkTexture(L);
@@ -74,7 +61,6 @@ namespace lua
{ "getWidth", l_getWidth },
{ "getHeight", l_getHeight },
{ "getSize", l_getSize },
- { "getPixel", l_getPixel },
{ "setAnchor", l_setAnchor },
{ 0, 0 }
};