BizHawk/libmupen64plus/D3D8Interceptor/Direct3DVolumeTexture8Funct...

52 lines
2.0 KiB
C++
Raw Normal View History

#include "d3d8Wrapper.h"
extern "C"
{
namespace D3D8Wrapper
{
2014-08-17 18:53:49 +00:00
D3D8Wrapper::IDirect3DVolumeTexture8::IDirect3DVolumeTexture8(D3D8Base::IDirect3DVolumeTexture8* realVolumeTexture) : IDirect3DBaseTexture8((D3D8Base::IDirect3DBaseTexture8*) realVolumeTexture)
{
2014-08-17 18:53:49 +00:00
LOG("IDirect3DVolumeTexture8( " << realVolumeTexture << " )\n");
m_pD3D = realVolumeTexture;
}
STDMETHODIMP D3D8Wrapper::IDirect3DVolumeTexture8::GetLevelDesc(UINT Level,D3D8Base::D3DVOLUME_DESC *pDesc)
{
2014-08-25 22:21:59 +00:00
LOG("IDirect3DVolumeTexture8::GetLevelDesc( " << Level << " , " << pDesc << " ) [ " << this << " ]\n");
2014-08-17 18:53:49 +00:00
return m_pD3D->GetLevelDesc(Level,pDesc);
}
STDMETHODIMP D3D8Wrapper::IDirect3DVolumeTexture8::GetVolumeLevel(UINT Level,D3D8Wrapper::IDirect3DVolume8** ppVolumeLevel)
{
2014-08-25 22:21:59 +00:00
LOG("IDirect3DVolumeTexture8::GetVolumeLevel( " << Level << " , " << ppVolumeLevel << " ) [ " << this << " ]\n");
2014-08-17 18:53:49 +00:00
D3D8Base::IDirect3DVolume8* realD3D = NULL;
2014-08-17 18:53:49 +00:00
HRESULT hr = m_pD3D->GetVolumeLevel(Level,&realD3D);
2014-08-17 18:53:49 +00:00
D3D8Wrapper::IDirect3DVolume8* wrappedD3D = new D3D8Wrapper::IDirect3DVolume8(realD3D);
2014-08-17 18:53:49 +00:00
*ppVolumeLevel = wrappedD3D;
return hr;
}
STDMETHODIMP D3D8Wrapper::IDirect3DVolumeTexture8::LockBox(UINT Level,D3D8Base::D3DLOCKED_BOX* pLockedVolume,CONST D3D8Base::D3DBOX* pBox,DWORD Flags)
{
2014-08-25 22:21:59 +00:00
LOG("IDirect3DVolumeTexture8::LockBox( " << Level << " , " << pLockedVolume << " , " << pBox << " , " << Flags << " ) [ " << this << " ]\n");
2014-08-17 18:53:49 +00:00
return m_pD3D->LockBox(Level,pLockedVolume,pBox,Flags);
}
STDMETHODIMP D3D8Wrapper::IDirect3DVolumeTexture8::UnlockBox(UINT Level)
{
2014-08-25 22:21:59 +00:00
LOG("IDirect3DVolumeTexture8::UnlockBox( " << Level << " ) [ " << this << " ]\n");
2014-08-17 18:53:49 +00:00
return m_pD3D->UnlockBox(Level);
}
STDMETHODIMP D3D8Wrapper::IDirect3DVolumeTexture8::AddDirtyBox(CONST D3D8Base::D3DBOX* pDirtyBox)
{
2014-08-25 22:21:59 +00:00
LOG("IDirect3DVolumeTexture8::AddDirtyBox( " << pDirtyBox << " ) [ " << this << " ]\n");
2014-08-17 18:53:49 +00:00
return m_pD3D->AddDirtyBox(pDirtyBox);
}
}
}