MCPcopy Create free account
hub / github.com/defold/defold / CheckMatrix4

Function CheckMatrix4

engine/script/src/script_vmath.cpp:2856–2868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2854 }
2855
2856 Matrix4* CheckMatrix4(lua_State* L, int index)
2857 {
2858 Matrix4* m = (Matrix4*)CheckUserType(L, index, TYPE_HASHES[SCRIPT_TYPE_MATRIX4], 0);
2859 if (!CheckMatrix4Components(m))
2860 {
2861 luaL_error(L, "argument #%d contains one or more values which are not numbers: vmath.matrix4(%f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f)", index,
2862 m->getElem(0, 0), m->getElem(1, 0), m->getElem(2, 0), m->getElem(3, 0),
2863 m->getElem(0, 1), m->getElem(1, 1), m->getElem(2, 1), m->getElem(3, 1),
2864 m->getElem(0, 2), m->getElem(1, 2), m->getElem(2, 2), m->getElem(3, 2),
2865 m->getElem(0, 3), m->getElem(1, 3), m->getElem(2, 3), m->getElem(3, 3));
2866 }
2867 return m;
2868 }
2869}

Callers 15

LuaValueToDDFFunction · 0.85
Matrix4_mulFunction · 0.85
Matrix4_concatFunction · 0.85
Matrix4_newFunction · 0.85
InverseFunction · 0.85
OrthoInverseFunction · 0.85
Quat_Matrix4Function · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
RenderScript_DrawFunction · 0.85

Calls 4

CheckUserTypeFunction · 0.85
CheckMatrix4ComponentsFunction · 0.85
luaL_errorFunction · 0.85
getElemMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68