diff options
author | chai <chaifix@163.com> | 2018-09-06 19:57:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-06 19:57:40 +0800 |
commit | 50084b0b3451328a4dfe6db65c78a225e9c8f288 (patch) | |
tree | 020e5b6c834b792aada4cd23cd2551a6b81c22dc /src/lua/modules/graphics/texture.cpp | |
parent | 7281a70b1e38fc2bdfb2d4b6d8f7daf7ceedbd1a (diff) |
+bitmap
Diffstat (limited to 'src/lua/modules/graphics/texture.cpp')
-rw-r--r-- | src/lua/modules/graphics/texture.cpp | 14 |
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 } }; |