28 lines
981 B
C
28 lines
981 B
C
#pragma once
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
/**
|
|
* UI rendering API for game client.
|
|
* HUD, crosshair, room state overlays, username prompt.
|
|
*/
|
|
|
|
/* Username prompt (blocking) */
|
|
void suic_ui_username_prompt(char* outName, int maxLen);
|
|
|
|
/* HUD */
|
|
void suic_ui_draw_hud(int hp, int weapon, int mag, int reserve,
|
|
int medkits, int reloadTimeLeft);
|
|
|
|
/* Crosshair */
|
|
void suic_ui_draw_crosshair(int screenW, int screenH, float spread, bool scoped);
|
|
|
|
/* Room state overlay */
|
|
void suic_ui_draw_room_state(int screenW, int screenH, int state,
|
|
float countdown, const char* winnerName);
|
|
|
|
/* Nameplates */
|
|
void suic_ui_draw_nameplate(int screenW, int screenH, float worldX, float worldY, float worldZ,
|
|
const char* username, bool isLocalPlayer,
|
|
float camPosX, float camPosY, float camPosZ,
|
|
float camTargetX, float camTargetY, float camTargetZ);
|