| 45 | // *********************************************************************** |
| 46 | |
| 47 | int LuaBeginObject3D(lua_State* pLua) { |
| 48 | const char* primitiveType = luaL_checkstring(pLua, 1); |
| 49 | |
| 50 | EPrimitiveType type; |
| 51 | if (strcmp(primitiveType, "Points") == 0) |
| 52 | type = EPrimitiveType::Points; |
| 53 | else if (strcmp(primitiveType, "Triangles") == 0) |
| 54 | type = EPrimitiveType::Triangles; |
| 55 | else if (strcmp(primitiveType, "Lines") == 0) |
| 56 | type = EPrimitiveType::Lines; |
| 57 | else if (strcmp(primitiveType, "LineStrip") == 0) |
| 58 | type = EPrimitiveType::LineStrip; |
| 59 | BeginObject3D(type); |
| 60 | return 0; |
| 61 | } |
| 62 | |
| 63 | // *********************************************************************** |
| 64 |
nothing calls this directly
no test coverage detected