Make buildable with all those assets.
This commit is contained in:
parent
6211ea3c77
commit
1eb340aaea
@ -6,7 +6,7 @@
|
|||||||
class XCardMemory : public XAsset
|
class XCardMemory : public XAsset
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
XCardMemory();
|
explicit XCardMemory();
|
||||||
~XCardMemory();
|
~XCardMemory();
|
||||||
|
|
||||||
quint32 GetPlatform() const;
|
quint32 GetPlatform() const;
|
||||||
|
|||||||
@ -13,6 +13,11 @@ XCLeaf::XCLeaf()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XCLeaf::~XCLeaf()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void XCLeaf::ParseData(QDataStream *aStream) {
|
void XCLeaf::ParseData(QDataStream *aStream) {
|
||||||
if (GetPtr() == -1) {
|
if (GetPtr() == -1) {
|
||||||
*aStream
|
*aStream
|
||||||
|
|||||||
@ -9,6 +9,7 @@ class XCLeaf : public XAsset
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit XCLeaf();
|
explicit XCLeaf();
|
||||||
|
~XCLeaf();
|
||||||
|
|
||||||
void ParseData(QDataStream *aStream) override;
|
void ParseData(QDataStream *aStream) override;
|
||||||
|
|
||||||
|
|||||||
@ -15,3 +15,8 @@ void XCLeafBrushNodeLeaf::ParseData(QDataStream *aStream) {
|
|||||||
// We would parse brushes here, but we're using a placeholder
|
// We would parse brushes here, but we're using a placeholder
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void XCLeafBrushNodeLeaf::Clear()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@ -236,26 +236,24 @@ void XClipMap::ParseData(QDataStream *aStream)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mLeafbrushNodes()
|
// mLeafsurfaces()
|
||||||
mLeafsurfaces()
|
// mVerts()
|
||||||
mVerts()
|
// mTriIndices()
|
||||||
mTriIndices()
|
// mTriEdgeIsWalkable()
|
||||||
mTriEdgeIsWalkable()
|
// mBorders()
|
||||||
mBorders()
|
// mPartitions()
|
||||||
mPartitions()
|
// mAabbTrees()
|
||||||
mAabbTrees()
|
// mCodels()
|
||||||
mCodels()
|
// mBrushes()
|
||||||
mBrushes()
|
// mVisibility()
|
||||||
mVisibility()
|
// mMapEnts()
|
||||||
mMapEnts()
|
// mBoxBrush()
|
||||||
mBoxBrush()
|
// mBoxModel()
|
||||||
mBoxModel()
|
// mDynEntCount(0)
|
||||||
mDynEntCount(0)
|
// mDynEntDefList()
|
||||||
mDynEntDefList()
|
// mDynEntPoseList()
|
||||||
mDynEntPoseList()
|
// mDynEntClientList()
|
||||||
mDynEntClientList()
|
// mDynEntCollList()
|
||||||
mDynEntCollList()
|
|
||||||
(0)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
XCStaticModel::XCStaticModel()
|
XCStaticModel::XCStaticModel()
|
||||||
: XAsset()
|
: XAsset()
|
||||||
, mWritable()
|
, mWritable()
|
||||||
, mModel(new XModel())
|
, mModel()
|
||||||
, mOrigin()
|
, mOrigin()
|
||||||
, mInvScaledAxis()
|
, mInvScaledAxis()
|
||||||
, mAbsmin()
|
, mAbsmin()
|
||||||
@ -11,6 +11,11 @@ XCStaticModel::XCStaticModel()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XCStaticModel::~XCStaticModel()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void XCStaticModel::ParseData(QDataStream *aStream) {
|
void XCStaticModel::ParseData(QDataStream *aStream) {
|
||||||
if (GetPtr() == -1) {
|
if (GetPtr() == -1) {
|
||||||
// Parse writable
|
// Parse writable
|
||||||
|
|||||||
@ -5,6 +5,11 @@ XDMaterial::XDMaterial()
|
|||||||
: XAsset() {
|
: XAsset() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XDMaterial::~XDMaterial()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void XDMaterial::ParseData(QDataStream *aStream) {
|
void XDMaterial::ParseData(QDataStream *aStream) {
|
||||||
if (GetPtr() == -1) {
|
if (GetPtr() == -1) {
|
||||||
mMaterial = XString::ParseCustom(aStream);
|
mMaterial = XString::ParseCustom(aStream);
|
||||||
|
|||||||
@ -1,23 +1,21 @@
|
|||||||
#include "xgfxstatebits.h"
|
#include "xgfxsurface.h"
|
||||||
|
|
||||||
XGfxStateBits::XGfxStateBits()
|
XGfxSurface::XGfxSurface()
|
||||||
: XAsset()
|
|
||||||
, mLoadBits()
|
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
XGfxStateBits::~XGfxStateBits()
|
XGfxSurface::~XGfxSurface()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void XGfxStateBits::ParseData(QDataStream *aStream)
|
void XGfxSurface::ParseData(QDataStream *aStream)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void XGfxStateBits::Clear()
|
void XGfxSurface::Clear()
|
||||||
{
|
{
|
||||||
mLoadBits = QVector<quint32>();
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,23 +1 @@
|
|||||||
#include "xcardmemory.h"
|
#include "xgputexturefetchconstant.h"
|
||||||
|
|
||||||
XCardMemory::XCardMemory()
|
|
||||||
: XAsset()
|
|
||||||
, mPlatform(0)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
XCardMemory::~XCardMemory()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void XCardMemory::ParseData(QDataStream *aStream)
|
|
||||||
{
|
|
||||||
*aStream >> mPlatform;
|
|
||||||
}
|
|
||||||
|
|
||||||
void XCardMemory::Clear()
|
|
||||||
{
|
|
||||||
mPlatform = 0;
|
|
||||||
}
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ XMaterialShaderArgument::XMaterialShaderArgument()
|
|||||||
: XAsset()
|
: XAsset()
|
||||||
, mType(0)
|
, mType(0)
|
||||||
, mDest(0)
|
, mDest(0)
|
||||||
, mDef()
|
, mDef(*this)
|
||||||
{
|
{
|
||||||
SetName("Material Shader Argument");
|
SetName("Material Shader Argument");
|
||||||
}
|
}
|
||||||
@ -22,7 +22,7 @@ void XMaterialShaderArgument::ParseData(QDataStream *aStream)
|
|||||||
>> mType
|
>> mType
|
||||||
>> mDest;
|
>> mDest;
|
||||||
|
|
||||||
mDef.ParseData(aStream, mType);
|
mDef.ParseData(aStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
quint16 XMaterialShaderArgument::GetType() const
|
quint16 XMaterialShaderArgument::GetType() const
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user