summaryrefslogtreecommitdiff
path: root/Djup.Native/LibDjup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Djup.Native/LibDjup.cs')
-rw-r--r--Djup.Native/LibDjup.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Djup.Native/LibDjup.cs b/Djup.Native/LibDjup.cs
index 0ecf7a8..0b4a3db 100644
--- a/Djup.Native/LibDjup.cs
+++ b/Djup.Native/LibDjup.cs
@@ -16,6 +16,15 @@ public static partial class LibDjup
[LibraryImport(LibraryName, EntryPoint = Prefix + nameof(get_vec2))]
public static partial Vec2 get_vec2();
+ [LibraryImport(LibraryName, EntryPoint = Prefix + nameof(vec2_mul))]
+ public static partial Vec2 vec2_mul(Vec2 v, float scalar);
+
+ [LibraryImport(LibraryName, EntryPoint = Prefix + nameof(vec2_normal))]
+ public static partial Vec2 vec2_normal(Vec2 v);
+
+ [LibraryImport(LibraryName, EntryPoint = Prefix + nameof(vec2_length))]
+ public static partial float vec2_length(Vec2 v);
+
[LibraryImport(LibraryName, EntryPoint = Prefix + nameof(log_set_output))]
public static partial Vec2 log_set_output([MarshalAs(UnmanagedType.FunctionPtr)] LoggerDelegate logger);