From 9e7016e23471b7ba67598b5558c7fc7c528f1f2a Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 19 Feb 2021 17:28:33 +0100 Subject: Moved texture loading to `Bitmap` class. --- src/Bitmap.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Bitmap.h') diff --git a/src/Bitmap.h b/src/Bitmap.h index c4064ad..60a72bd 100644 --- a/src/Bitmap.h +++ b/src/Bitmap.h @@ -1,10 +1,19 @@ #include +#include +#include + +#include + class Bitmap { public: int width, height; unsigned char *pixels; + sf::Image* image; + bool isLoaded; + std::chrono::duration loadingTime; Bitmap(int width_, int height_); + Bitmap(std::string); ~Bitmap(); void fill(int r, int g, int b); void setPixel(int x, int y, int r, int g, int b); -- cgit v1.2.3