From 87351f2a8aaaad988b44e985ac5240af43d331e3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 Mar 2020 18:14:19 +0100 Subject: Add type and flags to world Unfortunately this is an API break, but there's no reasonable way to deprecate the old function and this is required for things to work correctly. The type will be used in following commits to tick the main loop and dispatch events correctly for either case. --- pugl/detail/implementation.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pugl/detail/implementation.h') diff --git a/pugl/detail/implementation.h b/pugl/detail/implementation.h index f363a30..2ad3f65 100644 --- a/pugl/detail/implementation.h +++ b/pugl/detail/implementation.h @@ -36,7 +36,8 @@ void puglSetBlob(PuglBlob* dest, const void* data, size_t len); void puglSetString(char** dest, const char* string); /** Allocate and initialise world internals (implemented once per platform) */ -PuglWorldInternals* puglInitWorldInternals(void); +PuglWorldInternals* +puglInitWorldInternals(PuglWorldType type, PuglWorldFlags flags); /** Destroy and free world internals (implemented once per platform) */ void puglFreeWorldInternals(PuglWorld* world); -- cgit v1.2.1