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

Function PushVector

engine/script/src/script_vmath.cpp:2781–2787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2779 }
2780
2781 void PushVector(lua_State* L, FloatVector* v)
2782 {
2783 FloatVector** vp = (FloatVector**)lua_newuserdata(L, sizeof(FloatVector*));
2784 *vp = v;
2785 luaL_getmetatable(L, SCRIPT_TYPE_NAME_VECTOR);
2786 lua_setmetatable(L, -2);
2787 }
2788
2789 FloatVector* CheckVector(lua_State* L, int index)
2790 {

Callers 1

Vector_newFunction · 0.85

Calls 2

lua_newuserdataFunction · 0.85
lua_setmetatableFunction · 0.85

Tested by

no test coverage detected