diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-24 15:00:49 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-24 15:00:49 +0200 |
commit | 65077c314aa8dea94b37e0d22ced4a09850c8132 (patch) | |
tree | fa4c47cd2b299fd760f073dd9a9a66ea3b3a9f7a /Tools/QtBiomeVisualiser/QtChunk.cpp | |
parent | Merge branch 'master' into WorldLoader (diff) | |
parent | QtBiomeVisualiser: Fixed MSVC path-crossing. (diff) | |
download | cuberite-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.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; +} + + + + |