43 lines
862 B
C++
43 lines
862 B
C++
|
|
|
|
#include "xgfxlightmaparray.h"
|
|
|
|
XGfxLightmapArray::XGfxLightmapArray()
|
|
: primary(nullptr), secondary(nullptr)
|
|
{
|
|
}
|
|
|
|
XGfxLightmapArray::~XGfxLightmapArray()
|
|
{
|
|
Clear();
|
|
}
|
|
|
|
void XGfxLightmapArray::Clear()
|
|
{
|
|
// Delete pointers to avoid memory leaks
|
|
delete primary;
|
|
delete secondary;
|
|
|
|
primary = nullptr;
|
|
secondary = nullptr;
|
|
}
|
|
|
|
void XGfxLightmapArray::ParseData(QDataStream *aStream)
|
|
{
|
|
// Implement parsing logic here
|
|
// This is just a placeholder implementation
|
|
Clear();
|
|
|
|
// Parse data from stream
|
|
// Example:
|
|
// *primary = new XGfxImage();
|
|
// secondary = new XGfxImage();
|
|
// primary->ParseData(aStream);
|
|
// secondary->ParseData(aStream);
|
|
|
|
// For now, we'll just read some dummy data to keep the compiler happy
|
|
qint32 dummy;
|
|
*aStream >> dummy;
|
|
}
|
|
|