2025-09-03 13:02:31 -04:00
|
|
|
#include "xgfxtexture.h"
|
|
|
|
|
|
|
|
|
|
#include "xd3dbasetexture.h"
|
2025-09-10 21:58:26 -04:00
|
|
|
#include "xgfximageloaddef.h"
|
2025-09-03 13:02:31 -04:00
|
|
|
|
|
|
|
|
XGfxTexture::XGfxTexture()
|
|
|
|
|
: XAsset()
|
2025-09-05 18:35:17 -04:00
|
|
|
, mBaseMap()
|
|
|
|
|
, mMap()
|
|
|
|
|
, mVolMap()
|
|
|
|
|
, mCubeMap()
|
2025-09-10 21:58:26 -04:00
|
|
|
, mLoadDef(nullptr)
|
2025-08-17 13:14:17 -04:00
|
|
|
{
|
2025-09-10 21:58:26 -04:00
|
|
|
SetName("GFX Texture");
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
|
2025-09-03 13:02:31 -04:00
|
|
|
XGfxTexture::~XGfxTexture()
|
2025-08-17 13:14:17 -04:00
|
|
|
{
|
2025-09-03 13:02:31 -04:00
|
|
|
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
|
2025-09-10 21:58:26 -04:00
|
|
|
void XGfxTexture::ParseData(XDataStream *aStream)
|
2025-08-17 13:14:17 -04:00
|
|
|
{
|
2025-09-10 21:58:26 -04:00
|
|
|
if (GetPtr() == -1 || GetPtr() == -2)
|
|
|
|
|
{
|
|
|
|
|
mLoadDef = new XGfxImageLoadDef();
|
|
|
|
|
mLoadDef->ParseData(aStream);
|
|
|
|
|
}
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|
|
|
|
|
|
2025-09-03 13:02:31 -04:00
|
|
|
void XGfxTexture::Clear()
|
2025-08-17 13:14:17 -04:00
|
|
|
{
|
2025-09-03 13:02:31 -04:00
|
|
|
|
2025-08-17 13:14:17 -04:00
|
|
|
}
|