Added rect draw api
Added some new maths types Updated shaders to use new D_Rect structure Added rect buffers to frames Misc cleanup
This commit is contained in:
@@ -1,20 +1,6 @@
|
||||
#if !defined(LD_GAME_CORE_H_)
|
||||
#define LD_GAME_CORE_H_
|
||||
|
||||
typedef struct G_Vertex G_Vertex;
|
||||
struct G_Vertex {
|
||||
F32 x, y, z, w;
|
||||
F32 u, v;
|
||||
U32 c;
|
||||
U32 pad;
|
||||
};
|
||||
|
||||
typedef struct G_Image G_Image;
|
||||
struct G_Image {
|
||||
Str8 name;
|
||||
Vk_Image image;
|
||||
};
|
||||
|
||||
typedef struct G_Camera G_Camera;
|
||||
struct G_Camera {
|
||||
V3f x, y, z;
|
||||
@@ -30,19 +16,10 @@ typedef struct G_State G_State;
|
||||
struct G_State {
|
||||
M_Arena *arena;
|
||||
|
||||
U32 n_images;
|
||||
G_Image *images;
|
||||
|
||||
U32 n_pipelines;
|
||||
Vk_Pipeline *pipelines;
|
||||
|
||||
Vk_Buffer vbo;
|
||||
|
||||
D_Context draw;
|
||||
G_Camera camera;
|
||||
};
|
||||
|
||||
|
||||
|
||||
function void G_ImagesLoad(G_State *game);
|
||||
function void G_PipelinesLoad(G_State *game);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user