Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d9df6460
Commit
d9df6460
authored
Jun 24, 2003
by
Raphael Junqueira
Committed by
Alexandre Julliard
Jun 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9 headers are better when they build.
parent
1d055249
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
61 deletions
+24
-61
d3d9.h
include/d3d9.h
+10
-6
d3d9types.h
include/d3d9types.h
+14
-55
No files found.
include/d3d9.h
View file @
d9df6460
...
...
@@ -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 @@ ICOM_DEFINE(IDirect3DSwapChain9,IUnknown)
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 @@ ICOM_DEFINE(IDirect3DSurface9,IUnknown)
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 @@ ICOM_DEFINE(IDirect3DResource9,IUnknown)
*/
#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 @@ ICOM_DEFINE(IDirect3DVertexBuffer9,IDirect3DResource9)
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
(
IDirect3DIndexBuffer
8
,
IDirect3DResource8
)
ICOM_DEFINE
(
IDirect3DIndexBuffer
9
,
IDirect3DResource9
)
#undef INTERFACE
#ifdef COBJMACROS
...
...
@@ -851,13 +855,13 @@ ICOM_DEFINE(IDirect3DVertexShader9,IUnknown)
/*****************************************************************************
* IDirect3DPixelShader9 interface
*/
#define I
COM_I
NTERFACE 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 I
COM_I
NTERFACE
#undef INTERFACE
#ifdef COBJMACROS
/*** IUnknown methods ***/
...
...
include/d3d9types.h
View file @
d9df6460
...
...
@@ -1121,17 +1121,17 @@ typedef enum _D3DSAMPLERSTATETYPE {
/*****************************************************************************
* Direct 3D v
8
typedefs
* Direct 3D v
9
typedefs
*/
typedef
DWORD
D3DCOLOR
;
/*****************************************************************************
* Direct 3D v
8
structures
* Direct 3D v
9
structures
*/
typedef
struct
_D3DADAPTER_IDENTIFIER
8
{
typedef
struct
_D3DADAPTER_IDENTIFIER
9
{
char
Driver
[
MAX_DEVICE_IDENTIFIER_STRING
];
char
Description
[
MAX_DEVICE_IDENTIFIER_STRING
];
char
DeviceName
[
32
];
/* Device name for GDI (ex. \\.\DISPLAY1) */
LARGE_INTEGER
DriverVersion
;
DWORD
VendorId
;
DWORD
DeviceId
;
...
...
@@ -1141,7 +1141,7 @@ typedef struct _D3DADAPTER_IDENTIFIER8 {
GUID
DeviceIdentifier
;
DWORD
WHQLLevel
;
}
D3DADAPTER_IDENTIFIER
8
;
}
D3DADAPTER_IDENTIFIER
9
;
typedef
struct
_D3DBOX
{
UINT
Left
;
...
...
@@ -1238,14 +1238,6 @@ typedef struct _D3DMATERIAL9 {
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 +1324,14 @@ typedef struct _D3DVERTEXBUFFER_DESC {
DWORD
FVF
;
}
D3DVERTEXBUFFER_DESC
;
typedef
struct
_D3DVIEWPORT
8
{
typedef
struct
_D3DVIEWPORT
9
{
DWORD
X
;
DWORD
Y
;
DWORD
Width
;
DWORD
Height
;
float
MinZ
;
float
MaxZ
;
}
D3DVIEWPORT
8
;
}
D3DVIEWPORT
9
;
typedef
struct
_D3DVOLUME_DESC
{
D3DFORMAT
Format
;
...
...
@@ -1352,46 +1344,13 @@ typedef struct _D3DVOLUME_DESC {
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 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment