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

Function PushMatrix4

engine/script/src/script_vmath.cpp:2848–2854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2846 }
2847
2848 void PushMatrix4(lua_State* L, const Matrix4& m)
2849 {
2850 Matrix4* mp = (Matrix4*)lua_newuserdata(L, sizeof(Matrix4));
2851 *mp = m;
2852 luaL_getmetatable(L, SCRIPT_TYPE_NAME_MATRIX4);
2853 lua_setmetatable(L, -2);
2854 }
2855
2856 Matrix4* CheckMatrix4(lua_State* L, int index)
2857 {

Callers 15

Script_GetWorldTransformFunction · 0.85
LuaPushVarFunction · 0.85
DDFToLuaValueFunction · 0.85
Matrix4_mulFunction · 0.85
Matrix4_newFunction · 0.85
Matrix4_FrustumFunction · 0.85
Matrix4_LookAtFunction · 0.85
Matrix4_OrthographicFunction · 0.85
Matrix4_PerspectiveFunction · 0.85
Matrix4_QuatFunction · 0.85
Matrix4_AxisAngleFunction · 0.85

Calls 2

lua_newuserdataFunction · 0.85
lua_setmetatableFunction · 0.85

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68