// Platform skeleton for EterLib/GrpTexture.h (40250 EterLib/GrpTexture.cpp), generated by platform_stub.py. // Every MT_PLATFORM_STUB() body is unimplemented: replace it with the platform implementation. #include "EterLib/StdAfx.h" #include "EterLib/GrpTexture.h" #include "../PlatformStub.h" #include "UIRenderCommands.h" auto CGraphicTexture::IsEmpty() const -> bool { return m_bEmpty; } auto CGraphicTexture::GetWidth() const -> int { return m_width; } auto CGraphicTexture::GetHeight() const -> int { return m_height; } auto CGraphicTexture::SetTextureStage(int) const -> void { MT_PLATFORM_STUB(); } auto CGraphicTexture::GetD3DTexture() const -> LPDIRECT3DTEXTURE8 { return m_lpd3dTexture; } // PORT: safe_release(m_lpd3dTexture); the platform textures are memory textures and file-texture handles. auto CGraphicTexture::DestroyDeviceObjects() -> void { if (m_lpd3dTexture) UIRenderReleaseMemoryTexture(m_lpd3dTexture); m_lpd3dTexture = NULL; } CGraphicTexture::CGraphicTexture() { Initialize(); } CGraphicTexture::~CGraphicTexture() { } auto CGraphicTexture::Destroy() -> void { DestroyDeviceObjects(); Initialize(); } auto CGraphicTexture::Initialize() -> void { m_lpd3dTexture = NULL; m_width = 0; m_height = 0; m_bEmpty = true; }