summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/Chunk.cpp
blob: d3419af9c396deefa25f719e6acdf75c9627704a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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;
}