41 lines
509 B
C
41 lines
509 B
C
|
#pragma once
|
||
|
|
||
|
typedef struct debug {
|
||
|
struct {
|
||
|
time_t data1;
|
||
|
} data_loader;
|
||
|
|
||
|
struct {
|
||
|
time_t geo;
|
||
|
time_t screen;
|
||
|
time_t text;
|
||
|
} render_mgr;
|
||
|
|
||
|
struct {
|
||
|
bool enabled;
|
||
|
camera_t fly;
|
||
|
transform_t transform;
|
||
|
} camera;
|
||
|
} debug_t;
|
||
|
|
||
|
debug_t* g_debug;
|
||
|
|
||
|
void
|
||
|
DEBUG_startup(void);
|
||
|
|
||
|
char*
|
||
|
DEBUG_load_shader(const char* path, size_t* size);
|
||
|
|
||
|
void
|
||
|
DEBUG_reload_shaders(render_mgr_t* in);
|
||
|
|
||
|
void
|
||
|
DEBUG_reload_data1(void);
|
||
|
|
||
|
void
|
||
|
DEBUG_camera_toggle(void);
|
||
|
|
||
|
void
|
||
|
DEBUG_camera_update(float dt, input_t input);
|
||
|
|