diff options
author | rexim <reximkut@gmail.com> | 2024-03-08 23:53:18 +0700 |
---|---|---|
committer | rexim <reximkut@gmail.com> | 2024-03-08 23:53:18 +0700 |
commit | 943af780e66da1a24253a34365c6d6aa96a22fec (patch) | |
tree | b1f293f7dd8c98de809ed1e805eeb3e330748b91 /raymath.ads |
Ready. Set. Go!
Diffstat (limited to 'raymath.ads')
-rw-r--r-- | raymath.ads | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/raymath.ads b/raymath.ads new file mode 100644 index 0000000..18be3fe --- /dev/null +++ b/raymath.ads @@ -0,0 +1,29 @@ +with Interfaces.C; use Interfaces.C; + +package Raymath is + type Vector2 is record + x: C_float; + y: C_float; + end record + with Convention => C_Pass_By_Copy; + function "+"(a, b: Vector2) return Vector2 + with + Import => True, + Convention => C, + External_Name => "Vector2Add"; + function "-"(a, b: Vector2) return Vector2 + with + Import => True, + Convention => C, + External_Name => "Vector2Subtract"; + function "*"(a, b: Vector2) return Vector2 + with + Import => True, + Convention => C, + External_Name => "Vector2Multiply"; + function "*"(v: Vector2; scale: C_float) return Vector2 + with + Import => True, + Convention => C, + External_Name => "Vector2Scale"; +end; |