From 50084b0b3451328a4dfe6db65c78a225e9c8f288 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 6 Sep 2018 19:57:40 +0800 Subject: +bitmap --- src/lua/modules/graphics/texture.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/lua/modules/graphics/texture.cpp') 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 } }; -- cgit v1.1-26-g67d0