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
26 #define NONAMELESSUNION
27 #define NONAMELESSSTRUCT
32 #include "wine/debug.h"
34 #include "d3d9_private.h"
36 WINE_DEFAULT_DEBUG_CHANNEL(d3d);
38 /* IDirect3DBaseTexture9 IUnknown parts follow: */
39 HRESULT WINAPI IDirect3DBaseTexture9Impl_QueryInterface(LPDIRECT3DBASETEXTURE9 iface, REFIID riid, LPVOID* ppobj) {
40 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
42 if (IsEqualGUID(riid, &IID_IUnknown)
43 || IsEqualGUID(riid, &IID_IDirect3DResource9)
44 || IsEqualGUID(riid, &IID_IDirect3DBaseTexture9)) {
45 IDirect3DBaseTexture9Impl_AddRef(iface);
50 WARN("(%p)->(%s,%p),not found\n", This, debugstr_guid(riid), ppobj);
54 ULONG WINAPI IDirect3DBaseTexture9Impl_AddRef(LPDIRECT3DBASETEXTURE9 iface) {
55 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
56 TRACE("(%p) : AddRef from %ld\n", This, This->ref);
60 ULONG WINAPI IDirect3DBaseTexture9Impl_Release(LPDIRECT3DBASETEXTURE9 iface) {
61 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
62 ULONG ref = --This->ref;
63 TRACE("(%p) : ReleaseRef to %ld\n", This, This->ref);
65 HeapFree(GetProcessHeap(), 0, This);
69 /* IDirect3DBaseTexture9 IDirect3DResource9 Interface follow: */
70 HRESULT WINAPI IDirect3DBaseTexture9Impl_GetDevice(LPDIRECT3DBASETEXTURE9 iface, IDirect3DDevice9** ppDevice) {
71 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
72 return IDirect3DResource9Impl_GetDevice((LPDIRECT3DRESOURCE9) This, ppDevice);
75 HRESULT WINAPI IDirect3DBaseTexture9Impl_SetPrivateData(LPDIRECT3DBASETEXTURE9 iface, REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) {
76 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
77 FIXME("(%p) : stub\n", This);
81 HRESULT WINAPI IDirect3DBaseTexture9Impl_GetPrivateData(LPDIRECT3DBASETEXTURE9 iface, REFGUID refguid, void* pData, DWORD* pSizeOfData) {
82 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
83 FIXME("(%p) : stub\n", This);
87 HRESULT WINAPI IDirect3DBaseTexture9Impl_FreePrivateData(LPDIRECT3DBASETEXTURE9 iface, REFGUID refguid) {
88 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
89 FIXME("(%p) : stub\n", This);
93 DWORD WINAPI IDirect3DBaseTexture9Impl_SetPriority(LPDIRECT3DBASETEXTURE9 iface, DWORD PriorityNew) {
94 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
95 return IDirect3DResource9Impl_SetPriority((LPDIRECT3DRESOURCE9) This, PriorityNew);
98 DWORD WINAPI IDirect3DBaseTexture9Impl_GetPriority(LPDIRECT3DBASETEXTURE9 iface) {
99 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
100 return IDirect3DResource9Impl_GetPriority((LPDIRECT3DRESOURCE9) This);
103 void WINAPI IDirect3DBaseTexture9Impl_PreLoad(LPDIRECT3DBASETEXTURE9 iface) {
104 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
105 FIXME("(%p) : stub\n", This);
109 D3DRESOURCETYPE WINAPI IDirect3DBaseTexture9Impl_GetType(LPDIRECT3DBASETEXTURE9 iface) {
110 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
111 return IDirect3DResource9Impl_GetType((LPDIRECT3DRESOURCE9) This);
114 /* IDirect3DBaseTexture9 Interface follow: */
115 DWORD WINAPI IDirect3DBaseTexture9Impl_SetLOD(LPDIRECT3DBASETEXTURE9 iface, DWORD LODNew) {
116 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
117 FIXME("(%p) : stub\n", This);
121 DWORD WINAPI IDirect3DBaseTexture9Impl_GetLOD(LPDIRECT3DBASETEXTURE9 iface) {
122 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
123 FIXME("(%p) : stub\n", This);
127 DWORD WINAPI IDirect3DBaseTexture9Impl_GetLevelCount(LPDIRECT3DBASETEXTURE9 iface) {
128 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
129 FIXME("(%p) : stub\n", This);
133 HRESULT WINAPI IDirect3DBaseTexture9Impl_SetAutoGenFilterType(LPDIRECT3DBASETEXTURE9 iface, D3DTEXTUREFILTERTYPE FilterType) {
134 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
135 FIXME("(%p) : stub\n", This);
139 D3DTEXTUREFILTERTYPE WINAPI IDirect3DBaseTexture9Impl_GetAutoGenFilterType(LPDIRECT3DBASETEXTURE9 iface) {
140 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
141 FIXME("(%p) : stub\n", This);
145 void WINAPI IDirect3DBaseTexture9Impl_GenerateMipSubLevels(LPDIRECT3DBASETEXTURE9 iface) {
146 ICOM_THIS(IDirect3DBaseTexture9Impl,iface);
147 FIXME("(%p) : stub\n", This);
152 ICOM_VTABLE(IDirect3DBaseTexture9) Direct3DBaseTexture9_Vtbl =
154 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
155 IDirect3DBaseTexture9Impl_QueryInterface,
156 IDirect3DBaseTexture9Impl_AddRef,
157 IDirect3DBaseTexture9Impl_Release,
158 IDirect3DBaseTexture9Impl_GetDevice,
159 IDirect3DBaseTexture9Impl_SetPrivateData,
160 IDirect3DBaseTexture9Impl_GetPrivateData,
161 IDirect3DBaseTexture9Impl_FreePrivateData,
162 IDirect3DBaseTexture9Impl_SetPriority,
163 IDirect3DBaseTexture9Impl_GetPriority,
164 IDirect3DBaseTexture9Impl_PreLoad,
165 IDirect3DBaseTexture9Impl_GetType,
166 IDirect3DBaseTexture9Impl_SetLOD,
167 IDirect3DBaseTexture9Impl_GetLOD,
168 IDirect3DBaseTexture9Impl_GetLevelCount,
169 IDirect3DBaseTexture9Impl_SetAutoGenFilterType,
170 IDirect3DBaseTexture9Impl_GetAutoGenFilterType,
171 IDirect3DBaseTexture9Impl_GenerateMipSubLevels