From 4f2aac7deec7e2350aacf38a1f753f704a42adec Mon Sep 17 00:00:00 2001 From: a Date: Mon, 30 Jun 2025 23:33:41 -0400 Subject: [PATCH] RGFXHUD5: function prototypes --- src/game/rgfx_hud.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/game/rgfx_hud.h b/src/game/rgfx_hud.h index 4ecff739..6ffa8f47 100644 --- a/src/game/rgfx_hud.h +++ b/src/game/rgfx_hud.h @@ -1,11 +1,17 @@ #pragma once +#include "types.h" + +#define RGFX_HUD_BUFFER_SIZE 128 +#define RGFX_HUD_LAYERS 3 + typedef enum { RGFX_BOX, RGFX_TEXT, RGFX_SPRITE, RGFX_SCISSOR, - RGFX_GFX + RGFX_GFX, + RGFX_END } RgfxType; typedef enum { @@ -50,3 +56,11 @@ typedef struct { void *parent; // parent RgfxHudData d; } RgfxHud; + +RgfxHud *rgfx_hud_create_box(RgfxHud *parent, s16 x, s16 y, s16 z, s16 sX, s16 sY); +RgfxHud *rgfx_hud_create_txt(RgfxHud *parent, s16 x, s16 y, s16 z, u8 font, char *c); +RgfxHud *rgfx_hud_create_sprite(RgfxHud *parent, s16 x, s16 y, s16 z, s16 sX, s16 sY, u8 fmt, Texture *sprite); +RgfxHud *rgfx_hud_create_scissor(RgfxHud *parent, s16 x, s16 y, s16 sX, s16 sY); +RgfxHud *rgfx_hud_create_gfx(RgfxHud *parent, s16 x, s16 y, s16 z, Gfx *gfx); + +void rgfx_hud_draw();