Add DrawBitmapTable to Canvas class

This commit is contained in:
scawful
2023-07-09 10:35:44 -04:00
parent 931560cfb1
commit 585413e6d6
2 changed files with 16 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ namespace yaze {
namespace gui {
using app::gfx::Bitmap;
using app::gfx::BitmapTable;
class Canvas {
public:
@@ -29,6 +30,7 @@ class Canvas {
void DrawBitmap(const Bitmap& bitmap, int border_offset = 0,
bool ready = true);
void DrawBitmap(const Bitmap& bitmap, int x_offset, int y_offset);
void DrawBitmapTable(const BitmapTable gfx_bin);
void DrawOutline(int x, int y, int w, int h);
void DrawRect(int x, int y, int w, int h, ImVec4 color);
void DrawText(std::string text, int x, int y);