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

Method reset_temporaries

src/lua/lua_environment.cpp:635–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635void LuaEnvironment::reset_temporaries()
636{
637 _num_vec3 = 0;
638 _num_quat = 0;
639 _num_mat4 = 0;
640
641#if CROWN_DEBUG
642 _vec3_marker = (uintptr_t)_random.integer(1 + LUA_VECTOR3_MARKER_MASK);
643 _quat_marker = (uintptr_t)_random.integer(1 + LUA_QUATERNION_MARKER_MASK);
644 _mat4_marker = (uintptr_t)_random.integer(1 + LUA_MATRIX4X4_MARKER_MASK);
645#endif
646}
647
648static void console_command_script(ConsoleServer &cs, u32 client_id, const char *json, void *user_data)
649{

Callers 1

frameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected