No subject


Wed Feb 20 09:39:33 CST 2008


unctions=0A=0A---=0A dlls/d3dx9_36/Makefile.in        |    3 +-=0A dlls/d3d=
x9_36/d3dx9_36.spec      |    2 +-=0A dlls/d3dx9_36/d3dx9_36_private.h |   =
 9 ++=0A dlls/d3dx9_36/rtem.c             |  168 ++++++++++++++++++++++++++=
++++++++++++=0A 4 files changed, 180 insertions(+), 2 deletions(-)=0A creat=
e mode 100644 dlls/d3dx9_36/rtem.c=0A=0Adiff --git a/dlls/d3dx9_36/Makefile=
.in b/dlls/d3dx9_36/Makefile.in=0Aindex 0067d37..b82933b 100644=0A--- a/dll=
s/d3dx9_36/Makefile.in=0A+++ b/dlls/d3dx9_36/Makefile.in=0A@@ -10,7 +10,8 @=
@ C_SRCS =3D \=0A =09d3dx9_36_main.c \=0A =09font.c \=0A =09line.c \=0A-=09=
sprite.c=0A+=09sprite.c \=0A+=09rtem.c=0A =0A @MAKE_DLL_RULES@=0A =0Adiff -=
-git a/dlls/d3dx9_36/d3dx9_36.spec b/dlls/d3dx9_36/d3dx9_36.spec=0Aindex a2=
497a8..826e9da 100644=0A--- a/dlls/d3dx9_36/d3dx9_36.spec=0A+++ b/dlls/d3dx=
9_36/d3dx9_36.spec=0A@@ -81,7 +81,7 @@=0A @ stub D3DXCreatePRTBufferTex=0A =
@ stub D3DXCreatePRTCompBuffer=0A @ stub D3DXCreatePRTEngine=0A-@ stub D3DX=
CreateRenderToEnvMap=0A+@ stdcall D3DXCreateRenderToEnvMap(ptr long long lo=
ng long long ptr)=0A @ stub D3DXCreateRenderToSurface=0A @ stdcall D3DXCrea=
teSPMesh(ptr ptr ptr ptr ptr) d3dx8.D3DXCreateSPMesh=0A @ stub D3DXCreateSk=
inInfo=0Adiff --git a/dlls/d3dx9_36/d3dx9_36_private.h b/dlls/d3dx9_36/d3dx=
9_36_private.h=0Aindex 8392000..e86dde1 100644=0A--- a/dlls/d3dx9_36/d3dx9_=
36_private.h=0A+++ b/dlls/d3dx9_36/d3dx9_36_private.h=0A@@ -54,4 +54,13 @@ =
typedef struct ID3DXSpriteImpl=0A   /* ID3DXSprite fields */=0A } ID3DXSpri=
teImpl;=0A =0A+typedef struct ID3DXRenderToEnvMapImpl=0A+{=0A+  /* IUnknown=
 fields */=0A+  const ID3DXRenderToEnvMapVtbl *lpVtbl;=0A+  LONG ref;=0A+=
=0A+  /* ID3DXRenderToEnvMap fields */=0A+} ID3DXRenderToEnvMapImpl;=0A+=0A=
 #endif /* __WINE_D3DX9_36_PRIVATE_H */=0Adiff --git a/dlls/d3dx9_36/rtem.c=
 b/dlls/d3dx9_36/rtem.c=0Anew file mode 100644=0Aindex 0000000..0d6e22a=0A-=
