2014-09-13 19:32:00 -04:00
|
|
|
#include "Globals.h"
|
2014-09-24 05:21:59 -04:00
|
|
|
#include "QtChunk.h"
|
2014-09-13 19:32:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|