feature/test #9
@ -1,9 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "xanimdeltapart.h"
|
#include "xanimdeltapart.h"
|
||||||
|
|
||||||
XAnimDeltaPart::XAnimDeltaPart()
|
XAnimDeltaPart::XAnimDeltaPart()
|
||||||
|
|||||||
@ -1,9 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef XANIMDELTAPART_H
|
#ifndef XANIMDELTAPART_H
|
||||||
#define XANIMDELTAPART_H
|
#define XANIMDELTAPART_H
|
||||||
|
|
||||||
|
|||||||
@ -1,25 +1,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "xanimdeltapartquatdataframes.h"
|
#include "xanimdeltapartquatdataframes.h"
|
||||||
|
|
||||||
XAnimDeltaPartQuatDataFrames::XAnimDeltaPartQuatDataFrames()
|
XAnimDeltaPartQuatDataFrames::XAnimDeltaPartQuatDataFrames()
|
||||||
: XAsset() {
|
: XAsset() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void XAnimDeltaPartQuatDataFrames::ParseData(QDataStream *aStream) {
|
|
||||||
if (GetPtr() == -1) {
|
|
||||||
aStream->read((char*)&mFramesPtr, sizeof(quint32));
|
|
||||||
aStream->read((char*)mFrames, 2 * sizeof(qint16));
|
|
||||||
|
|
||||||
// Parse indices
|
|
||||||
mIndices.ParseData(aStream);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
quint32 XAnimDeltaPartQuatDataFrames::GetFramesPtr() const {
|
quint32 XAnimDeltaPartQuatDataFrames::GetFramesPtr() const {
|
||||||
return mFramesPtr;
|
return mFramesPtr;
|
||||||
}
|
}
|
||||||
@ -50,6 +34,17 @@ void XAnimDeltaPartQuatDataFrames::SetIndices(const XAnimDynamicIndices& indices
|
|||||||
mIndices = indices;
|
mIndices = indices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void XAnimDeltaPartQuatDataFrames::ParseData(QDataStream *aStream) {
|
||||||
|
if (GetPtr() == -1) {
|
||||||
|
aStream->read((char*)&mFramesPtr, sizeof(quint32));
|
||||||
|
aStream->read((char*)mFrames, 2 * sizeof(qint16));
|
||||||
|
|
||||||
|
// Parse indices
|
||||||
|
mIndices.ParseData(aStream);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void XAnimDeltaPartQuatDataFrames::Clear()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@ -1,9 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef XANIMDELTAPARTQUATDATAFRAMES_H
|
#ifndef XANIMDELTAPARTQUATDATAFRAMES_H
|
||||||
#define XANIMDELTAPARTQUATDATAFRAMES_H
|
#define XANIMDELTAPARTQUATDATAFRAMES_H
|
||||||
|
|
||||||
@ -15,8 +9,6 @@ class XAnimDeltaPartQuatDataFrames : public XAsset
|
|||||||
public:
|
public:
|
||||||
explicit XAnimDeltaPartQuatDataFrames();
|
explicit XAnimDeltaPartQuatDataFrames();
|
||||||
|
|
||||||
void ParseData(QDataStream *aStream) override;
|
|
||||||
|
|
||||||
quint32 GetFramesPtr() const;
|
quint32 GetFramesPtr() const;
|
||||||
void SetFramesPtr(quint32 ptr);
|
void SetFramesPtr(quint32 ptr);
|
||||||
|
|
||||||
@ -27,6 +19,9 @@ public:
|
|||||||
const XAnimDynamicIndices& GetIndices() const;
|
const XAnimDynamicIndices& GetIndices() const;
|
||||||
void SetIndices(const XAnimDynamicIndices& indices);
|
void SetIndices(const XAnimDynamicIndices& indices);
|
||||||
|
|
||||||
|
void ParseData(QDataStream *aStream) override;
|
||||||
|
void Clear() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
quint32 mFramesPtr = 0;
|
quint32 mFramesPtr = 0;
|
||||||
qint16 mFrames[2] = {0};
|
qint16 mFrames[2] = {0};
|
||||||
@ -34,8 +29,3 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif // XANIMDELTAPARTQUATDATAFRAMES_H
|
#endif // XANIMDELTAPARTQUATDATAFRAMES_H
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "xanimparts.h"
|
#include "xanimparts.h"
|
||||||
|
|
||||||
XAnimParts::XAnimParts()
|
XAnimParts::XAnimParts()
|
||||||
|
|||||||
@ -1,12 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef XANIMPARTS_H
|
#ifndef XANIMPARTS_H
|
||||||
#define XANIMPARTS_H
|
#define XANIMPARTS_H
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user