summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/QtChunk.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-24 11:21:59 +0200
committermadmaxoft <github@xoft.cz>2014-09-24 11:21:59 +0200
commit34b83656b3dc0da7deb69851f6b8239e492d2862 (patch)
tree3715489f1b1372e43554a88ec866a8367052e07e /Tools/QtBiomeVisualiser/QtChunk.cpp
parentAnvil: Wolf collar color is a byte in Vanilla. (diff)
downloadcuberite-34b83656b3dc0da7deb69851f6b8239e492d2862.tar
cuberite-34b83656b3dc0da7deb69851f6b8239e492d2862.tar.gz
cuberite-34b83656b3dc0da7deb69851f6b8239e492d2862.tar.bz2
cuberite-34b83656b3dc0da7deb69851f6b8239e492d2862.tar.lz
cuberite-34b83656b3dc0da7deb69851f6b8239e492d2862.tar.xz
cuberite-34b83656b3dc0da7deb69851f6b8239e492d2862.tar.zst
cuberite-34b83656b3dc0da7deb69851f6b8239e492d2862.zip
Diffstat (limited to 'Tools/QtBiomeVisualiser/QtChunk.cpp')
-rw-r--r--Tools/QtBiomeVisualiser/QtChunk.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/Tools/QtBiomeVisualiser/QtChunk.cpp b/Tools/QtBiomeVisualiser/QtChunk.cpp
new file mode 100644
index 000000000..80109b2f8
--- /dev/null
+++ b/Tools/QtBiomeVisualiser/QtChunk.cpp
@@ -0,0 +1,35 @@
+#include "Globals.h"
+#include "QtChunk.h"
+
+
+
+
+
+Chunk::Chunk() :
+ m_IsValid(false)
+{
+}
+
+
+
+
+
+const uchar * Chunk::getImage(void) const
+{
+ ASSERT(m_IsValid);
+ return m_Image;
+}
+
+
+
+
+
+void Chunk::setImage(const Image & a_Image)
+{
+ memcpy(m_Image, a_Image, sizeof(a_Image));
+ m_IsValid = true;
+}
+
+
+
+