| 724 | //============================================================================// |
| 725 | |
| 726 | int 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 |
nothing calls this directly
no test coverage detected