diff options
author | madmaxoft <github@xoft.cz> | 2014-09-24 11:21:59 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-09-24 11:21:59 +0200 |
commit | 34b83656b3dc0da7deb69851f6b8239e492d2862 (patch) | |
tree | 3715489f1b1372e43554a88ec866a8367052e07e /Tools/QtBiomeVisualiser/QtChunk.cpp | |
parent | Anvil: Wolf collar color is a byte in Vanilla. (diff) | |
download | cuberite-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.cpp | 35 |
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; +} + + + + |