Skip to content

Commit 94e2c02

Browse files
committed
inc: winapi: Fix DirectX headers
Previously they didn't compile (at least not all of them); also it seems like several declarations were missing. (cherry picked from commit 9e36366)
1 parent 1044d17 commit 94e2c02

File tree

10 files changed

+221
-30
lines changed

10 files changed

+221
-30
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Version 1.02.1
1111
- 1.02.0 regression: OpenGL binding: glGetString() and some others use ZString Ptr instead of GLubyte Ptr again
1212
- 1.02.0 regression: Windows API binding: REFIID and some other REF* types were missing
1313
- bindings: Various previously untranslated (or wrongly translated) #defines in SDL2, X11, crt/pthread, Windows API
14+
- Windows API binding: DirectX headers missed some declarations and some didn't compile
1415

1516

1617
Version 1.02.0

inc/win/d3d9.bi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ const D3DADAPTER_DEFAULT = 0
3939
const _FACD3D = &h876
4040
#define MAKE_D3DHRESULT(code) MAKE_HRESULT(1, _FACD3D, code)
4141
#define MAKE_D3DSTATUS(code) MAKE_HRESULT(0, _FACD3D, code)
42+
#define D3D_OK S_OK
43+
#define D3DERR_WRONGTEXTUREFORMAT MAKE_D3DHRESULT(2072)
44+
#define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_D3DHRESULT(2073)
45+
#define D3DERR_UNSUPPORTEDCOLORARG MAKE_D3DHRESULT(2074)
46+
#define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_D3DHRESULT(2075)
47+
#define D3DERR_UNSUPPORTEDALPHAARG MAKE_D3DHRESULT(2076)
48+
#define D3DERR_TOOMANYOPERATIONS MAKE_D3DHRESULT(2077)
49+
#define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_D3DHRESULT(2078)
50+
#define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_D3DHRESULT(2079)
51+
#define D3DERR_CONFLICTINGRENDERSTATE MAKE_D3DHRESULT(2081)
52+
#define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_D3DHRESULT(2082)
53+
#define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_D3DHRESULT(2086)
4254
#define D3DERR_DRIVERINTERNALERROR MAKE_D3DHRESULT(2087)
4355
#define D3DERR_NOTFOUND MAKE_D3DHRESULT(2150)
4456
#define D3DERR_MOREDATA MAKE_D3DHRESULT(2151)

