get image count and preferred surface format
This commit is contained in:
@@ -12,7 +12,8 @@ typedef enum gnReturnCode_t {
|
||||
GN_INVALID_INSTANCE,
|
||||
GN_DEBUGGER_EXISTS,
|
||||
GN_NO_SUPPORTED_FORMATS,
|
||||
GN_NO_SUPPORTED_PRESENT_MODES
|
||||
GN_NO_SUPPORTED_PRESENT_MODES,
|
||||
GN_UNKNOWN_IMAGE_FORMAT
|
||||
|
||||
// GN_UNKNOWN_ERROR,
|
||||
// GN_UNKNOWN_FRAMEBUFFER_ATTACHMENT,
|
||||
@@ -45,5 +46,6 @@ static const char* gnErrorCodeToCString(enum gnReturnCode_t returnCode) {
|
||||
case GN_DEBUGGER_EXISTS: return "GN_DEBUGGER_EXISTS";
|
||||
case GN_NO_SUPPORTED_FORMATS: return "GN_NO_SUPPORTED_FORMATS";
|
||||
case GN_NO_SUPPORTED_PRESENT_MODES: return "GN_NO_SUPPORTED_PRESENT_MODES";
|
||||
case GN_UNKNOWN_IMAGE_FORMAT: return "GN_UNKNOWN_IMAGE_FORMAT";
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include "stdint.h"
|
||||
|
||||
typedef struct gnVec2 {
|
||||
typedef struct gnVec2_t {
|
||||
union {
|
||||
struct { float a, b; };
|
||||
struct { float x, y; };
|
||||
@@ -28,7 +28,7 @@ typedef struct gnVec2 {
|
||||
typedef gnVec2 gnFVec2;
|
||||
typedef gnVec2 gnFloat2;
|
||||
|
||||
typedef struct gnUInt2 {
|
||||
typedef struct gnUInt2_t {
|
||||
union {
|
||||
struct { uint32_t a, b; };
|
||||
struct { uint32_t x, y; };
|
||||
@@ -52,7 +52,7 @@ typedef struct gnUInt2 {
|
||||
#endif
|
||||
} gnUInt2;
|
||||
|
||||
typedef struct gnInt2 {
|
||||
typedef struct gnInt2_t {
|
||||
union {
|
||||
struct { int a, b; };
|
||||
struct { int x, y; };
|
||||
|
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
typedef enum gnImageFormat_e {
|
||||
GN_FORMAT_NONE,
|
||||
GN_FORMAT_BGRA8_SRGB
|
||||
} gnImageFormat;
|
||||
|
||||
|
Reference in New Issue
Block a user