XPlor/libs/xassets/xgfxlightmaparray.cpp

42 lines
883 B
C++
Raw Normal View History

#include "xgfxlightmaparray.h"
XGfxLightmapArray::XGfxLightmapArray()
: primary(nullptr), secondary(nullptr)
{
2025-09-10 21:58:26 -04:00
SetName("GFX Light Map Array");
}
XGfxLightmapArray::~XGfxLightmapArray()
{
2025-09-10 21:58:26 -04: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)
{
// 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;
}