diff options
| author | gingerBill <bill@gingerbill.org> | 2018-05-20 17:39:49 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-05-20 17:39:49 +0100 |
| commit | 718b80ba398b8980c37f79dded101bcf20d187d2 (patch) | |
| tree | c097af84ff567e4841f0a61fc886e23572e6758f /core/math.odin | |
| parent | 4d052d5119653c80f4c7b7c6695256e0540a55a5 (diff) | |
Fix demo for removing default struct values
Diffstat (limited to 'core/math.odin')
| -rw-r--r-- | core/math.odin | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/math.odin b/core/math.odin index 53592b8b7..c67cc731b 100644 --- a/core/math.odin +++ b/core/math.odin @@ -23,7 +23,10 @@ Mat2 :: distinct [2][2]f32; Mat3 :: distinct [3][3]f32; Mat4 :: distinct [4][4]f32; -Quat :: struct {x, y, z: f32, w: f32 = 1}; +Quat :: struct {x, y, z, w: f32}; + +QUAT_IDENTITY := Quat{x = 0, y = 0, z = 0, w = 1}; + @(default_calling_convention="c") foreign __llvm_core { |