MCPcopy Create free account
hub / github.com/DavidColson/Polybox / LuaMatrixMode

Function LuaMatrixMode

source/bind_graphics.cpp:121–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119// ***********************************************************************
120
121int 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

Callers

nothing calls this directly

Calls 1

MatrixModeFunction · 0.85

Tested by

no test coverage detected