mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-16 17:01:53 +00:00
[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:
parent
6d7e1064ec
commit
1490379c04
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue