From baafe8b4e52f94a6ed867e520707e6f823f9ac6e Mon Sep 17 00:00:00 2001 From: RedLine AI Agent Date: Fri, 5 Sep 2025 21:34:06 +0000 Subject: [PATCH] Updated libs/xassets/xgfxlightmaparray.cpp --- libs/xassets/xgfxlightmaparray.cpp | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 libs/xassets/xgfxlightmaparray.cpp diff --git a/libs/xassets/xgfxlightmaparray.cpp b/libs/xassets/xgfxlightmaparray.cpp new file mode 100644 index 0000000..29530b8 --- /dev/null +++ b/libs/xassets/xgfxlightmaparray.cpp @@ -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; +} +