2 * IDirect3DBaseTexture9 implementation
4 * Copyright 2002-2003 Jason Edmeades
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #define NONAMELESSUNION
25 #define NONAMELESSSTRUCT
30 #include "wine/debug.h"
32 #include "d3d9_private.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(d3d);
36 /* IDirect3DBaseTexture9 IUnknown parts follow: */
37 HRESULT WINAPI IDirect3DBaseTexture9Impl_QueryInterface(LPDIRECT3DBASETEXTURE9 iface, REFIID riid, LPVOID* ppobj) {
38 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
40 if (IsEqualGUID(riid, &IID_IUnknown)
41 || IsEqualGUID(riid, &IID_IDirect3DResource9)
42 || IsEqualGUID(riid, &IID_IDirect3DBaseTexture9)) {
43 IDirect3DBaseTexture9Impl_AddRef(iface);
48 WARN("(%p)->(%s,%p),not found\n", This, debugstr_guid(riid), ppobj);
52 ULONG WINAPI IDirect3DBaseTexture9Impl_AddRef(LPDIRECT3DBASETEXTURE9 iface) {
53 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
54 TRACE("(%p) : AddRef from %ld\n", This, This->ref);
58 ULONG WINAPI IDirect3DBaseTexture9Impl_Release(LPDIRECT3DBASETEXTURE9 iface) {
59 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
60 ULONG ref = --This->ref;
61 TRACE("(%p) : ReleaseRef to %ld\n", This, This->ref);
63 HeapFree(GetProcessHeap(), 0, This);
67 /* IDirect3DBaseTexture9 IDirect3DResource9 Interface follow: */
68 HRESULT WINAPI IDirect3DBaseTexture9Impl_GetDevice(LPDIRECT3DBASETEXTURE9 iface, IDirect3DDevice9** ppDevice) {
69 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
70 return IDirect3DResource9Impl_GetDevice((LPDIRECT3DRESOURCE9) This, ppDevice);
73 HRESULT WINAPI IDirect3DBaseTexture9Impl_SetPrivateData(LPDIRECT3DBASETEXTURE9 iface, REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) {
74 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
75 FIXME("(%p) : stub\n", This);
79 HRESULT WINAPI IDirect3DBaseTexture9Impl_GetPrivateData(LPDIRECT3DBASETEXTURE9 iface, REFGUID refguid, void* pData, DWORD* pSizeOfData) {
80 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
81 FIXME("(%p) : stub\n", This);
85 HRESULT WINAPI IDirect3DBaseTexture9Impl_FreePrivateData(LPDIRECT3DBASETEXTURE9 iface, REFGUID refguid) {
86 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
87 FIXME("(%p) : stub\n", This);
91 DWORD WINAPI IDirect3DBaseTexture9Impl_SetPriority(LPDIRECT3DBASETEXTURE9 iface, DWORD PriorityNew) {
92 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
93 return IDirect3DResource9Impl_SetPriority((LPDIRECT3DRESOURCE9) This, PriorityNew);
96 DWORD WINAPI IDirect3DBaseTexture9Impl_GetPriority(LPDIRECT3DBASETEXTURE9 iface) {
97 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
98 return IDirect3DResource9Impl_GetPriority((LPDIRECT3DRESOURCE9) This);
101 void WINAPI IDirect3DBaseTexture9Impl_PreLoad(LPDIRECT3DBASETEXTURE9 iface) {
102 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
103 FIXME("(%p) : stub\n", This);
107 D3DRESOURCETYPE WINAPI IDirect3DBaseTexture9Impl_GetType(LPDIRECT3DBASETEXTURE9 iface) {
108 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
109 return IDirect3DResource9Impl_GetType((LPDIRECT3DRESOURCE9) This);
112 /* IDirect3DBaseTexture9 Interface follow: */
113 DWORD WINAPI IDirect3DBaseTexture9Impl_SetLOD(LPDIRECT3DBASETEXTURE9 iface, DWORD LODNew) {
114 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
115 FIXME("(%p) : stub\n", This);
119 DWORD WINAPI IDirect3DBaseTexture9Impl_GetLOD(LPDIRECT3DBASETEXTURE9 iface) {
120 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
121 FIXME("(%p) : stub\n", This);
125 DWORD WINAPI IDirect3DBaseTexture9Impl_GetLevelCount(LPDIRECT3DBASETEXTURE9 iface) {
126 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
127 FIXME("(%p) : stub\n", This);
131 HRESULT WINAPI IDirect3DBaseTexture9Impl_SetAutoGenFilterType(LPDIRECT3DBASETEXTURE9 iface, D3DTEXTUREFILTERTYPE FilterType) {
132 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
133 FIXME("(%p) : stub\n", This);
137 D3DTEXTUREFILTERTYPE WINAPI IDirect3DBaseTexture9Impl_GetAutoGenFilterType(LPDIRECT3DBASETEXTURE9 iface) {
138 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
139 FIXME("(%p) : stub\n", This);
143 void WINAPI IDirect3DBaseTexture9Impl_GenerateMipSubLevels(LPDIRECT3DBASETEXTURE9 iface) {
144 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
145 FIXME("(%p) : stub\n", This);
150 ICOM_VTABLE(IDirect3DBaseTexture9) Direct3DBaseTexture9_Vtbl =
152 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
153 IDirect3DBaseTexture9Impl_QueryInterface,
154 IDirect3DBaseTexture9Impl_AddRef,
155 IDirect3DBaseTexture9Impl_Release,
156 IDirect3DBaseTexture9Impl_GetDevice,
157 IDirect3DBaseTexture9Impl_SetPrivateData,
158 IDirect3DBaseTexture9Impl_GetPrivateData,
159 IDirect3DBaseTexture9Impl_FreePrivateData,
160 IDirect3DBaseTexture9Impl_SetPriority,
161 IDirect3DBaseTexture9Impl_GetPriority,
162 IDirect3DBaseTexture9Impl_PreLoad,
163 IDirect3DBaseTexture9Impl_GetType,
164 IDirect3DBaseTexture9Impl_SetLOD,
165 IDirect3DBaseTexture9Impl_GetLOD,
166 IDirect3DBaseTexture9Impl_GetLevelCount,
167 IDirect3DBaseTexture9Impl_SetAutoGenFilterType,
168 IDirect3DBaseTexture9Impl_GetAutoGenFilterType,
169 IDirect3DBaseTexture9Impl_GenerateMipSubLevels