From cb7af3f4cac90f95926477b4001f9f80037568d5 Mon Sep 17 00:00:00 2001 From: Jun Zhang Date: Sun, 30 Jan 2022 12:30:02 +0800 Subject: refactor: adjust the project infra. (#1) * refactor: adjust the project infra. This patch adds cmake build system to the project, and adjust infrastructure stuff. Signed-off-by: Jun Zhang * fix: remove compiler flags that only exist in GCC. Signed-off-by: Jun Zhang --- bitmap.h | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 bitmap.h (limited to 'bitmap.h') diff --git a/bitmap.h b/bitmap.h deleted file mode 100644 index 76f2f7a..0000000 --- a/bitmap.h +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once - -#include - -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; -}; \ No newline at end of file -- cgit v1.2.3