Module: wine
Branch: master
Commit: 62981582dd447b3b424591ad707194045d6cdaf3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=62981582dd447b3b424591ad7…
Author: Christian Costa <titan.costa(a)wanadoo.fr>
Date: Fri Mar 19 11:55:23 2010 +0100
d3dx9_36: Add stub for D3DXCreateEffect.
---
dlls/d3dx9_36/Makefile.in | 1 +
dlls/d3dx9_36/d3dx9_36.spec | 2 +-
dlls/d3dx9_36/effect.c | 45 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 47 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dx9_36/Makefile.in b/dlls/d3dx9_36/Makefile.in
index 39b6d84..8bbd78d 100644
--- a/dlls/d3dx9_36/Makefile.in
+++ b/dlls/d3dx9_36/Makefile.in
@@ -9,6 +9,7 @@ IMPORTS = d3d9 gdi32 user32 kernel32
C_SRCS = \
core.c \
d3dx9_36_main.c \
+ effect.c \
font.c \
math.c \
mesh.c \
diff --git a/dlls/d3dx9_36/d3dx9_36.spec b/dlls/d3dx9_36/d3dx9_36.spec
index 2034a04..fbcce68 100644
--- a/dlls/d3dx9_36/d3dx9_36.spec
+++ b/dlls/d3dx9_36/d3dx9_36.spec
@@ -46,7 +46,7 @@
@ stub D3DXCreateCubeTextureFromResourceExW
@ stub D3DXCreateCubeTextureFromResourceW
@ stub D3DXCreateCylinder
-@ stub D3DXCreateEffect
+@ stdcall D3DXCreateEffect(ptr ptr long ptr ptr long ptr ptr ptr)
@ stub D3DXCreateEffectCompiler
@ stub D3DXCreateEffectCompilerFromFileA
@ stub D3DXCreateEffectCompilerFromFileW
diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c
new file mode 100644
index 0000000..92c6f78
--- /dev/null
+++ b/dlls/d3dx9_36/effect.c
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2010 Christian Costa
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "config.h"
+#include "wine/port.h"
+#include "wine/debug.h"
+#include "wine/unicode.h"
+#include "windef.h"
+#include "wingdi.h"
+#include "d3dx9.h"
+#include "d3dx9effect.h"
+#include "d3dx9_36_private.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
+
+HRESULT WINAPI D3DXCreateEffect(LPDIRECT3DDEVICE9 device,
+ LPCVOID srcdata,
+ UINT srcdatalen,
+ CONST D3DXMACRO* defines,
+ LPD3DXINCLUDE include,
+ DWORD flags,
+ LPD3DXEFFECTPOOL pool,
+ LPD3DXEFFECT* effect,
+ LPD3DXBUFFER* compilation_errors)
+{
+ FIXME("(%p, %p, %u, %p, %p, %#x, %p, %p, %p): stub\n", device, srcdata, srcdatalen, defines, include, flags,
+ pool, effect, compilation_errors);
+
+ return E_NOTIMPL;
+}