summaryrefslogblamecommitdiffstats
path: root/Tools/QtBiomeVisualiser/QtChunk.cpp
blob: 80109b2f8caf17f2e59272143c609f3e439e1b58 (plain) (tree)
1
2
                    
                    
































                                                  
#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;
}