XPlor/libs/xassets/xgfxstatebits.cpp

29 lines
393 B
C++
Raw Normal View History

2025-09-03 13:08:03 -04:00
#include "xgfxstatebits.h"
XGfxStateBits::XGfxStateBits()
: XAsset()
2025-09-07 23:11:59 -04:00
, mLoadBits(2)
2025-09-03 13:08:03 -04:00
{
2025-09-10 21:58:26 -04:00
SetName("GFX State Bits");
2025-09-03 13:08:03 -04:00
}
XGfxStateBits::~XGfxStateBits()
{
}
2025-09-10 21:58:26 -04:00
void XGfxStateBits::ParseData(XDataStream *aStream)
2025-09-03 13:08:03 -04:00
{
2025-09-07 23:11:59 -04:00
if (GetPtr() == -1)
{
*aStream
>> mLoadBits[0]
>> mLoadBits[1];
}
2025-09-03 13:08:03 -04:00
}
void XGfxStateBits::Clear()
{
2025-09-07 23:11:59 -04:00
mLoadBits.clear();
2025-09-03 13:08:03 -04:00
}