diff options
Diffstat (limited to 'src/Bitmap.h')
-rw-r--r-- | src/Bitmap.h | 9 |
1 files changed, 9 insertions, 0 deletions
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<iostream>
+#include<string>
+#include<chrono>
+
+#include<SFML/Graphics.hpp>
+
class Bitmap
{
public:
int width, height;
unsigned char *pixels;
+ sf::Image* image;
+ bool isLoaded;
+ std::chrono::duration<double> 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);
|