start using the dispatcher

This commit is contained in:
Gregory Wells
2025-07-30 21:32:04 -04:00
parent d130fff385
commit 797191c2b6
12 changed files with 51 additions and 22 deletions

View File

@@ -5,6 +5,7 @@
#include "core/gryphn_return_code.h"
#include "core/src/instance/gryphn_debugger.h"
#include <gryphn_extensions.h>
#include "Dispatcher/dispatcher.h"
typedef struct gnApplicationInfo {
gnString applicationName;
@@ -26,14 +27,16 @@ typedef struct gnInstanceCreateInfo {
#include <loader/src/gryphn_loader.h>
struct gnInstance_t {
struct gnPlatformInstance_t* instance;
gnDebuggerCreateInfo debugger;
gnBool enabledExtensions[GN_EXT_MAX];
dispatcher dispatch;
loaderLayerArrayList layers;
loaderLayer* callingLayer;
uint32_t currentLayer;
gnBool enabledExtensions[GN_EXT_MAX];
gnBool hasDebugger;
gnDebuggerCreateInfo debugger;
};
#endif
gnReturnCode gnCreateInstance(gnInstanceHandle* instance, gnInstanceCreateInfo* info);
void gnDestroyInstance(gnInstanceHandle instance);
void gnDestroyInstance(gnInstanceHandle* instance);