Refactor some of the code.
This commit is contained in:
@@ -8,7 +8,7 @@ typedef enum
|
||||
{
|
||||
PROGRESSIVE = 0,
|
||||
TILE_BASED = 1,
|
||||
} rendering_type_t;
|
||||
} rendering_mode_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -20,15 +20,14 @@ typedef struct
|
||||
uint32_t bucket_size;
|
||||
} rendering_config_t;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
scene_t* scene;
|
||||
render_target_t* render_target;
|
||||
const rendering_config_t* config;
|
||||
|
||||
rendering_type_t rendering_type;
|
||||
debug_flag_t rendering_flag;
|
||||
rendering_mode_t rendering_type;
|
||||
debug_flag_t debug_flag;
|
||||
bool is_done;
|
||||
} render_job_t;
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@ typedef struct
|
||||
light_collection_t lights;
|
||||
} scene_t;
|
||||
|
||||
|
||||
bool scene_init(scene_t* scene, uint64_t triangle_count, uint8_t material_count, uint32_t punctual_light_count);
|
||||
bool scene_build_bvh(scene_t* scene);
|
||||
void scene_free(scene_t* scene);
|
||||
|
||||
Reference in New Issue
Block a user