summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/QtChunk.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-24 15:00:49 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-24 15:00:49 +0200
commit65077c314aa8dea94b37e0d22ced4a09850c8132 (patch)
treefa4c47cd2b299fd760f073dd9a9a66ea3b3a9f7a /Tools/QtBiomeVisualiser/QtChunk.cpp
parentMerge branch 'master' into WorldLoader (diff)
parentQtBiomeVisualiser: Fixed MSVC path-crossing. (diff)
downloadcuberite-65077c314aa8dea94b37e0d22ced4a09850c8132.tar
cuberite-65077c314aa8dea94b37e0d22ced4a09850c8132.tar.gz
cuberite-65077c314aa8dea94b37e0d22ced4a09850c8132.tar.bz2
cuberite-65077c314aa8dea94b37e0d22ced4a09850c8132.tar.lz
cuberite-65077c314aa8dea94b37e0d22ced4a09850c8132.tar.xz
cuberite-65077c314aa8dea94b37e0d22ced4a09850c8132.tar.zst
cuberite-65077c314aa8dea94b37e0d22ced4a09850c8132.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;
+}
+
+
+
+