Added new Qt-based biome visualiser.
Compile with Qt 5.1+
This commit is contained in:
36
Tools/QtBiomeVisualiser/Chunk.cpp
Normal file
36
Tools/QtBiomeVisualiser/Chunk.cpp
Normal file
@@ -0,0 +1,36 @@
|
||||
#include "Globals.h"
|
||||
#include "Globals.h"
|
||||
#include "Chunk.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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user