[dx59] d3d9 headers fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

 Changelog:
  - d3d9 headers are better when they build

Regards,
Raphael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+9HvAp7NA3AmQTU4RAqYcAJ0ZzhbvkWdW4krcvlUjiCSBnt4yjACfebzL
TUaYw6YJrO8WASn7t6OYgeA=
=iHIY
-----END PGP SIGNATURE-----
Index: d3d9.h
===================================================================
RCS file: /home/wine/wine/include/d3d9.h,v
retrieving revision 1.1
diff -u -r1.1 d3d9.h
--- d3d9.h	20 Jun 2003 21:28:34 -0000	1.1
+++ d3d9.h	21 Jun 2003 15:34:21 -0000
@@ -20,6 +20,10 @@
 #ifndef __WINE_D3D9_H
 #define __WINE_D3D9_H
 
+#ifndef DIRECT3D_VERSION
+#define DIRECT3D_VERSION  0x0900
+#endif
+
 #include "objbase.h"
 
 #include "d3d9types.h"
@@ -516,7 +520,7 @@
     STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE; \
     STDMETHOD(UnlockRect)(THIS) PURE; \
     STDMETHOD(GetDC)(THIS_ HDC* phdc) PURE; \
-    STDMETHOD(ReleaseDC)(THIS_ HDC hdc) PURE; \
+    STDMETHOD(ReleaseDC)(THIS_ HDC hdc) PURE;
 ICOM_DEFINE(IDirect3DSurface9,IUnknown)
 #undef INTERFACE
 
@@ -555,7 +559,7 @@
     STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; \
     STDMETHOD_(DWORD, GetPriority)(THIS) PURE; \
     STDMETHOD_(void, PreLoad)(THIS) PURE; \
-    STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; \
+    STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
 ICOM_DEFINE(IDirect3DResource9,IUnknown)
 #undef INTERFACE
 
@@ -580,7 +584,7 @@
  */
 #define INTERFACE IDirect3DVertexBuffer9
 #define IDirect3DVertexBuffer9_METHODS \
-    IDirect3DResource9_METHODS \ 
+    IDirect3DResource9_METHODS \
     STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, void** ppbData, DWORD Flags) PURE; \
     STDMETHOD(Unlock)(THIS) PURE; \
     STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC* pDesc) PURE;
@@ -616,7 +620,7 @@
     STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, void** ppbData, DWORD Flags) PURE; \
     STDMETHOD(Unlock)(THIS) PURE; \
     STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC* pDesc) PURE;
-ICOM_DEFINE(IDirect3DIndexBuffer8,IDirect3DResource8)
+ICOM_DEFINE(IDirect3DIndexBuffer9,IDirect3DResource9)
 #undef INTERFACE
 
 #ifdef COBJMACROS
@@ -851,13 +855,13 @@
 /*****************************************************************************
  * IDirect3DPixelShader9 interface
  */
-#define ICOM_INTERFACE IDirect3DPixelShader9
+#define INTERFACE IDirect3DPixelShader9
 #define IDirect3DPixelShader9_METHODS \
     IUnknown_METHODS \
     STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; \
     STDMETHOD(GetFunction)(THIS_ void*, UINT* pSizeOfData) PURE;
 ICOM_DEFINE(IDirect3DPixelShader9,IUnknown)
-#undef ICOM_INTERFACE
+#undef INTERFACE
 
 #ifdef COBJMACROS
 /*** IUnknown methods ***/
Index: d3d9types.h
===================================================================
RCS file: /home/wine/wine/include/d3d9types.h,v
retrieving revision 1.1
diff -u -r1.1 d3d9types.h
--- d3d9types.h	20 Jun 2003 21:28:34 -0000	1.1
+++ d3d9types.h	21 Jun 2003 15:34:24 -0000
@@ -200,7 +200,7 @@
 
 #define MAXD3DDECLUSAGE         D3DDECLUSAGE_SAMPLE
 #define MAXD3DDECLUSAGEINDEX    15
-#define MAXD3DDECLLENGTH        64 /* does not include "end" marker vertex element */
+#define MAXD3DDECLLENGTH        64 // does not include "end" marker vertex element
 
 typedef enum _D3DDECLMETHOD {
   D3DDECLMETHOD_DEFAULT = 0,
@@ -1121,18 +1121,25 @@
 
 
 /*****************************************************************************
- * Direct 3D v8 typedefs
+ * Direct 3D v9 typedefs
  */
 typedef DWORD D3DCOLOR;
 
 /*****************************************************************************
- * Direct 3D v8 structures
+ * Direct 3D v9 structures
  */
-typedef struct _D3DADAPTER_IDENTIFIER8 {
+typedef struct _D3DADAPTER_IDENTIFIER9 {
     char            Driver[MAX_DEVICE_IDENTIFIER_STRING];
     char            Description[MAX_DEVICE_IDENTIFIER_STRING];
+    char            DeviceName[32];         /* Device name for GDI (ex. \\.\DISPLAY1) */
+
+#ifdef _WIN32
+    LARGE_INTEGER   DriverVersion;          /* Defined for 32 bit components */
+#else
+    DWORD           DriverVersionLowPart;   /* Defined for 16 bit driver components */
+    DWORD           DriverVersionHighPart;
+#endif
 
-    LARGE_INTEGER   DriverVersion;
     DWORD           VendorId;
     DWORD           DeviceId;
     DWORD           SubSysId;
@@ -1141,7 +1148,7 @@
     GUID            DeviceIdentifier;
 
     DWORD           WHQLLevel;
-} D3DADAPTER_IDENTIFIER8;
+} D3DADAPTER_IDENTIFIER9;
 
 typedef struct _D3DBOX {
     UINT                Left;
@@ -1238,14 +1245,6 @@
     float           Power;
 } D3DMATERIAL9;
 
-typedef enum _D3DMATERIALCOLORSOURCE
-{
-    D3DMCS_MATERIAL         = 0,
-    D3DMCS_COLOR1           = 1,
-    D3DMCS_COLOR2           = 2,
-    D3DMCS_FORCE_DWORD      = 0x7fffffff,
-} D3DMATERIALCOLORSOURCE;
-
 typedef struct _D3DMATRIX {
     union {
         struct {
@@ -1332,14 +1331,14 @@
     DWORD               FVF;
 } D3DVERTEXBUFFER_DESC;
 
-typedef struct _D3DVIEWPORT8 {
+typedef struct _D3DVIEWPORT9 {
     DWORD       X;
     DWORD       Y;
     DWORD       Width;
     DWORD       Height;
     float       MinZ;
     float       MaxZ;
-} D3DVIEWPORT8;
+} D3DVIEWPORT9;
 
 typedef struct _D3DVOLUME_DESC {
     D3DFORMAT           Format;
@@ -1352,46 +1351,14 @@
     UINT                Depth;
 } D3DVOLUME_DESC;
 
-
-
-
-#undef  D3DFVF_POSITION_MASK /* DX9 value == DX8 Value | 0x4000 */
-#define D3DFVF_POSITION_MASK     0x400E
-#define D3DFVF_XYZW              0x4002
-#define D3DFVF_LASTBETA_D3DCOLOR 0x8000
-#undef  D3DFVF_RESERVED2 
-#define D3DFVF_RESERVED2         0x6000
-
-typedef enum _D3DDECLUSAGE {
-  D3DDECLUSAGE_POSITION     =  0,
-  D3DDECLUSAGE_BLENDWEIGHT  =  1,
-  D3DDECLUSAGE_BLENDINDICES =  2,
-  D3DDECLUSAGE_NORMAL       =  3,
-  D3DDECLUSAGE_PSIZE        =  4,
-  D3DDECLUSAGE_TEXCOORD     =  5,
-  D3DDECLUSAGE_TANGENT      =  6,
-  D3DDECLUSAGE_BINORMAL     =  7,
-  D3DDECLUSAGE_TESSFACTOR   =  8,
-  D3DDECLUSAGE_POSITIONT    =  9,
-  D3DDECLUSAGE_COLOR        = 10,
-  D3DDECLUSAGE_FOG          = 11,
-  D3DDECLUSAGE_DEPTH        = 12,
-  D3DDECLUSAGE_SAMPLE       = 13
-} D3DDECLUSAGE;
-
-#define MAXD3DDECLUSAGE         D3DDECLUSAGE_SAMPLE
-#define MAXD3DDECLUSAGEINDEX    15
-#define MAXD3DDECLLENGTH        64
-
-typedef enum _D3DDECLMETHOD {
-  D3DDECLMETHOD_DEFAULT          = 0,
-  D3DDECLMETHOD_PARTIALU         = 1,
-  D3DDECLMETHOD_PARTIALV         = 2,
-  D3DDECLMETHOD_CROSSUV          = 3,
-  D3DDECLMETHOD_UV               = 4,
-  D3DDECLMETHOD_LOOKUP           = 5,
-  D3DDECLMETHOD_LOOKUPPRESAMPLED = 6
-} D3DDECLMETHOD;
+typedef enum _D3DQUERYTYPE {
+  D3DQUERYTYPE_VCACHE           = 4, 
+  D3DQUERYTYPE_RESOURCEMANAGER  = 5, 
+  D3DQUERYTYPE_VERTEXSTATS      = 6, 
+  D3DQUERYTYPE_EVENT            = 8, 
+  D3DQUERYTYPE_OCCLUSION        = 9
+} D3DQUERYTYPE;
 
 
 #endif /* __WINE_D3D9TYPES_H */
+

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux