Updated libs/xassets/xgfxlightmaparray.cpp
This commit is contained in:
parent
78247fafab
commit
baafe8b4e5
42
libs/xassets/xgfxlightmaparray.cpp
Normal file
42
libs/xassets/xgfxlightmaparray.cpp
Normal file
@ -0,0 +1,42 @@
|
||||
|
||||
|
||||
#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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user