Add xgfxpackedvertex structures
This commit is contained in:
parent
9a70b774ab
commit
63ca1074fc
23
libs/xassets/xgfxpackedvertex.cpp
Normal file
23
libs/xassets/xgfxpackedvertex.cpp
Normal file
@ -0,0 +1,23 @@
|
||||
#include "xgfxpackedvertex.h"
|
||||
|
||||
XGfxPackedVertex::XGfxPackedVertex()
|
||||
: XAsset()
|
||||
, mXYZ()
|
||||
, mBinormalSign(0)
|
||||
, mColor()
|
||||
, mTexCoord()
|
||||
, mNormal()
|
||||
, mTangent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void XGfxPackedVertex::ParseData(QDataStream *aStream)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void XGfxPackedVertex::Clear()
|
||||
{
|
||||
|
||||
}
|
||||
34
libs/xassets/xgfxpackedvertex.h
Normal file
34
libs/xassets/xgfxpackedvertex.h
Normal file
@ -0,0 +1,34 @@
|
||||
#ifndef XGFXPACKEDVERTEX_H
|
||||
#define XGFXPACKEDVERTEX_H
|
||||
|
||||
#include "xasset.h"
|
||||
#include "xgfxcolor.h"
|
||||
#include "xpackedtexcoords.h"
|
||||
#include "xpackedunitvec.h"
|
||||
|
||||
class XGfxPackedVertex : public XAsset
|
||||
{
|
||||
public:
|
||||
explicit XGfxPackedVertex();
|
||||
|
||||
void ParseData(QDataStream *aStream) override;
|
||||
void Clear() override;
|
||||
|
||||
private:
|
||||
float mXYZ[3];
|
||||
float mBinormalSign;
|
||||
XGfxColor mColor;
|
||||
XPackedTexCoords mTexCoord;
|
||||
XPackedUnitVec mNormal;
|
||||
XPackedUnitVec mTangent;
|
||||
};
|
||||
|
||||
#endif // XGFXPACKEDVERTEX_H
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user