inc/win/d3d9caps.bi

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,62 @@ const D3DCURSORCAPS_LOWRES = 2
1313
#define D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES __MSABI_LONG(&h00000010)
1414
#define D3DDEVCAPS2_PRESAMPLEDDMAPNPATCH __MSABI_LONG(&h00000020)
1515
#define D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET __MSABI_LONG(&h00000040)
16+
const D3DDEVCAPS_EXECUTESYSTEMMEMORY = &h0000010
17+
const D3DDEVCAPS_EXECUTEVIDEOMEMORY = &h0000020
18+
const D3DDEVCAPS_TLVERTEXSYSTEMMEMORY = &h0000040
19+
const D3DDEVCAPS_TLVERTEXVIDEOMEMORY = &h0000080
20+
const D3DDEVCAPS_TEXTURESYSTEMMEMORY = &h0000100
21+
const D3DDEVCAPS_TEXTUREVIDEOMEMORY = &h0000200
22+
const D3DDEVCAPS_DRAWPRIMTLVERTEX = &h0000400
23+
const D3DDEVCAPS_CANRENDERAFTERFLIP = &h0000800
24+
const D3DDEVCAPS_TEXTURENONLOCALVIDMEM = &h0001000
25+
const D3DDEVCAPS_DRAWPRIMITIVES2 = &h0002000
26+
const D3DDEVCAPS_SEPARATETEXTUREMEMORIES = &h0004000
27+
const D3DDEVCAPS_DRAWPRIMITIVES2EX = &h0008000
28+
const D3DDEVCAPS_HWTRANSFORMANDLIGHT = &h0010000
29+
const D3DDEVCAPS_CANBLTSYSTONONLOCAL = &h0020000
30+
const D3DDEVCAPS_HWRASTERIZATION = &h0080000
1631
const D3DDEVCAPS_PUREDEVICE = &h0100000
1732
const D3DDEVCAPS_QUINTICRTPATCHES = &h0200000
1833
const D3DDEVCAPS_RTPATCHES = &h0400000
1934
const D3DDEVCAPS_RTPATCHHANDLEZERO = &h0800000
2035
const D3DDEVCAPS_NPATCHES = &h1000000
36+
const D3DFVFCAPS_TEXCOORDCOUNTMASK = &h00FFFF
37+
const D3DFVFCAPS_DONOTSTRIPELEMENTS = &h080000
2138
const D3DFVFCAPS_PSIZE = &h100000
2239
const D3DLINECAPS_TEXTURE = &h01
2340
const D3DLINECAPS_ZTEST = &h02
2441
const D3DLINECAPS_BLEND = &h04
2542
const D3DLINECAPS_ALPHACMP = &h08
2643
const D3DLINECAPS_FOG = &h10
2744
const D3DLINECAPS_ANTIALIAS = &h20
45+
const D3DPBLENDCAPS_ZERO = &h00000001
46+
const D3DPBLENDCAPS_ONE = &h00000002
47+
const D3DPBLENDCAPS_SRCCOLOR = &h00000004
48+
const D3DPBLENDCAPS_INVSRCCOLOR = &h00000008
49+
const D3DPBLENDCAPS_SRCALPHA = &h00000010
50+
const D3DPBLENDCAPS_INVSRCALPHA = &h00000020
51+
const D3DPBLENDCAPS_DESTALPHA = &h00000040
52+
const D3DPBLENDCAPS_INVDESTALPHA = &h00000080
53+
const D3DPBLENDCAPS_DESTCOLOR = &h00000100
54+
const D3DPBLENDCAPS_INVDESTCOLOR = &h00000200
55+
const D3DPBLENDCAPS_SRCALPHASAT = &h00000400
56+
const D3DPBLENDCAPS_BOTHSRCALPHA = &h00000800
57+
const D3DPBLENDCAPS_BOTHINVSRCALPHA = &h00001000
2858
const D3DPBLENDCAPS_BLENDFACTOR = &h00002000
59+
const D3DPCMPCAPS_NEVER = &h01
60+
const D3DPCMPCAPS_LESS = &h02
61+
const D3DPCMPCAPS_EQUAL = &h04
62+
const D3DPCMPCAPS_LESSEQUAL = &h08
63+
const D3DPCMPCAPS_GREATER = &h10
64+
const D3DPCMPCAPS_NOTEQUAL = &h20
65+
const D3DPCMPCAPS_GREATEREQUAL = &h40
66+
const D3DPCMPCAPS_ALWAYS = &h80
67+
#define D3DPMISCCAPS_MASKZ __MSABI_LONG(&h00000002)
68+
#define D3DPMISCCAPS_LINEPATTERNREP __MSABI_LONG(&h00000004)
69+
#define D3DPMISCCAPS_CULLNONE __MSABI_LONG(&h00000010)
70+
#define D3DPMISCCAPS_CULLCW __MSABI_LONG(&h00000020)
71+
#define D3DPMISCCAPS_CULLCCW __MSABI_LONG(&h00000040)
2972
#define D3DPMISCCAPS_COLORWRITEENABLE __MSABI_LONG(&h00000080)
3073
#define D3DPMISCCAPS_CLIPPLANESCALEDPOINTS __MSABI_LONG(&h00000100)
3174
#define D3DPMISCCAPS_CLIPTLVERTS __MSABI_LONG(&h00000200)
@@ -39,6 +82,20 @@ const D3DPBLENDCAPS_BLENDFACTOR = &h00002000
3982
#define D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS __MSABI_LONG(&h00040000)
4083
#define D3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING __MSABI_LONG(&h00080000)
4184
#define D3DPMISCCAPS_FOGVERTEXCLAMPED __MSABI_LONG(&h00100000)
85+
#define D3DPRASTERCAPS_DITHER __MSABI_LONG(&h00000001)
86+
#define D3DPRASTERCAPS_PAT __MSABI_LONG(&h00000008)
87+
#define D3DPRASTERCAPS_ZTEST __MSABI_LONG(&h00000010)
88+
#define D3DPRASTERCAPS_FOGVERTEX __MSABI_LONG(&h00000080)
89+
#define D3DPRASTERCAPS_FOGTABLE __MSABI_LONG(&h00000100)
90+
#define D3DPRASTERCAPS_ANTIALIASEDGES __MSABI_LONG(&h00001000)
91+
#define D3DPRASTERCAPS_MIPMAPLODBIAS __MSABI_LONG(&h00002000)
92+
#define D3DPRASTERCAPS_ZBIAS __MSABI_LONG(&h00004000)
93+
#define D3DPRASTERCAPS_ZBUFFERLESSHSR __MSABI_LONG(&h00008000)
94+
#define D3DPRASTERCAPS_FOGRANGE __MSABI_LONG(&h00010000)
95+
#define D3DPRASTERCAPS_ANISOTROPY __MSABI_LONG(&h00020000)
96+
#define D3DPRASTERCAPS_WBUFFER __MSABI_LONG(&h00040000)
97+
#define D3DPRASTERCAPS_WFOG __MSABI_LONG(&h00100000)
98+
#define D3DPRASTERCAPS_ZFOG __MSABI_LONG(&h00200000)
4299
#define D3DPRASTERCAPS_COLORPERSPECTIVE __MSABI_LONG(&h00400000)
43100
#define D3DPRASTERCAPS_SCISSORTEST __MSABI_LONG(&h01000000)
44101
#define D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS __MSABI_LONG(&h02000000)
@@ -50,21 +107,84 @@ const D3DPRESENT_INTERVAL_TWO = &h00000002
50107
const D3DPRESENT_INTERVAL_THREE = &h00000004
51108
const D3DPRESENT_INTERVAL_FOUR = &h00000008
52109
const D3DPRESENT_INTERVAL_IMMEDIATE = &h80000000
110+
const D3DPSHADECAPS_COLORGOURAUDRGB = &h00008
111+
const D3DPSHADECAPS_SPECULARGOURAUDRGB = &h00200
112+
const D3DPSHADECAPS_ALPHAGOURAUDBLEND = &h04000
113+
const D3DPSHADECAPS_FOGGOURAUD = &h80000
114+
const D3DPTADDRESSCAPS_WRAP = &h01
115+
const D3DPTADDRESSCAPS_MIRROR = &h02
116+
const D3DPTADDRESSCAPS_CLAMP = &h04
117+
const D3DPTADDRESSCAPS_BORDER = &h08
118+
const D3DPTADDRESSCAPS_INDEPENDENTUV = &h10
53119
const D3DPTADDRESSCAPS_MIRRORONCE = &h20
120+
#define D3DPTEXTURECAPS_PERSPECTIVE __MSABI_LONG(&h00000001)
121+
#define D3DPTEXTURECAPS_POW2 __MSABI_LONG(&h00000002)
122+
#define D3DPTEXTURECAPS_ALPHA __MSABI_LONG(&h00000004)
123+
#define D3DPTEXTURECAPS_SQUAREONLY __MSABI_LONG(&h00000020)
124+
#define D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE __MSABI_LONG(&h00000040)
125+
#define D3DPTEXTURECAPS_ALPHAPALETTE __MSABI_LONG(&h00000080)
126+
#define D3DPTEXTURECAPS_NONPOW2CONDITIONAL __MSABI_LONG(&h00000100)
127+
#define D3DPTEXTURECAPS_PROJECTED __MSABI_LONG(&h00000400)
128+
#define D3DPTEXTURECAPS_CUBEMAP __MSABI_LONG(&h00000800)
54129
#define D3DPTEXTURECAPS_VOLUMEMAP __MSABI_LONG(&h00002000)
55130
#define D3DPTEXTURECAPS_MIPMAP __MSABI_LONG(&h00004000)
56131
#define D3DPTEXTURECAPS_MIPVOLUMEMAP __MSABI_LONG(&h00008000)
57132
#define D3DPTEXTURECAPS_MIPCUBEMAP __MSABI_LONG(&h00010000)
58133
#define D3DPTEXTURECAPS_CUBEMAP_POW2 __MSABI_LONG(&h00020000)
59134
#define D3DPTEXTURECAPS_VOLUMEMAP_POW2 __MSABI_LONG(&h00040000)
60135
#define D3DPTEXTURECAPS_NOPROJECTEDBUMPENV __MSABI_LONG(&h00200000)
136+
const D3DPTFILTERCAPS_MINFPOINT = &h00000100
137+
const D3DPTFILTERCAPS_MINFLINEAR = &h00000200
138+
const D3DPTFILTERCAPS_MINFANISOTROPIC = &h00000400
61139
const D3DPTFILTERCAPS_MINFPYRAMIDALQUAD = &h00000800
62140
const D3DPTFILTERCAPS_MINFGAUSSIANQUAD = &h00001000
141+
const D3DPTFILTERCAPS_MIPFPOINT = &h00010000
142+
const D3DPTFILTERCAPS_MIPFLINEAR = &h00020000
143+
const D3DPTFILTERCAPS_MAGFPOINT = &h01000000
144+
const D3DPTFILTERCAPS_MAGFLINEAR = &h02000000
145+
const D3DPTFILTERCAPS_MAGFANISOTROPIC = &h04000000
63146
const D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD = &h08000000
64147
const D3DPTFILTERCAPS_MAGFGAUSSIANQUAD = &h10000000
148+
const D3DSTENCILCAPS_KEEP = &h01
149+
const D3DSTENCILCAPS_ZERO = &h02
150+
const D3DSTENCILCAPS_REPLACE = &h04
151+
const D3DSTENCILCAPS_INCRSAT = &h08
152+
const D3DSTENCILCAPS_DECRSAT = &h10
153+
const D3DSTENCILCAPS_INVERT = &h20
154+
const D3DSTENCILCAPS_INCR = &h40
155+
const D3DSTENCILCAPS_DECR = &h80
65156
const D3DSTENCILCAPS_TWOSIDED = &h100
157+
const D3DTEXOPCAPS_DISABLE = &h0000001
158+
const D3DTEXOPCAPS_SELECTARG1 = &h0000002
159+
const D3DTEXOPCAPS_SELECTARG2 = &h0000004
160+
const D3DTEXOPCAPS_MODULATE = &h0000008
161+
const D3DTEXOPCAPS_MODULATE2X = &h0000010
162+
const D3DTEXOPCAPS_MODULATE4X = &h0000020
163+
const D3DTEXOPCAPS_ADD = &h0000040
164+
const D3DTEXOPCAPS_ADDSIGNED = &h0000080
165+
const D3DTEXOPCAPS_ADDSIGNED2X = &h0000100
166+
const D3DTEXOPCAPS_SUBTRACT = &h0000200
167+
const D3DTEXOPCAPS_ADDSMOOTH = &h0000400
168+
const D3DTEXOPCAPS_BLENDDIFFUSEALPHA = &h0000800
169+
const D3DTEXOPCAPS_BLENDTEXTUREALPHA = &h0001000
170+
const D3DTEXOPCAPS_BLENDFACTORALPHA = &h0002000
171+
const D3DTEXOPCAPS_BLENDTEXTUREALPHAPM = &h0004000
172+
const D3DTEXOPCAPS_BLENDCURRENTALPHA = &h0008000
173+
const D3DTEXOPCAPS_PREMODULATE = &h0010000
174+
const D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR = &h0020000
175+
const D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA = &h0040000
176+
const D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR = &h0080000
177+
const D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA = &h0100000
178+
const D3DTEXOPCAPS_BUMPENVMAP = &h0200000
179+
const D3DTEXOPCAPS_BUMPENVMAPLUMINANCE = &h0400000
180+
const D3DTEXOPCAPS_DOTPRODUCT3 = &h0800000
66181
const D3DTEXOPCAPS_MULTIPLYADD = &h1000000
67182
const D3DTEXOPCAPS_LERP = &h2000000
183+
#define D3DVTXPCAPS_TEXGEN __MSABI_LONG(&h00000001)
184+
#define D3DVTXPCAPS_MATERIALSOURCE7 __MSABI_LONG(&h00000002)
185+
#define D3DVTXPCAPS_DIRECTIONALLIGHTS __MSABI_LONG(&h00000008)
186+
#define D3DVTXPCAPS_POSITIONALLIGHTS __MSABI_LONG(&h00000010)
187+
#define D3DVTXPCAPS_LOCALVIEWER __MSABI_LONG(&h00000020)
68188
#define D3DVTXPCAPS_TWEENING __MSABI_LONG(&h00000040)
69189
#define D3DVTXPCAPS_TEXGEN_SPHEREMAP __MSABI_LONG(&h00000100)
70190
#define D3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER __MSABI_LONG(&h00000200)

