import support of instance debug messages
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "utils/gryphn_error_code.h"
|
||||
#include "core/instance/gryphn_instance.h"
|
||||
|
||||
struct gnPlatformDebugger;
|
||||
struct gnPlatformDebugger_t;
|
||||
|
||||
typedef enum gnMessageSeverity_e {
|
||||
GN_MESSAGE_VERBOSE = 0x00000001,
|
||||
@@ -45,7 +45,7 @@ typedef struct gnDebuggerInfo_t {
|
||||
} gnDebuggerInfo;
|
||||
|
||||
typedef struct gnDebugger_t {
|
||||
struct gnPlatformDebugger* debugger;
|
||||
struct gnPlatformDebugger_t* debugger;
|
||||
gnInstance* instance;
|
||||
} gnDebugger;
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
#include <gryphn/gryphn_utils.h>
|
||||
#include "core/gryphn_rendering_api.h"
|
||||
|
||||
struct gnPlatformInstance;
|
||||
struct gnPlatformInstance_t;
|
||||
struct gnFunctions_t;
|
||||
struct gnDynamicLibrary_t;
|
||||
|
||||
@@ -17,7 +17,7 @@ typedef struct gnInstanceInfo_t {
|
||||
} gnInstanceInfo;
|
||||
|
||||
typedef struct gnInstance_t {
|
||||
struct gnPlatformInstance* instance;
|
||||
struct gnPlatformInstance_t* instance;
|
||||
gnBool valid;
|
||||
|
||||
struct gnFunctions_t* functions;
|
||||
|
@@ -8,7 +8,8 @@ typedef enum gnReturnCode_t {
|
||||
GN_FAILED_CREATE_INSTANCE,
|
||||
GN_FAILED_TO_CREATE_DEBUGGER,
|
||||
GN_FAILED_TO_CREATE_DEVICE,
|
||||
GN_FAILED_TO_ATTACH_WINDOW
|
||||
GN_FAILED_TO_ATTACH_WINDOW,
|
||||
GN_INVALID_INSTANCE
|
||||
|
||||
// GN_UNKNOWN_ERROR,
|
||||
// GN_UNKNOWN_FRAMEBUFFER_ATTACHMENT,
|
||||
@@ -37,5 +38,6 @@ static const char* gnErrorCodeToCString(enum gnReturnCode_t returnCode) {
|
||||
case GN_FAILED_CREATE_INSTANCE: return "GN_FAILED_CREATE_INSTANCE";
|
||||
case GN_FAILED_TO_CREATE_DEBUGGER: return "GN_FAILED_TO_CREATE_DEBUGGER";
|
||||
case GN_FAILED_TO_CREATE_DEVICE: return "GN_FAILED_TO_CREATE_DEVICE";
|
||||
case GN_INVALID_INSTANCE: return "GN_INVALID_INSTANCE";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user