-- /dev/null=0A+++ b/dlls/d3dx9_36/rtem.c=0A@@ -0,0 +1,168 @@=0A+/*=0A+ * C=
opyright (C) 2008 Tony Wasserka=0A+ *=0A+ * This library is free software; =
you can redistribute it and/or=0A+ * modify it under the terms of the GNU L=
esser General Public=0A+ * License as published by the Free Software Founda=
tion; either=0A+ * version 2.1 of the License, or (at your option) any late=
r version.=0A+ *=0A+ * This library is distributed in the hope that it will=
 be useful,=0A+ * but WITHOUT ANY WARRANTY; without even the implied warran=
ty of=0A+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the G=
NU=0A+ * Lesser General Public License for more details.=0A+ *=0A+ * You sh=
ould have received a copy of the GNU Lesser General Public=0A+ * License al=
ong with this library; if not, write to the Free Software=0A+ * Foundation,=
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA=0A+ *=0A+ */=
=0A+=0A+#include "config.h"=0A+#include "wine/port.h"=0A+=0A+#include "wine=
/debug.h"=0A+#include "d3dx9_36_private.h"=0A+=0A+WINE_DEFAULT_DEBUG_CHANNE=
L(d3dx);=0A+=0A+static HRESULT WINAPI ID3DXRenderToEnvMapImpl_QueryInterfac=
e(LPD3DXRenderToEnvMap iface, REFIID riid, LPVOID *object)=0A+{=0A+    ID3D=
XRenderToEnvMapImpl *This=3D(ID3DXRenderToEnvMapImpl*)iface;=0A+=0A+    TRA=
CE("(%p): QueryInterface from %s\n", This, debugstr_guid(riid));=0A+    if(=
IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_ID3DXRenderToEnv=
Map)) {=0A+        IUnknown_AddRef(iface);=0A+        *object=3DThis;=0A+  =
      return S_OK;=0A+    }=0A+    WARN("(%p)->(%s, %p): not found\n", ifac=
e, debugstr_guid(riid), *object);=0A+    return E_NOINTERFACE;=0A+}=0A+=0A+=
static ULONG WINAPI ID3DXRenderToEnvMapImpl_AddRef(LPD3DXRenderToEnvMap ifa=
ce)=0A+{=0A+    ID3DXRenderToEnvMapImpl *This=3D(ID3DXRenderToEnvMapImpl*)i=
face;=0A+    ULONG ref=3DInterlockedIncrement(&This->ref);=0A+    TRACE("(%=
p): AddRef from %d\n", This, ref-1);=0A+    return ref;=0A+}=0A+=0A+static =
ULONG WINAPI ID3DXRenderToEnvMapImpl_Release(LPD3DXRenderToEnvMap iface)=0A=
+{=0A+    ID3DXRenderToEnvMapImpl *This=3D(ID3DXRenderToEnvMapImpl*)iface;=
=0A+    ULONG ref=3DInterlockedDecrement(&This->ref);=0A+    TRACE("(%p): R=
eleaseRef to %d\n", This, ref);=0A+=0A+    if(ref=3D=3D0) {=0A+        Heap=
Free(GetProcessHeap(), 0, This);=0A+    }=0A+    return ref;=0A+}=0A+=0A+st=
atic HRESULT WINAPI ID3DXRenderToEnvMapImpl_GetDevice(LPD3DXRenderToEnvMap =
iface, LPDIRECT3DDEVICE9 *device)=0A+{=0A+    ID3DXRenderToEnvMapImpl *This=
=3D(ID3DXRenderToEnvMapImpl*)iface;=0A+    FIXME("(%p): stub\n", This);=0A+=
    return D3D_OK;=0A+}=0A+=0A+static HRESULT WINAPI ID3DXRenderToEnvMapImp=
l_GetDesc(LPD3DXRenderToEnvMap iface, D3DXRTE_DESC *desc)=0A+{=0A+    ID3DX=
RenderToEnvMapImpl *This=3D(ID3DXRenderToEnvMapImpl*)iface;=0A+    FIXME("(=
%p): stub\n", This);=0A+    return D3D_OK;=0A+}=0A+=0A+static HRESULT WINAP=
I ID3DXRenderToEnvMapImpl_BeginCube(LPD3DXRenderToEnvMap iface, LPDIRECT3DC=
UBETEXTURE9 cubetex)=0A+{=0A+    ID3DXRenderToEnvMapImpl *This=3D(ID3DXRend=
erToEnvMapImpl*)iface;=0A+    FIXME("(%p): stub\n", This);=0A+    return D3=
D_OK;=0A+}=0A+=0A+static HRESULT WINAPI ID3DXRenderToEnvMapImpl_BeginSphere=
(LPD3DXRenderToEnvMap iface, LPDIRECT3DTEXTURE9 tex)=0A+{=0A+    ID3DXRende=
rToEnvMapImpl *This=3D(ID3DXRenderToEnvMapImpl*)iface;=0A+    FIXME("(%p): =
stub\n", This);=0A+    return D3D_OK;=0A+}=0A+=0A+static HRESULT WINAPI ID3=
DXRenderToEnvMapImpl_BeginHemisphere(LPD3DXRenderToEnvMap iface, LPDIRECT3D=
TEXTURE9 texzpos, LPDIRECT3DTEXTURE9 texzneg)=0A+{=0A+    ID3DXRenderToEnvM=
apImpl *This=3D(ID3DXRenderToEnvMapImpl*)iface;=0A+    FIXME("(%p): stub\n"=
, This);=0A+    return D3D_OK;=0A+}=0A+=0A+static HRESULT WINAPI ID3DXRende=
rToEnvMapImpl_BeginParabolic(LPD3DXRenderToEnvMap iface, LPDIRECT3DTEXTURE9=
 texzpos, LPDIRECT3DTEXTURE9 texzneg)=0A+{=0A+    ID3DXRenderToEnvMapImpl *=
This=3D(ID3DXRenderToEnvMapImpl*)iface;=0A+    FIXME("(%p): stub\n", This);=
=0A+    return D3D_OK;=0A+}=0A+=0A+static HRESULT WINAPI ID3DXRenderToEnvMa=
pImpl_Face(LPD3DXRenderToEnvMap iface, D3DCUBEMAP_FACES face, DWORD mipfilt=
er)=0A+{=0A+    ID3DXRenderToEnvMapImpl *This=3D(ID3DXRenderToEnvMapImpl*)i=
face;=0A+    FIXME("(%p): stub\n", This);=0A+    return D3D_OK;=0A+}=0A+=0A=
+static HRESULT WINAPI ID3DXRenderToEnvMapImpl_End(LPD3DXRenderToEnvMap ifa=
ce, DWORD mipfilter)=0A+{=0A+    ID3DXRenderToEnvMapImpl *This=3D(ID3DXRend=
erToEnvMapImpl*)iface;=0A+    FIXME("(%p): stub\n", This);=0A+    return D3=
D_OK;=0A+}=0A+=0A+static HRESULT WINAPI ID3DXRenderToEnvMapImpl_OnLostDevic=
e(LPD3DXRenderToEnvMap iface)=0A+{=0A+    ID3DXRenderToEnvMapImpl *This=3D(=
ID3DXRenderToEnvMapImpl*)iface;=0A+    FIXME("(%p): stub\n", This);=0A+    =
return D3D_OK;=0A+}=0A+=0A+static HRESULT WINAPI ID3DXRenderToEnvMapImpl_On=
ResetDevice(LPD3DXRenderToEnvMap iface)=0A+{=0A+    ID3DXRenderToEnvMapImpl=
 *This=3D(ID3DXRenderToEnvMapImpl*)iface;=0A+    FIXME("(%p): stub\n", This=
);=0A+    return D3D_OK;=0A+}=0A+=0A+static const ID3DXRenderToEnvMapVtbl D=
3DXRenderToEnvMap_Vtbl =3D=0A+{=0A+    /*** IUnknown methods ***/=0A+    ID=
3DXRenderToEnvMapImpl_QueryInterface,=0A+    ID3DXRenderToEnvMapImpl_AddRef=
,=0A+    ID3DXRenderToEnvMapImpl_Release,=0A+    /*** ID3DXRenderToEnvMap m=
ethods ***/=0A+    ID3DXRenderToEnvMapImpl_GetDevice,=0A+    ID3DXRenderToE=
nvMapImpl_GetDesc,=0A+    ID3DXRenderToEnvMapImpl_BeginCube,=0A+    ID3DXRe=
nderToEnvMapImpl_BeginSphere,=0A+    ID3DXRenderToEnvMapImpl_BeginHemispher=
e,=0A+    ID3DXRenderToEnvMapImpl_BeginParabolic,=0A+    ID3DXRenderToEnvMa=
pImpl_Face,=0A+    ID3DXRenderToEnvMapImpl_End,=0A+    ID3DXRenderToEnvMapI=
mpl_OnLostDevice,=0A+    ID3DXRenderToEnvMapImpl_OnResetDevice=0A+};=0A+=0A=
+HRESULT WINAPI D3DXCreateRenderToEnvMap(LPDIRECT3DDEVICE9 device, UINT siz=
e, UINT miplevels, D3DFORMAT format, BOOL stencil, D3DFORMAT stencil_format=
, LPD3DXRenderToEnvMap *rtem)=0A+{=0A+    ID3DXRenderToEnvMapImpl *object;=
=0A+=0A+    FIXME("stub\n");=0A+=0A+    object=3DHeapAlloc(GetProcessHeap()=
, HEAP_ZERO_MEMORY, sizeof(ID3DXRenderToEnvMapImpl));=0A+    if(object=3D=
=3DNULL) {=0A+        *rtem=3DNULL;=0A+        return E_OUTOFMEMORY;=0A+   =
 }=0A+    object->lpVtbl=3D&D3DXRenderToEnvMap_Vtbl;=0A+    object->ref=3D1=
;=0A+=0A+    *rtem=3D(LPD3DXRenderToEnvMap)object;=0A+=0A+    return D3D_OK=
;=0A+}=0A-- =0A1.5.3.7=0A=0A

--b8ea4e357c34312c86219923723b49a63--



More information about the wine-patches mailing list