summaryrefslogtreecommitdiffstats
path: root/BiomeVisualiser/Pixmap.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-03 21:37:13 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-03 21:37:13 +0100
commit2c214603e29f728804cd88522a1097de803ab321 (patch)
treea44010a49f1ef59b727982344c04aa8935d97564 /BiomeVisualiser/Pixmap.h
parentAdded a GetClassStatic function to all entities, as well as cFurnaceEntity, cChestEntity and cWorld (diff)
downloadcuberite-2c214603e29f728804cd88522a1097de803ab321.tar
cuberite-2c214603e29f728804cd88522a1097de803ab321.tar.gz
cuberite-2c214603e29f728804cd88522a1097de803ab321.tar.bz2
cuberite-2c214603e29f728804cd88522a1097de803ab321.tar.lz
cuberite-2c214603e29f728804cd88522a1097de803ab321.tar.xz
cuberite-2c214603e29f728804cd88522a1097de803ab321.tar.zst
cuberite-2c214603e29f728804cd88522a1097de803ab321.zip
Diffstat (limited to '')
-rw-r--r--BiomeVisualiser/Pixmap.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/BiomeVisualiser/Pixmap.h b/BiomeVisualiser/Pixmap.h
new file mode 100644
index 000000000..d0159a886
--- /dev/null
+++ b/BiomeVisualiser/Pixmap.h
@@ -0,0 +1,39 @@
+
+// Pixmap.h
+
+// Declares a cPixmap class that represents a RGB pixmap and allows simple operations on it
+
+#pragma once
+
+
+
+
+
+class cPixmap
+{
+public:
+ cPixmap(void);
+ cPixmap(int a_Width, int a_Height);
+ ~cPixmap();
+
+ void SetSize(int a_Width, int a_Height);
+
+ int GetWidth (void) const { return m_Width; }
+ int GetHeight(void) const { return m_Height; }
+
+ void SetPixel(int a_X, int a_Y, int a_Color);
+ int GetPixel(int a_X, int a_Y) const;
+ void Fill(int a_Color);
+
+ void DrawToDC(HDC a_DC, int a_OriginX, int a_OriginY);
+
+protected:
+ int m_Width;
+ int m_Height;
+ int m_Stride;
+ int * m_Pixels;
+} ;
+
+
+
+