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

Function LuaGetMatrix

source/bind_graphics.cpp:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163// ***********************************************************************
164
165int LuaGetMatrix(lua_State* pLua) {
166 Matrixf mat = GetMatrix();
167
168 UserData* pUserData = AllocUserData(pLua, Type::Float32, 4, 4);
169 memcpy((u8*)pUserData->pData, mat.m, 16*sizeof(f32));
170 return 1;
171}
172
173// ***********************************************************************
174

Callers

nothing calls this directly

Calls 2

GetMatrixFunction · 0.85
AllocUserDataFunction · 0.85

Tested by

no test coverage detected