summaryrefslogtreecommitdiff
path: root/bitmap.h
diff options
context:
space:
mode:
authorJun Zhang <jun@junz.org>2022-01-30 12:30:02 +0800
committerGitHub <noreply@github.com>2022-01-29 21:30:02 -0700
commitcb7af3f4cac90f95926477b4001f9f80037568d5 (patch)
tree022f4700c796a9935acd3ee0d0fd80a812a78464 /bitmap.h
parent99b4763f1028e72bb06d8db6c7e8ace469f8989c (diff)
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 <jun@junz.org> * fix: remove compiler flags that only exist in GCC. Signed-off-by: Jun Zhang <jun@junz.org>
Diffstat (limited to 'bitmap.h')
-rw-r--r--bitmap.h22
1 files changed, 0 insertions, 22 deletions
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 <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;
-}; \ No newline at end of file