| 515 | } |
| 516 | |
| 517 | Vector3 *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 | |
| 529 | Quaternion *LuaEnvironment::next_quaternion(const Quaternion &q) |
| 530 | { |