summaryrefslogtreecommitdiff
path: root/Djup.Native/LibDjup.cs
diff options
context:
space:
mode:
authorJoel Stålnacke <joel@saker.fi>2024-10-13 14:32:14 +0300
committerJoel Stålnacke <joel@saker.fi>2024-10-13 14:32:14 +0300
commit11b2cfa087f5de09b97eb42fb219f563886f6d40 (patch)
tree215a8e65edc0b74a47da63a0c8230b8eadba060f /Djup.Native/LibDjup.cs
parent53a1cdf5bee2955995dfbf441f5354d1dcfc1e0c (diff)
Add libdjup logging
Diffstat (limited to 'Djup.Native/LibDjup.cs')
-rw-r--r--Djup.Native/LibDjup.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Djup.Native/LibDjup.cs b/Djup.Native/LibDjup.cs
index fece18a..0ecf7a8 100644
--- a/Djup.Native/LibDjup.cs
+++ b/Djup.Native/LibDjup.cs
@@ -16,6 +16,12 @@ public static partial class LibDjup
[LibraryImport(LibraryName, EntryPoint = Prefix + nameof(get_vec2))]
public static partial Vec2 get_vec2();
+ [LibraryImport(LibraryName, EntryPoint = Prefix + nameof(log_set_output))]
+ public static partial Vec2 log_set_output([MarshalAs(UnmanagedType.FunctionPtr)] LoggerDelegate logger);
+
+ [LibraryImport(LibraryName, EntryPoint = Prefix + nameof(log_set_level))]
+ public static partial Vec2 log_set_level(LogLevel minLevel);
+
[LibraryImport(LibraryName, EntryPoint = Prefix + nameof(world_create))]
public static partial IntPtr world_create();