mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-06 14:23:34 +00:00
rm lovr.texture.bind;
This commit is contained in:
parent
03c01cb97a
commit
047fe412eb
|
@ -1,12 +1,6 @@
|
||||||
#include "api/lovr.h"
|
#include "api/lovr.h"
|
||||||
#include "graphics/graphics.h"
|
#include "graphics/graphics.h"
|
||||||
|
|
||||||
int l_lovrTextureBind(lua_State* L) {
|
|
||||||
Texture* texture = luax_checktype(L, 1, Texture);
|
|
||||||
lovrGraphicsBindTexture(texture);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int l_lovrTextureGetDimensions(lua_State* L) {
|
int l_lovrTextureGetDimensions(lua_State* L) {
|
||||||
Texture* texture = luax_checktype(L, 1, Texture);
|
Texture* texture = luax_checktype(L, 1, Texture);
|
||||||
lua_pushnumber(L, lovrTextureGetWidth(texture));
|
lua_pushnumber(L, lovrTextureGetWidth(texture));
|
||||||
|
@ -75,7 +69,6 @@ int l_lovrTextureSetWrap(lua_State* L) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const luaL_Reg lovrTexture[] = {
|
const luaL_Reg lovrTexture[] = {
|
||||||
{ "bind", l_lovrTextureBind },
|
|
||||||
{ "getDimensions", l_lovrTextureGetDimensions },
|
{ "getDimensions", l_lovrTextureGetDimensions },
|
||||||
{ "getFilter", l_lovrTextureGetFilter },
|
{ "getFilter", l_lovrTextureGetFilter },
|
||||||
{ "getHeight", l_lovrTextureGetHeight },
|
{ "getHeight", l_lovrTextureGetHeight },
|
||||||
|
|
Loading…
Reference in a new issue