- [WIP] nova UI
This commit is contained in:
1 parent
6c205fb014
commit
dedd6b6285
4 files changed
+57
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user