| 757 | |
| 758 | |
| 759 | LuaTexture* 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 | //============================================================================// |
nothing calls this directly
no test coverage detected