inc/win/d3d9types.bi

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
#pragma once
44

55
#define __WINE_D3D9TYPES_H
6+
#define D3DCLEAR_TARGET __MSABI_LONG(&h00000001)
7+
#define D3DCLEAR_ZBUFFER __MSABI_LONG(&h00000002)
8+
#define D3DCLEAR_STENCIL __MSABI_LONG(&h00000004)
69
#define D3DCOLOR_ARGB(a, r, g, b) cast(D3DCOLOR, (((((a) and &hff) shl 24) or (((r) and &hff) shl 16)) or (((g) and &hff) shl 8)) or ((b) and &hff))
710
#define D3DCOLOR_COLORVALUE(r, g, b, a) D3DCOLOR_RGBA(cast(DWORD, (r) * 255.f), cast(DWORD, (g) * 255.f), cast(DWORD, (b) * 255.f), cast(DWORD, (a) * 255.f))
811
#define D3DCOLOR_RGBA(r, g, b, a) D3DCOLOR_ARGB(a, r, g, b)
@@ -22,12 +25,32 @@
2225
#define D3DCS_PLANE4 __MSABI_LONG(&h400)
2326
#define D3DCS_PLANE5 __MSABI_LONG(&h800)
2427
#define D3DCS_ALL __MSABI_LONG(&hFFF)
28+
const D3DFVF_TEXTUREFORMAT1 = 3
29+
const D3DFVF_TEXTUREFORMAT2 = 0
30+
const D3DFVF_TEXTUREFORMAT3 = 1
31+
const D3DFVF_TEXTUREFORMAT4 = 2
32+
#define D3DFVF_TEXCOORDSIZE1(CoordIndex) (D3DFVF_TEXTUREFORMAT1 shl ((CoordIndex * 2) + 16))
33+
#define D3DFVF_TEXCOORDSIZE2(CoordIndex) D3DFVF_TEXTUREFORMAT2
34+
#define D3DFVF_TEXCOORDSIZE3(CoordIndex) (D3DFVF_TEXTUREFORMAT3 shl ((CoordIndex * 2) + 16))
35+
#define D3DFVF_TEXCOORDSIZE4(CoordIndex) (D3DFVF_TEXTUREFORMAT4 shl ((CoordIndex * 2) + 16))
2536
const D3DLOCK_READONLY = &h0010
2637
const D3DLOCK_NOSYSLOCK = &h0800
2738
const D3DLOCK_NOOVERWRITE = &h1000
2839
const D3DLOCK_DISCARD = &h2000
2940
const D3DLOCK_DONOTWAIT = &h4000
3041
const D3DLOCK_NO_DIRTY_UPDATE = &h8000
42+
const D3DMAXUSERCLIPPLANES = 32
43+
const D3DCLIPPLANE0 = 1 shl 0
44+
const D3DCLIPPLANE1 = 1 shl 1
45+
const D3DCLIPPLANE2 = 1 shl 2
46+
const D3DCLIPPLANE3 = 1 shl 3
47+
const D3DCLIPPLANE4 = 1 shl 4
48+
const D3DCLIPPLANE5 = 1 shl 5
49+
#define D3DRENDERSTATE_WRAPBIAS __MSABI_LONG(128u)
50+
const D3DTSS_TCI_PASSTHRU = &h00000
51+
const D3DTSS_TCI_CAMERASPACENORMAL = &h10000
52+
const D3DTSS_TCI_CAMERASPACEPOSITION = &h20000
53+
const D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR = &h30000
3154
const D3DTSS_TCI_SPHEREMAP = &h40000
3255
#define D3DTS_WORLD D3DTS_WORLDMATRIX(0)
3356
#define D3DTS_WORLD1 D3DTS_WORLDMATRIX(1)
@@ -52,18 +75,57 @@ const D3DTSS_TCI_SPHEREMAP = &h40000
5275
#define D3DUSAGE_QUERY_SRGBWRITE __MSABI_LONG(&h00040000)
5376
#define D3DUSAGE_QUERY_VERTEXTEXTURE __MSABI_LONG(&h00100000)
5477
#define D3DUSAGE_QUERY_WRAPANDMIP __MSABI_LONG(&h00200000)
78+
const D3DWRAP_U = 1
79+
const D3DWRAP_V = 2
5580
const D3DWRAP_W = 4
81+
const D3DWRAPCOORD_0 = 1
82+
const D3DWRAPCOORD_1 = 2
83+
const D3DWRAPCOORD_2 = 4
84+
const D3DWRAPCOORD_3 = 8
5685
const MAX_DEVICE_IDENTIFIER_STRING = 512
86+
const D3DFVF_RESERVED0 = &h0001
87+
const D3DFVF_POSITION_MASK = &h400E
88+
const D3DFVF_XYZ = &h0002
89+
const D3DFVF_XYZRHW = &h0004
90+
const D3DFVF_XYZB1 = &h0006
91+
const D3DFVF_XYZB2 = &h0008
92+
const D3DFVF_XYZB3 = &h000a
93+
const D3DFVF_XYZB4 = &h000c
94+
const D3DFVF_XYZB5 = &h000e
5795
const D3DFVF_XYZW = &h4002
96+
const D3DFVF_NORMAL = &h0010
5897
const D3DFVF_PSIZE = &h0020
98+
const D3DFVF_DIFFUSE = &h0040
99+
const D3DFVF_SPECULAR = &h0080
100+
const D3DFVF_TEXCOUNT_MASK = &h0f00
101+
const D3DFVF_TEXCOUNT_SHIFT = 8
102+
const D3DFVF_TEX0 = &h0000
103+
const D3DFVF_TEX1 = &h0100
104+
const D3DFVF_TEX2 = &h0200
105+
const D3DFVF_TEX3 = &h0300
106+
const D3DFVF_TEX4 = &h0400
107+
const D3DFVF_TEX5 = &h0500
108+
const D3DFVF_TEX6 = &h0600
109+
const D3DFVF_TEX7 = &h0700
110+
const D3DFVF_TEX8 = &h0800
59111
const D3DFVF_LASTBETA_UBYTE4 = &h1000
60112
const D3DFVF_LASTBETA_D3DCOLOR = &h8000
113+
const D3DFVF_RESERVED2 = &h6000
114+
const D3DTA_SELECTMASK = &h0000000f
115+
const D3DTA_DIFFUSE = &h00000000
116+
const D3DTA_CURRENT = &h00000001
117+
const D3DTA_TEXTURE = &h00000002
118+
const D3DTA_TFACTOR = &h00000003
119+
const D3DTA_SPECULAR = &h00000004
61120
const D3DTA_TEMP = &h00000005
62121
const D3DTA_CONSTANT = &h00000006
122+
const D3DTA_COMPLEMENT = &h00000010
123+
const D3DTA_ALPHAREPLICATE = &h00000020
63124
#define D3DCOLORWRITEENABLE_RED (__MSABI_LONG(1) shl 0)
64125
#define D3DCOLORWRITEENABLE_GREEN (__MSABI_LONG(1) shl 1)
65126
#define D3DCOLORWRITEENABLE_BLUE (__MSABI_LONG(1) shl 2)
66127
#define D3DCOLORWRITEENABLE_ALPHA (__MSABI_LONG(1) shl 3)
128+
const D3DPV_DONOTCOPYDATA = 1 shl 0
67129
const D3DSTREAMSOURCE_INDEXEDDATA = 1 shl 30
68130
const D3DSTREAMSOURCE_INSTANCEDATA = 2 shl 30
69131
const D3D_MAX_SIMULTANEOUS_RENDERTARGETS = 4
@@ -193,6 +255,7 @@ const D3DGETDATA_FLUSH = 1 shl 0
193255
#define D3DVSD_STREAM_TESS() (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAM) or D3DVSD_STREAMTESSMASK)
194256
#define D3DVSD_TESSNORMAL(RegisterIn, RegisterOut) (((D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_TESSELLATOR) or ((RegisterIn) shl D3DVSD_VERTEXREGINSHIFT)) or (&h02 shl D3DVSD_DATATYPESHIFT)) or (RegisterOut))
195257
#define D3DVSD_TESSUV(Register) (((D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_TESSELLATOR) or &h10000000) or (&h01 shl D3DVSD_DATATYPESHIFT)) or (Register))
258+
const D3DDP_MAXTEXCOORD = 8
196259
const D3DSI_OPCODE_MASK = &h0000FFFF
197260
const D3DSI_INSTLENGTH_MASK = &h0F000000
198261
const D3DSI_INSTLENGTH_SHIFT = 24

inc/win/d3drm.bi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#inclib "d3drm"
66

77
#include once "ddraw.bi"
8-
#include once "d3drmobj.bi"
98

109
extern "Windows"
1110

@@ -14,6 +13,12 @@ type IDirect3DRM as IDirect3DRM_
1413
type LPDIRECT3DRM as IDirect3DRM ptr
1514
type LPLPDIRECT3DRM as IDirect3DRM ptr ptr
1615

16+
end extern
17+
18+
#include once "d3drmobj.bi"
19+
20+
extern "Windows"
21+
1722
extern CLSID_CDirect3DRM as const GUID
1823
extern IID_IDirect3DRM as const GUID
1924
extern IID_IDirect3DRM2 as const GUID

inc/win/d3drmobj.bi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
extern "Windows"
1010

1111
#define __D3DRMOBJ_H__
12-
#define VIRTUAL
1312
extern CLSID_CDirect3DRMDevice as const GUID
1413
extern CLSID_CDirect3DRMViewport as const GUID
1514
extern CLSID_CDirect3DRMFrame as const GUID

inc/win/dmplugin.bi

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,21 @@ type LPDIRECTMUSICTRACK as IDirectMusicTrack ptr
4141
type LPDIRECTMUSICTRACK8 as IDirectMusicTrack8 ptr
4242
type LPDIRECTMUSICTOOL as IDirectMusicTool ptr
4343
type LPDIRECTMUSICTOOL8 as IDirectMusicTool8 ptr
44+
type IDirectMusicPerformance as IDirectMusicPerformance_
4445
type LPDIRECTMUSICPERFORMANCE as IDirectMusicPerformance ptr
4546
type LPDIRECTMUSICPERFORMANCE8 as IDirectMusicPerformance8 ptr
47+
type IDirectMusicSegment as IDirectMusicSegment_
4648
type LPDIRECTMUSICSEGMENT as IDirectMusicSegment ptr
4749
type LPDIRECTMUSICSEGMENT8 as IDirectMusicSegment8 ptr
50+
type IDirectMusicSegmentState as IDirectMusicSegmentState_
4851
type LPDIRECTMUSICSEGMENTSTATE as IDirectMusicSegmentState ptr
4952
type LPDIRECTMUSICSEGMENTSTATE8 as IDirectMusicSegmentState8 ptr
53+
type IDirectMusicGraph as IDirectMusicGraph_
5054
type LPDIRECTMUSICGRAPH as IDirectMusicGraph ptr
5155
type IDirectMusicGraph8 as IDirectMusicGraph
5256
type LPDIRECTMUSICGRAPH8 as IDirectMusicGraph ptr
53-
type DMUS_PMSG_ as _DMUS_PMSG
54-
type MUSIC_TIME_ as LONG
57+
type DMUS_PMSG as _DMUS_PMSG
58+
type MUSIC_TIME as LONG
5559
const DMUS_TRACK_PARAMF_CLOCK = &h1
5660
type DMUS_TRACKF_FLAGS as enumDMUS_TRACKF_FLAGS
5761

@@ -72,7 +76,7 @@ end enum
7276

7377
type IDirectMusicToolVtbl as IDirectMusicToolVtbl_
7478

75-
type IDirectMusicTool_
79+
type IDirectMusicTool
7680
lpVtbl as IDirectMusicToolVtbl ptr
7781
end type
7882

@@ -128,7 +132,7 @@ end type
128132
#define IDirectMusicTool8_Clone(p, a) (p)->lpVtbl->Clone(p, a)
129133
type IDirectMusicTrackVtbl as IDirectMusicTrackVtbl_
130134

131-
type IDirectMusicTrack_
135+
type IDirectMusicTrack
132136
lpVtbl as IDirectMusicTrackVtbl ptr
133137
end type
134138

0 commit comments

Comments
 (0)