create staging buffer if GN_STATIC_DRAW

This commit is contained in:
Greg Wells
2025-06-06 13:38:11 -04:00
parent 64a12b5d42
commit ee1c2cdca2
3 changed files with 48 additions and 10 deletions

View File

@@ -7,9 +7,14 @@ typedef enum gnBufferType {
GN_VERTEX_BUFFER = 0x00000001
} gnBufferType;
typedef enum gnBufferUsage {
GN_STATIC_DRAW, GN_DYNAMIC_DRAW
} gnBufferUsage; // i love that OpenGL does this so im stealing it
typedef struct gnBufferInfo {
size_t size;
gnBufferType type;
gnBufferUsage usage;
} gnBufferInfo;
#ifdef GN_REVEAL_IMPL