MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / GetLuaTexture

Method GetLuaTexture

src/lua/LuaTextures.cpp:759–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757
758
759LuaTexture* LuaTextureMgr::GetLuaTexture(lua_State* L, int index) {
760 if (lua_getuserdataextra(L, index) != metaName) {
761 luaL_argerror(L, index, "expected Texture");
762 }
763 return (LuaTexture*)lua_touserdata(L, index);
764}
765
766
767//============================================================================//

Callers

nothing calls this directly

Calls 3

lua_getuserdataextraFunction · 0.85
luaL_argerrorFunction · 0.50
lua_touserdataFunction · 0.50

Tested by

no test coverage detected