2 * IDirect3DVolume8 implementation
4 * Copyright 2002 Jason Edmeades
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #include "wine/debug.h"
27 #include "d3d8_private.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(d3d);
31 /* IDirect3DVolume IUnknown parts follow: */
32 HRESULT WINAPI IDirect3DVolume8Impl_QueryInterface(LPDIRECT3DVOLUME8 iface,REFIID riid,LPVOID *ppobj)
34 ICOM_THIS(IDirect3DVolume8Impl,iface);
36 if (IsEqualGUID(riid, &IID_IUnknown)
37 || IsEqualGUID(riid, &IID_IClassFactory)) {
38 IDirect3DVolume8Impl_AddRef(iface);
43 WARN("(%p)->(%s,%p),not found\n",This,debugstr_guid(riid),ppobj);
47 ULONG WINAPI IDirect3DVolume8Impl_AddRef(LPDIRECT3DVOLUME8 iface) {
48 ICOM_THIS(IDirect3DVolume8Impl,iface);
49 TRACE("(%p) : AddRef from %ld\n", This, This->ref);
53 ULONG WINAPI IDirect3DVolume8Impl_Release(LPDIRECT3DVOLUME8 iface) {
54 ICOM_THIS(IDirect3DVolume8Impl,iface);
55 ULONG ref = --This->ref;
56 TRACE("(%p) : ReleaseRef to %ld\n", This, This->ref);
58 HeapFree(GetProcessHeap(), 0, This);
62 /* IDirect3DVolume8: */
63 HRESULT WINAPI IDirect3DVolume8Impl_GetDevice(LPDIRECT3DVOLUME8 iface, IDirect3DDevice8** ppDevice) {
64 ICOM_THIS(IDirect3DVolume8Impl,iface);
65 TRACE("(%p) : returning %p\n", This, This->Device);
66 *ppDevice = (LPDIRECT3DDEVICE8) This->Device;
69 HRESULT WINAPI IDirect3DVolume8Impl_SetPrivateData(LPDIRECT3DVOLUME8 iface, REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) {
70 ICOM_THIS(IDirect3DVolume8Impl,iface);
71 FIXME("(%p) : stub\n", This); return D3D_OK;
73 HRESULT WINAPI IDirect3DVolume8Impl_GetPrivateData(LPDIRECT3DVOLUME8 iface, REFGUID refguid, void* pData, DWORD* pSizeOfData) {
74 ICOM_THIS(IDirect3DVolume8Impl,iface);
75 FIXME("(%p) : stub\n", This); return D3D_OK;
77 HRESULT WINAPI IDirect3DVolume8Impl_FreePrivateData(LPDIRECT3DVOLUME8 iface, REFGUID refguid) {
78 ICOM_THIS(IDirect3DVolume8Impl,iface);
79 FIXME("(%p) : stub\n", This); return D3D_OK;
81 HRESULT WINAPI IDirect3DVolume8Impl_GetContainer(LPDIRECT3DVOLUME8 iface, REFIID riid, void** ppContainer) {
82 ICOM_THIS(IDirect3DVolume8Impl,iface);
83 TRACE("(%p) : returning %p\n", This, This->Container);
84 *ppContainer = This->Container;
87 HRESULT WINAPI IDirect3DVolume8Impl_GetDesc(LPDIRECT3DVOLUME8 iface, D3DVOLUME_DESC* pDesc) {
88 ICOM_THIS(IDirect3DVolume8Impl,iface);
89 FIXME("(%p) : stub\n", This); return D3D_OK;
91 HRESULT WINAPI IDirect3DVolume8Impl_LockBox(LPDIRECT3DVOLUME8 iface, D3DLOCKED_BOX* pLockedVolume,CONST D3DBOX* pBox, DWORD Flags) {
92 ICOM_THIS(IDirect3DVolume8Impl,iface);
93 FIXME("(%p) : stub\n", This); return D3D_OK;
95 HRESULT WINAPI IDirect3DVolume8Impl_UnlockBox(LPDIRECT3DVOLUME8 iface) {
96 ICOM_THIS(IDirect3DVolume8Impl,iface);
97 FIXME("(%p) : stub\n", This); return D3D_OK;
101 ICOM_VTABLE(IDirect3DVolume8) Direct3DVolume8_Vtbl =
103 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
104 IDirect3DVolume8Impl_QueryInterface,
105 IDirect3DVolume8Impl_AddRef,
106 IDirect3DVolume8Impl_Release,
107 IDirect3DVolume8Impl_GetDevice,
108 IDirect3DVolume8Impl_SetPrivateData,
109 IDirect3DVolume8Impl_GetPrivateData,
110 IDirect3DVolume8Impl_FreePrivateData,
111 IDirect3DVolume8Impl_GetContainer,
112 IDirect3DVolume8Impl_GetDesc,
113 IDirect3DVolume8Impl_LockBox,
114 IDirect3DVolume8Impl_UnlockBox