[renderer] Add a debug_ui render function

The idea is the UI system can call into the renderer without knowing
anything about the renderer, and the renderer can do what it pleases to
create UI elements in the correct context (passes as a parameter).
This commit is contained in:
Bill Currie 2023-07-13 14:14:16 +09:00
parent 6d7e1064ec
commit 1490379c04

View file

@ -82,6 +82,7 @@ typedef struct vid_model_funcs_s {
struct tex_s;
struct font_s;
struct draw_charbuffer_s;
struct imui_ctx_s;
typedef void (*capfunc_t) (struct tex_s *screencap, void *data);
@ -115,7 +116,6 @@ typedef struct vid_render_funcs_s {
int (*Draw_AddFont) (struct font_s *font);
void (*Draw_Glyph) (int x, int y, int fontid, int glyphid, int c);
struct psystem_s *(*ParticleSystem) (void);
void (*R_Init) (void);
void (*R_ClearState) (void);
@ -141,6 +141,8 @@ typedef struct vid_render_funcs_s {
void (*capture_screen) (capfunc_t callback, void *data);
void (*debug_ui) (struct imui_ctx_s *imui_ctx);
vid_model_funcs_t *model_funcs;
} vid_render_funcs_t;