/* This file is part of Universal Modding Engine. Universal Modding Engine is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Universal Modding Engine is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Universal Modding Engine. If not, see . */ #include "../uMod_DXMain/uMod_Main.h" #include "uMod_ID3D10Texture3D.h" uMod_ID3D10Texture3D::uMod_ID3D10Texture3D(ID3D10Texture3D *pOriginal) { Message( "uMod_ID3D10Texture1D::uMod_ID3D10Texture1D( %lu): %lu\n", pOriginal, this); m_ID3D10Texture3D = pOriginal; } uMod_ID3D10Texture3D::~uMod_ID3D10Texture3D() { } HRESULT STDMETHODCALLTYPE uMod_ID3D10Texture3D::QueryInterface( REFIID riid, void** ppvObject) { return m_ID3D10Texture3D->QueryInterface( riid, ppvObject); } ULONG STDMETHODCALLTYPE uMod_ID3D10Texture3D::AddRef(void) { return m_ID3D10Texture3D->AddRef(); } ULONG STDMETHODCALLTYPE uMod_ID3D10Texture3D::Release( void) { ULONG count = m_ID3D10Texture3D->Release(); // in case no further Ref is there, the Original Object has deleted itself if (count == 0) { delete(this); } return(count); } void STDMETHODCALLTYPE uMod_ID3D10Texture3D::GetDevice( ID3D10Device **ppDevice) { return m_ID3D10Texture3D->GetDevice( ppDevice); } HRESULT STDMETHODCALLTYPE uMod_ID3D10Texture3D::GetPrivateData( REFGUID guid, UINT *pDataSize, void *pData) { return m_ID3D10Texture3D->GetPrivateData( guid, pDataSize, pData); } HRESULT STDMETHODCALLTYPE uMod_ID3D10Texture3D::SetPrivateData( REFGUID guid, UINT DataSize, const void *pData) { return m_ID3D10Texture3D->SetPrivateData( guid, DataSize, pData); } HRESULT STDMETHODCALLTYPE uMod_ID3D10Texture3D::SetPrivateDataInterface( REFGUID guid, const IUnknown *pData) { return m_ID3D10Texture3D->SetPrivateDataInterface( guid, pData); } void STDMETHODCALLTYPE uMod_ID3D10Texture3D::GetType( D3D10_RESOURCE_DIMENSION *rType) { return m_ID3D10Texture3D->GetType( rType); } void STDMETHODCALLTYPE uMod_ID3D10Texture3D::SetEvictionPriority( UINT EvictionPriority) { return m_ID3D10Texture3D->SetEvictionPriority( EvictionPriority); } UINT STDMETHODCALLTYPE uMod_ID3D10Texture3D::GetEvictionPriority(void) { return m_ID3D10Texture3D->GetEvictionPriority(); } HRESULT STDMETHODCALLTYPE uMod_ID3D10Texture3D::Map( UINT Subresource, D3D10_MAP MapType, UINT MapFlags, D3D10_MAPPED_TEXTURE3D *pMappedTex3D) { return m_ID3D10Texture3D->Map( Subresource, MapType, MapFlags, pMappedTex3D); } void STDMETHODCALLTYPE uMod_ID3D10Texture3D::Unmap( UINT Subresource) { return m_ID3D10Texture3D->Unmap( Subresource); } void STDMETHODCALLTYPE uMod_ID3D10Texture3D::GetDesc( D3D10_TEXTURE3D_DESC *pDesc) { return m_ID3D10Texture3D->GetDesc( pDesc); }