| 119 | // *********************************************************************** |
| 120 | |
| 121 | int LuaMatrixMode(lua_State* pLua) { |
| 122 | const char* matrixMode = luaL_checkstring(pLua, 1); |
| 123 | |
| 124 | EMatrixMode mode; |
| 125 | if (strcmp(matrixMode, "Model") == 0) |
| 126 | mode = EMatrixMode::Model; |
| 127 | else if (strcmp(matrixMode, "View") == 0) |
| 128 | mode = EMatrixMode::View; |
| 129 | else if (strcmp(matrixMode, "Projection") == 0) |
| 130 | mode = EMatrixMode::Projection; |
| 131 | MatrixMode(mode); |
| 132 | return 0; |
| 133 | } |
| 134 | |
| 135 | // *********************************************************************** |
| 136 |
nothing calls this directly
no test coverage detected