Add rasteriser_scene_t struct and render_scene function
This commit is contained in:
@@ -51,6 +51,14 @@ typedef struct {
|
||||
transform_t transform;
|
||||
} instance_t;
|
||||
|
||||
typedef struct {
|
||||
u64 instance_count;
|
||||
instance_t *instances;
|
||||
camera_t *camera;
|
||||
const mat3x4f_t *proj_matrix;
|
||||
} rasteriser_scene_t;
|
||||
|
||||
void render_scene(window_t *wnd, Arena *arena, const rasteriser_scene_t *scene);
|
||||
void render_instance(window_t *wnd, Arena *arena, mat3x4f_t proj_cam_mat,
|
||||
const instance_t *instance);
|
||||
void draw_wireframe_triangle(window_t *wnd, Arena *arena, triangle_t triangle);
|
||||
|
||||
Reference in New Issue
Block a user