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

Function PushQuat

engine/script/src/script_vmath.cpp:2830–2836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2828 }
2829
2830 void PushQuat(lua_State* L, const Quat& q)
2831 {
2832 Quat* qp = (Quat*)lua_newuserdata(L, sizeof(Quat));
2833 *qp = q;
2834 luaL_getmetatable(L, SCRIPT_TYPE_NAME_QUAT);
2835 lua_setmetatable(L, -2);
2836 }
2837
2838 Quat* CheckQuat(lua_State* L, int index)
2839 {

Callers 15

Script_GetRotationFunction · 0.85
Script_GetWorldRotationFunction · 0.85
PropertiesToLuaTableFunction · 0.85
LuaPushVarFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
DDFToLuaValueFunction · 0.85
Quat_mulFunction · 0.85
Quat_newFunction · 0.85
Quat_FromToFunction · 0.85
Quat_AxisAngleFunction · 0.85
Quat_BasisFunction · 0.85

Calls 2

lua_newuserdataFunction · 0.85
lua_setmetatableFunction · 0.85

Tested by 5

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68