Added BMP file support.

- Now can load splash.bmp!
This commit is contained in:
dqs105
2020-08-28 12:23:52 +08:00
parent 7116ca3f91
commit 80f074b82f
3 changed files with 114 additions and 5 deletions

View File

@@ -61,6 +61,7 @@ public:
void draw_pixel(const ui::Point p, const ui::Color color);
void drawBMP(const ui::Point p, const uint8_t * bitmap, const bool transparency);
bool drawRAW(const ui::Point p, const std::string file);
bool drawBMP2(const ui::Point p, const std::string file);
void render_line(const ui::Point p, const uint8_t count, const ui::Color* line_buffer);
void render_box(const ui::Point p, const ui::Size s, const ui::Color* line_buffer);