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

Method AddTexCoord

src/world/WorldScript.cpp:726–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724//============================================================================//
725
726int WorldScript::AddTexCoord(lua_State* L) {
727 LuaMesh* mesh = checkMesh(L, 1);
728 fvec2 txcd;
729 if (!lua_istable(L, 2)) {
730 txcd = luaL_checkfvec2(L, 2);
731 }
732 else {
733 txcd = fvec2(checkTableFloat(L, 2, 1),
734 checkTableFloat(L, 2, 2));
735 }
736 mesh->txcds.push_back(txcd);
737 return 0;
738}
739
740//============================================================================//
741

Callers

nothing calls this directly

Calls 3

luaL_checkfvec2Function · 0.85
checkTableFloatFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected