aboutsummaryrefslogtreecommitdiff
path: root/src/Bitmap.h
blob: 60a72bdcf8af6a2bdf3eca2f1adb0ccd38e3ff80 (plain) (blame)
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);
};