2025-09-05 21:34:06 +00:00
|
|
|
#include "xgfxlightmaparray.h"
|
|
|
|
|
|
|
|
|
|
XGfxLightmapArray::XGfxLightmapArray()
|
|
|
|
|
: primary(nullptr), secondary(nullptr)
|
|
|
|
|
{
|
2025-09-10 21:58:26 -04:00
|
|
|
SetName("GFX Light Map Array");
|
2025-09-05 21:34:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
XGfxLightmapArray::~XGfxLightmapArray()
|
|
|
|
|
{
|
2025-09-10 21:58:26 -04:00
|
|
|
|
2025-09-05 21:34:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void XGfxLightmapArray::Clear()
|
|
|
|
|
{
|
|
|
|
|
// Delete pointers to avoid memory leaks
|
|
|
|
|
delete primary;
|
|
|
|
|
delete secondary;
|
|
|
|
|
|
|
|
|
|
primary = nullptr;
|
|
|
|
|
secondary = nullptr;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-10 21:58:26 -04:00
|
|
|
void XGfxLightmapArray::ParseData(XDataStream *aStream)
|
2025-09-05 21:34:06 +00:00
|
|
|
{
|
|
|
|
|
// 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;
|
|
|
|
|
}
|
|
|
|
|
|