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

Function PushVector4

engine/script/src/script_vmath.cpp:2812–2818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2810 }
2811
2812 void PushVector4(lua_State* L, const Vector4& v)
2813 {
2814 Vector4* vp = (Vector4*)lua_newuserdata(L, sizeof(Vector4));
2815 *vp = v;
2816 luaL_getmetatable(L, SCRIPT_TYPE_NAME_VECTOR4);
2817 lua_setmetatable(L, -2);
2818 }
2819
2820 Vector4* CheckVector4(lua_State* L, int index)
2821 {

Callers 15

PropertiesToLuaTableFunction · 0.85
LuaPushVarFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
DDFToLuaValueFunction · 0.85
Vector4_addFunction · 0.85
Vector4_subFunction · 0.85
Vector4_mulFunction · 0.85
Vector4_divFunction · 0.85
Vector4_unmFunction · 0.85
Matrix4_indexFunction · 0.85
Matrix4_mulFunction · 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