MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / GetTextureSize

Method GetTextureSize

LuaSTGPlus/LuaWrapper.cpp:1020–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1018 return 1;
1019 }
1020 static int GetTextureSize(lua_State* L)LNOEXCEPT
1021 {
1022 const char* name = luaL_checkstring(L, 1);
1023 fcyVec2 size;
1024 if (!LRES.GetTextureSize(name, size))
1025 return luaL_error(L, "texture '%s' not found.", name);
1026 lua_pushnumber(L, size.x);
1027 lua_pushnumber(L, size.y);
1028 return 2;
1029 }
1030 static int RemoveResource(lua_State* L)LNOEXCEPT
1031 {
1032 ResourcePoolType t;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected