Tony Wasserka : d3dx9: Add stubs for the D3DXGetImageInfo function group.
Alexandre Julliard
julliard at winehq.org
Tue May 26 09:24:58 CDT 2009
Module: wine
Branch: master
Commit: bf353f180d622cbf8508af7dbc9590e33293a6ab
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf353f180d622cbf8508af7dbc9590e33293a6ab
Author: Tony Wasserka <tony.wasserka at freenet.de>
Date: Sat May 23 12:56:19 2009 +0200
d3dx9: Add stubs for the D3DXGetImageInfo function group.
---
dlls/d3dx9_36/Makefile.in | 3 +-
dlls/d3dx9_36/d3dx9_36.spec | 10 +++---
dlls/d3dx9_36/surface.c | 69 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 76 insertions(+), 6 deletions(-)
diff --git a/dlls/d3dx9_36/Makefile.in b/dlls/d3dx9_36/Makefile.in
index 7cd5c3c..16fd41c 100644
--- a/dlls/d3dx9_36/Makefile.in
+++ b/dlls/d3dx9_36/Makefile.in
@@ -12,7 +12,8 @@ C_SRCS = \
math.c \
mesh.c \
shader.c \
- sprite.c
+ sprite.c \
+ surface.c
RC_SRCS = version.rc
diff --git a/dlls/d3dx9_36/d3dx9_36.spec b/dlls/d3dx9_36/d3dx9_36.spec
index 8a5082d..1c8eecb 100644
--- a/dlls/d3dx9_36/d3dx9_36.spec
+++ b/dlls/d3dx9_36/d3dx9_36.spec
@@ -151,11 +151,11 @@
@ stub D3DXGetDeclVertexSize
@ stdcall D3DXGetDriverLevel(ptr)
@ stdcall D3DXGetFVFVertexSize(long)
-@ stdcall D3DXGetImageInfoFromFileA(ptr ptr) d3dx8.D3DXGetImageInfoFromFileA
-@ stdcall D3DXGetImageInfoFromFileInMemory(ptr long ptr) d3dx8.D3DXGetImageInfoFromFileInMemory
-@ stdcall D3DXGetImageInfoFromFileW(ptr ptr) d3dx8.D3DXGetImageInfoFromFileW
-@ stdcall D3DXGetImageInfoFromResourceA(long ptr ptr) d3dx8.D3DXGetImageInfoFromResourceA
-@ stdcall D3DXGetImageInfoFromResourceW(long ptr ptr) d3dx8.D3DXGetImageInfoFromResourceW
+@ stdcall D3DXGetImageInfoFromFileA(str ptr)
+@ stdcall D3DXGetImageInfoFromFileInMemory(ptr long ptr)
+@ stdcall D3DXGetImageInfoFromFileW(wstr ptr)
+@ stdcall D3DXGetImageInfoFromResourceA(long str ptr)
+@ stdcall D3DXGetImageInfoFromResourceW(long wstr ptr)
@ stdcall D3DXGetPixelShaderProfile(ptr)
@ stub D3DXGetShaderConstantTable
@ stub D3DXGetShaderConstantTableEx
diff --git a/dlls/d3dx9_36/surface.c b/dlls/d3dx9_36/surface.c
new file mode 100644
index 0000000..968e3ef
--- /dev/null
+++ b/dlls/d3dx9_36/surface.c
@@ -0,0 +1,69 @@
+/*
+ * Copyright (C) 2009 Tony Wasserka
+ *
+ * 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 "wine/debug.h"
+#include "d3dx9_36_private.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
+
+
+/************************************************************
+ * D3DXGetImageInfoFromFileInMemory
+ *
+ * Fills a D3DXIMAGE_INFO structure with info about an image
+ *
+ * PARAMS
+ * data [I] pointer to the image file data
+ * datasize [I] size of the passed data
+ * info [O] pointer to the destination structure
+ *
+ * RETURNS
+ * Success: D3D_OK
+ * Failure: D3DERR_INVALIDCALL
+ *
+ */
+HRESULT WINAPI D3DXGetImageInfoFromFileInMemory(LPCVOID data, UINT datasize, D3DXIMAGE_INFO *info)
+{
+ FIXME("stub\n");
+ return E_NOTIMPL;
+}
+
+HRESULT WINAPI D3DXGetImageInfoFromFileA(LPCSTR file, D3DXIMAGE_INFO *info)
+{
+ FIXME("stub\n");
+ return E_NOTIMPL;
+}
+
+HRESULT WINAPI D3DXGetImageInfoFromFileW(LPCWSTR file, D3DXIMAGE_INFO *info)
+{
+ FIXME("stub\n");
+ return E_NOTIMPL;
+}
+
+HRESULT WINAPI D3DXGetImageInfoFromResourceA(HMODULE module, LPCSTR resource, D3DXIMAGE_INFO *info)
+{
+ FIXME("stub\n");
+ return E_NOTIMPL;
+}
+
+HRESULT WINAPI D3DXGetImageInfoFromResourceW(HMODULE module, LPCWSTR resource, D3DXIMAGE_INFO *info)
+{
+ FIXME("stub\n");
+ return E_NOTIMPL;
+}
More information about the wine-cvs
mailing list