- [WIP] nova UI

This commit is contained in:
raimon@prometeo committed 2026-09-25 06:45:32 +02:00
1 parent 6c205fb014
commit dedd6b6285
4 files changed
+57 -2

No files matched your search

+3
View File
@@ -22,12 +22,15 @@ namespace ui
bool IsMouseInside(int x, int y, int w, int h);
void Clear(uint32_t color);
void DrawRect(int x, int y, int w, int h, uint32_t color);
void FillRect(int x, int y, int w, int h, uint32_t color);
void DrawLine(int x1, int y1, int x2, int y2, uint32_t color);
void DrawChar(int x, int y, char chr, uint32_t color=0xffffffff);
void DrawText(int x, int y, const char *text, uint32_t color);
void Present();
protected:
SDL_Window *win;
SDL_Renderer *ren;