MCPcopy Create free account
hub / github.com/crownengine/crown / next_vector3

Method next_vector3

src/lua/lua_environment.cpp:517–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517Vector3 *LuaEnvironment::next_vector3(const Vector3 &v)
518{
519 CE_ASSERT(_num_vec3 < LUA_MAX_VECTOR3, "Maximum number of Vector3 reached");
520
521 Vector3 *vec3 = &(_vec3[_num_vec3++] = v);
522 uintptr_t ptr = (uintptr_t)(void *)vec3;
523#if CROWN_DEBUG
524 ptr |= _vec3_marker;
525#endif
526 return (Vector3 *)ptr;
527}
528
529Quaternion *LuaEnvironment::next_quaternion(const Quaternion &q)
530{

Callers 1

push_vector3Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected