blob: 76f2f7a871fc44665af09cc2f72d988331bcc8d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <cstdint>
class Bitmap {
public:
Bitmap(int width, int height)
: width(width), height(height)
{
data = new uint32_t[width * height];
}
Bitmap(const char* image);
~Bitmap() { delete[] data; }
void clear(uint32_t colour);
void blit(Bitmap const& other, int x, int y, int xc, int yc, int w, int h);
uint32_t* data;
int width, height;
};
|