Updated xgfxcolor
This commit is contained in:
parent
096da843d1
commit
06e94e9648
@ -2,15 +2,18 @@
|
|||||||
|
|
||||||
XGfxColor::XGfxColor()
|
XGfxColor::XGfxColor()
|
||||||
: XAsset()
|
: XAsset()
|
||||||
, mPacked(0)
|
, mArray(4)
|
||||||
, mArray()
|
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void XGfxColor::ParseData(QDataStream *aStream)
|
void XGfxColor::ParseData(QDataStream *aStream)
|
||||||
{
|
{
|
||||||
|
*aStream
|
||||||
|
>> mArray[0]
|
||||||
|
>> mArray[1]
|
||||||
|
>> mArray[2]
|
||||||
|
>> mArray[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
void XGfxColor::Clear()
|
void XGfxColor::Clear()
|
||||||
|
|||||||
@ -14,8 +14,7 @@ public:
|
|||||||
void SetColor(quint8 r, quint8 g, quint8 b, quint8 a);
|
void SetColor(quint8 r, quint8 g, quint8 b, quint8 a);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
quint32 mPacked;
|
QVector<quint8> mArray;
|
||||||
quint8 mArray[4];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // XGFXCOLOR_H
|
#endif // XGFXCOLOR_H
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user