aboutsummaryrefslogtreecommitdiff
path: root/source/Bitmap.h
diff options
context:
space:
mode:
authorMatejaMaric <matejamaricz@gmail.com>2019-07-09 00:26:42 +0200
committerMatejaMaric <matejamaricz@gmail.com>2019-07-09 00:26:42 +0200
commita7c9aeee1e68235af406e30654e4b2e5f0f7fda2 (patch)
tree492e4860bf17d196b5a79a83004aec217e69cf1e /source/Bitmap.h
downloaderender-a7c9aeee1e68235af406e30654e4b2e5f0f7fda2.tar.gz
erender-a7c9aeee1e68235af406e30654e4b2e5f0f7fda2.zip
First commit
Diffstat (limited to 'source/Bitmap.h')
-rw-r--r--source/Bitmap.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/Bitmap.h b/source/Bitmap.h
new file mode 100644
index 0000000..c4064ad
--- /dev/null
+++ b/source/Bitmap.h
@@ -0,0 +1,12 @@
+#include<iostream>
+class Bitmap
+{
+public:
+ int width, height;
+ unsigned char *pixels;
+ Bitmap(int width_, int height_);
+ ~Bitmap();
+ void fill(int r, int g, int b);
+ void setPixel(int x, int y, int r, int g, int b);
+};
+