a7c9aee
9e7016e
1
2 3 4 5 6
7 8 9 10 11
12 13 14
15
16
17 18 19 20 21
#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); };