[2/2] d3dx8: Add the d3dx8mesh.h header and move the relevant function declarations there. Include d3dx8mesh.h in d3dx8.h and add some commented out ones as reminders.
Francois Gouget
fgouget at free.fr
Mon Feb 4 17:04:42 CST 2008
---
include/d3dx8.h | 4 ++++
include/d3dx8core.h | 2 --
include/d3dx8mesh.h | 36 ++++++++++++++++++++++++++++++++++++
3 files changed, 40 insertions(+), 2 deletions(-)
create mode 100644 include/d3dx8mesh.h
diff --git a/include/d3dx8.h b/include/d3dx8.h
index 52ddaf3..0ae27c3 100644
--- a/include/d3dx8.h
+++ b/include/d3dx8.h
@@ -24,5 +24,9 @@
#include <d3dx8math.h>
#include <d3dx8core.h>
+/* FIXME: #include <d3dx8tex.h> */
+#include <d3dx8mesh.h>
+/* FIXME: #include <d3dx8shape.h> */
+/* FIXME: #include <d3dx8effect.h> */
#endif
diff --git a/include/d3dx8core.h b/include/d3dx8core.h
index 7e6806b..fb99e7a 100644
--- a/include/d3dx8core.h
+++ b/include/d3dx8core.h
@@ -109,9 +109,7 @@ DECLARE_INTERFACE_(ID3DXFont,IUnknown)
extern "C" {
#endif
-HRESULT WINAPI D3DXCreateBuffer(DWORD NumBytes, LPD3DXBUFFER* ppBuffer);
HRESULT WINAPI D3DXCreateFont(LPDIRECT3DDEVICE8 pDevice, HFONT hFont, LPD3DXFONT* ppFont);
-UINT WINAPI D3DXGetFVFVertexSize(DWORD FVF);
HRESULT WINAPI D3DXAssembleShader(LPCVOID pSrcData, UINT SrcDataLen, DWORD Flags,
LPD3DXBUFFER* ppConstants,
LPD3DXBUFFER* ppCompiledShader,
diff --git a/include/d3dx8mesh.h b/include/d3dx8mesh.h
new file mode 100644
index 0000000..f1eab5c
--- /dev/null
+++ b/include/d3dx8mesh.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2008 Francois Gouget
+ *
+ * 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
+ */
+
+#ifndef __WINE_D3DX8MESH_H
+#define __WINE_D3DX8MESH_H
+
+#include <d3d8.h>
+#include <dxfile.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+HRESULT WINAPI D3DXCreateBuffer(DWORD,LPD3DXBUFFER*);
+UINT WINAPI D3DXGetFVFVertexSize(DWORD);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __WINE_D3DX8MESH_H */
--
1.5.3.8
More information about the wine-patches
mailing list