1 | /*
|
---|
2 | * Copyright (C) the Wine project
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_DDRAW_H
|
---|
29 | #define __WINE_DDRAW_H
|
---|
30 |
|
---|
31 | #define COM_NO_WINDOWS_H
|
---|
32 | #include <objbase.h>
|
---|
33 |
|
---|
34 | #ifdef __cplusplus
|
---|
35 | extern "C" {
|
---|
36 | #endif /* defined(__cplusplus) */
|
---|
37 |
|
---|
38 | #ifndef DIRECTDRAW_VERSION
|
---|
39 | #define DIRECTDRAW_VERSION 0x0700
|
---|
40 | #endif /* DIRECTDRAW_VERSION */
|
---|
41 |
|
---|
42 | /*****************************************************************************
|
---|
43 | * Predeclare the interfaces
|
---|
44 | */
|
---|
45 | #ifndef __DDRAW_GUID_DEFINED__
|
---|
46 | DEFINE_GUID( CLSID_DirectDraw, 0xD7B70EE0,0x4340,0x11CF,0xB0,0x63,0x00,0x20,0xAF,0xC2,0xCD,0x35 );
|
---|
47 | DEFINE_GUID( CLSID_DirectDraw7, 0x3C305196,0x50DB,0x11D3,0x9C,0xFE,0x00,0xC0,0x4F,0xD9,0x30,0xC5 );
|
---|
48 | DEFINE_GUID( CLSID_DirectDrawClipper, 0x593817A0,0x7DB3,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xb9,0x33,0x56 );
|
---|
49 | DEFINE_GUID( IID_IDirectDraw, 0x6C14DB80,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
|
---|
50 | DEFINE_GUID( IID_IDirectDraw2, 0xB3A6F3E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56 );
|
---|
51 | DEFINE_GUID( IID_IDirectDraw3, 0x618f8ad4,0x8b7a,0x11d0,0x8f,0xcc,0x0,0xc0,0x4f,0xd9,0x18,0x9d );
|
---|
52 | DEFINE_GUID( IID_IDirectDraw4, 0x9c59509a,0x39bd,0x11d1,0x8c,0x4a,0x00,0xc0,0x4f,0xd9,0x30,0xc5 );
|
---|
53 | DEFINE_GUID( IID_IDirectDraw7, 0x15e65ec0,0x3b9c,0x11d2,0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b );
|
---|
54 | DEFINE_GUID( IID_IDirectDrawSurface, 0x6C14DB81,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
|
---|
55 | DEFINE_GUID( IID_IDirectDrawSurface2, 0x57805885,0x6eec,0x11cf,0x94,0x41,0xa8,0x23,0x03,0xc1,0x0e,0x27 );
|
---|
56 | DEFINE_GUID( IID_IDirectDrawSurface3, 0xDA044E00,0x69B2,0x11D0,0xA1,0xD5,0x00,0xAA,0x00,0xB8,0xDF,0xBB );
|
---|
57 | DEFINE_GUID( IID_IDirectDrawSurface4, 0x0B2B8630,0xAD35,0x11D0,0x8E,0xA6,0x00,0x60,0x97,0x97,0xEA,0x5B );
|
---|
58 | DEFINE_GUID( IID_IDirectDrawSurface7, 0x06675a80,0x3b9b,0x11d2,0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b );
|
---|
59 | DEFINE_GUID( IID_IDirectDrawPalette, 0x6C14DB84,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
|
---|
60 | DEFINE_GUID( IID_IDirectDrawClipper, 0x6C14DB85,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
|
---|
61 | DEFINE_GUID( IID_IDirectDrawColorControl,0x4B9F0EE0,0x0D7E,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8 );
|
---|
62 | DEFINE_GUID( IID_IDirectDrawGammaControl,0x69C11C3E,0xB46B,0x11D1,0xAD,0x7A,0x00,0xC0,0x4F,0xC2,0x9B,0x4E );
|
---|
63 | #endif
|
---|
64 |
|
---|
65 | typedef struct IDirectDraw *LPDIRECTDRAW;
|
---|
66 | typedef struct IDirectDraw2 *LPDIRECTDRAW2;
|
---|
67 | typedef struct IDirectDraw3 *LPDIRECTDRAW3;
|
---|
68 | typedef struct IDirectDraw4 *LPDIRECTDRAW4;
|
---|
69 | typedef struct IDirectDraw7 *LPDIRECTDRAW7;
|
---|
70 | typedef struct IDirectDrawClipper *LPDIRECTDRAWCLIPPER;
|
---|
71 | typedef struct IDirectDrawPalette *LPDIRECTDRAWPALETTE;
|
---|
72 | typedef struct IDirectDrawSurface *LPDIRECTDRAWSURFACE;
|
---|
73 | typedef struct IDirectDrawSurface2 *LPDIRECTDRAWSURFACE2;
|
---|
74 | typedef struct IDirectDrawSurface3 *LPDIRECTDRAWSURFACE3;
|
---|
75 | typedef struct IDirectDrawSurface4 *LPDIRECTDRAWSURFACE4;
|
---|
76 | typedef struct IDirectDrawSurface7 *LPDIRECTDRAWSURFACE7;
|
---|
77 | typedef struct IDirectDrawColorControl *LPDIRECTDRAWCOLORCONTROL;
|
---|
78 | typedef struct IDirectDrawGammaControl *LPDIRECTDRAWGAMMACONTROL;
|
---|
79 |
|
---|
80 |
|
---|
81 | #define DDENUMRET_CANCEL 0
|
---|
82 | #define DDENUMRET_OK 1
|
---|
83 |
|
---|
84 | #define DD_OK S_OK
|
---|
85 | #define DD_FALSE S_FALSE
|
---|
86 |
|
---|
87 |
|
---|
88 | #define _FACDD 0x876
|
---|
89 | #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
|
---|
90 |
|
---|
91 | #define DDERR_ALREADYINITIALIZED MAKE_DDHRESULT( 5 )
|
---|
92 | #define DDERR_CANNOTATTACHSURFACE MAKE_DDHRESULT( 10 )
|
---|
93 | #define DDERR_CANNOTDETACHSURFACE MAKE_DDHRESULT( 20 )
|
---|
94 | #define DDERR_CURRENTLYNOTAVAIL MAKE_DDHRESULT( 40 )
|
---|
95 | #define DDERR_EXCEPTION MAKE_DDHRESULT( 55 )
|
---|
96 | #define DDERR_GENERIC E_FAIL
|
---|
97 | #define DDERR_HEIGHTALIGN MAKE_DDHRESULT( 90 )
|
---|
98 | #define DDERR_INCOMPATIBLEPRIMARY MAKE_DDHRESULT( 95 )
|
---|
99 | #define DDERR_INVALIDCAPS MAKE_DDHRESULT( 100 )
|
---|
100 | #define DDERR_INVALIDCLIPLIST MAKE_DDHRESULT( 110 )
|
---|
101 | #define DDERR_INVALIDMODE MAKE_DDHRESULT( 120 )
|
---|
102 | #define DDERR_INVALIDOBJECT MAKE_DDHRESULT( 130 )
|
---|
103 | #define DDERR_INVALIDPARAMS E_INVALIDARG
|
---|
104 | #define DDERR_INVALIDPIXELFORMAT MAKE_DDHRESULT( 145 )
|
---|
105 | #define DDERR_INVALIDRECT MAKE_DDHRESULT( 150 )
|
---|
106 | #define DDERR_LOCKEDSURFACES MAKE_DDHRESULT( 160 )
|
---|
107 | #define DDERR_NO3D MAKE_DDHRESULT( 170 )
|
---|
108 | #define DDERR_NOALPHAHW MAKE_DDHRESULT( 180 )
|
---|
109 | #define DDERR_NOSTEREOHARDWARE MAKE_DDHRESULT( 181 )
|
---|
110 | #define DDERR_NOSURFACELEFT MAKE_DDHRESULT( 182 )
|
---|
111 | #define DDERR_NOCLIPLIST MAKE_DDHRESULT( 205 )
|
---|
112 | #define DDERR_NOCOLORCONVHW MAKE_DDHRESULT( 210 )
|
---|
113 | #define DDERR_NOCOOPERATIVELEVELSET MAKE_DDHRESULT( 212 )
|
---|
114 | #define DDERR_NOCOLORKEY MAKE_DDHRESULT( 215 )
|
---|
115 | #define DDERR_NOCOLORKEYHW MAKE_DDHRESULT( 220 )
|
---|
116 | #define DDERR_NODIRECTDRAWSUPPORT MAKE_DDHRESULT( 222 )
|
---|
117 | #define DDERR_NOEXCLUSIVEMODE MAKE_DDHRESULT( 225 )
|
---|
118 | #define DDERR_NOFLIPHW MAKE_DDHRESULT( 230 )
|
---|
119 | #define DDERR_NOGDI MAKE_DDHRESULT( 240 )
|
---|
120 | #define DDERR_NOMIRRORHW MAKE_DDHRESULT( 250 )
|
---|
121 | #define DDERR_NOTFOUND MAKE_DDHRESULT( 255 )
|
---|
122 | #define DDERR_NOOVERLAYHW MAKE_DDHRESULT( 260 )
|
---|
123 | #define DDERR_OVERLAPPINGRECTS MAKE_DDHRESULT( 270 )
|
---|
124 | #define DDERR_NORASTEROPHW MAKE_DDHRESULT( 280 )
|
---|
125 | #define DDERR_NOROTATIONHW MAKE_DDHRESULT( 290 )
|
---|
126 | #define DDERR_NOSTRETCHHW MAKE_DDHRESULT( 310 )
|
---|
127 | #define DDERR_NOT4BITCOLOR MAKE_DDHRESULT( 316 )
|
---|
128 | #define DDERR_NOT4BITCOLORINDEX MAKE_DDHRESULT( 317 )
|
---|
129 | #define DDERR_NOT8BITCOLOR MAKE_DDHRESULT( 320 )
|
---|
130 | #define DDERR_NOTEXTUREHW MAKE_DDHRESULT( 330 )
|
---|
131 | #define DDERR_NOVSYNCHW MAKE_DDHRESULT( 335 )
|
---|
132 | #define DDERR_NOZBUFFERHW MAKE_DDHRESULT( 340 )
|
---|
133 | #define DDERR_NOZOVERLAYHW MAKE_DDHRESULT( 350 )
|
---|
134 | #define DDERR_OUTOFCAPS MAKE_DDHRESULT( 360 )
|
---|
135 | #define DDERR_OUTOFMEMORY E_OUTOFMEMORY
|
---|
136 | #define DDERR_OUTOFVIDEOMEMORY MAKE_DDHRESULT( 380 )
|
---|
137 | #define DDERR_OVERLAYCANTCLIP MAKE_DDHRESULT( 382 )
|
---|
138 | #define DDERR_OVERLAYCOLORKEYONLYONEACTIVE MAKE_DDHRESULT( 384 )
|
---|
139 | #define DDERR_PALETTEBUSY MAKE_DDHRESULT( 387 )
|
---|
140 | #define DDERR_COLORKEYNOTSET MAKE_DDHRESULT( 400 )
|
---|
141 | #define DDERR_SURFACEALREADYATTACHED MAKE_DDHRESULT( 410 )
|
---|
142 | #define DDERR_SURFACEALREADYDEPENDENT MAKE_DDHRESULT( 420 )
|
---|
143 | #define DDERR_SURFACEBUSY MAKE_DDHRESULT( 430 )
|
---|
144 | #define DDERR_CANTLOCKSURFACE MAKE_DDHRESULT( 435 )
|
---|
145 | #define DDERR_SURFACEISOBSCURED MAKE_DDHRESULT( 440 )
|
---|
146 | #define DDERR_SURFACELOST MAKE_DDHRESULT( 450 )
|
---|
147 | #define DDERR_SURFACENOTATTACHED MAKE_DDHRESULT( 460 )
|
---|
148 | #define DDERR_TOOBIGHEIGHT MAKE_DDHRESULT( 470 )
|
---|
149 | #define DDERR_TOOBIGSIZE MAKE_DDHRESULT( 480 )
|
---|
150 | #define DDERR_TOOBIGWIDTH MAKE_DDHRESULT( 490 )
|
---|
151 | #define DDERR_UNSUPPORTED E_NOTIMPL
|
---|
152 | #define DDERR_UNSUPPORTEDFORMAT MAKE_DDHRESULT( 510 )
|
---|
153 | #define DDERR_UNSUPPORTEDMASK MAKE_DDHRESULT( 520 )
|
---|
154 | #define DDERR_INVALIDSTREAM MAKE_DDHRESULT( 521 )
|
---|
155 | #define DDERR_VERTICALBLANKINPROGRESS MAKE_DDHRESULT( 537 )
|
---|
156 | #define DDERR_WASSTILLDRAWING MAKE_DDHRESULT( 540 )
|
---|
157 | #define DDERR_DDSCAPSCOMPLEXREQUIRED MAKE_DDHRESULT( 542 )
|
---|
158 | #define DDERR_XALIGN MAKE_DDHRESULT( 560 )
|
---|
159 | #define DDERR_INVALIDDIRECTDRAWGUID MAKE_DDHRESULT( 561 )
|
---|
160 | #define DDERR_DIRECTDRAWALREADYCREATED MAKE_DDHRESULT( 562 )
|
---|
161 | #define DDERR_NODIRECTDRAWHW MAKE_DDHRESULT( 563 )
|
---|
162 | #define DDERR_PRIMARYSURFACEALREADYEXISTS MAKE_DDHRESULT( 564 )
|
---|
163 | #define DDERR_NOEMULATION MAKE_DDHRESULT( 565 )
|
---|
164 | #define DDERR_REGIONTOOSMALL MAKE_DDHRESULT( 566 )
|
---|
165 | #define DDERR_CLIPPERISUSINGHWND MAKE_DDHRESULT( 567 )
|
---|
166 | #define DDERR_NOCLIPPERATTACHED MAKE_DDHRESULT( 568 )
|
---|
167 | #define DDERR_NOHWND MAKE_DDHRESULT( 569 )
|
---|
168 | #define DDERR_HWNDSUBCLASSED MAKE_DDHRESULT( 570 )
|
---|
169 | #define DDERR_HWNDALREADYSET MAKE_DDHRESULT( 571 )
|
---|
170 | #define DDERR_NOPALETTEATTACHED MAKE_DDHRESULT( 572 )
|
---|
171 | #define DDERR_NOPALETTEHW MAKE_DDHRESULT( 573 )
|
---|
172 | #define DDERR_BLTFASTCANTCLIP MAKE_DDHRESULT( 574 )
|
---|
173 | #define DDERR_NOBLTHW MAKE_DDHRESULT( 575 )
|
---|
174 | #define DDERR_NODDROPSHW MAKE_DDHRESULT( 576 )
|
---|
175 | #define DDERR_OVERLAYNOTVISIBLE MAKE_DDHRESULT( 577 )
|
---|
176 | #define DDERR_NOOVERLAYDEST MAKE_DDHRESULT( 578 )
|
---|
177 | #define DDERR_INVALIDPOSITION MAKE_DDHRESULT( 579 )
|
---|
178 | #define DDERR_NOTAOVERLAYSURFACE MAKE_DDHRESULT( 580 )
|
---|
179 | #define DDERR_EXCLUSIVEMODEALREADYSET MAKE_DDHRESULT( 581 )
|
---|
180 | #define DDERR_NOTFLIPPABLE MAKE_DDHRESULT( 582 )
|
---|
181 | #define DDERR_CANTDUPLICATE MAKE_DDHRESULT( 583 )
|
---|
182 | #define DDERR_NOTLOCKED MAKE_DDHRESULT( 584 )
|
---|
183 | #define DDERR_CANTCREATEDC MAKE_DDHRESULT( 585 )
|
---|
184 | #define DDERR_NODC MAKE_DDHRESULT( 586 )
|
---|
185 | #define DDERR_WRONGMODE MAKE_DDHRESULT( 587 )
|
---|
186 | #define DDERR_IMPLICITLYCREATED MAKE_DDHRESULT( 588 )
|
---|
187 | #define DDERR_NOTPALETTIZED MAKE_DDHRESULT( 589 )
|
---|
188 | #define DDERR_UNSUPPORTEDMODE MAKE_DDHRESULT( 590 )
|
---|
189 | #define DDERR_NOMIPMAPHW MAKE_DDHRESULT( 591 )
|
---|
190 | #define DDERR_INVALIDSURFACETYPE MAKE_DDHRESULT( 592 )
|
---|
191 | #define DDERR_NOOPTIMIZEHW MAKE_DDHRESULT( 600 )
|
---|
192 | #define DDERR_NOTLOADED MAKE_DDHRESULT( 601 )
|
---|
193 | #define DDERR_NOFOCUSWINDOW MAKE_DDHRESULT( 602 )
|
---|
194 | #define DDERR_NOTONMIPMAPSUBLEVEL MAKE_DDHRESULT( 603 )
|
---|
195 | #define DDERR_DCALREADYCREATED MAKE_DDHRESULT( 620 )
|
---|
196 | #define DDERR_NONONLOCALVIDMEM MAKE_DDHRESULT( 630 )
|
---|
197 | #define DDERR_CANTPAGELOCK MAKE_DDHRESULT( 640 )
|
---|
198 | #define DDERR_CANTPAGEUNLOCK MAKE_DDHRESULT( 660 )
|
---|
199 | #define DDERR_NOTPAGELOCKED MAKE_DDHRESULT( 680 )
|
---|
200 | #define DDERR_MOREDATA MAKE_DDHRESULT( 690 )
|
---|
201 | #define DDERR_EXPIRED MAKE_DDHRESULT( 691 )
|
---|
202 | #define DDERR_TESTFINISHED MAKE_DDHRESULT( 692 )
|
---|
203 | #define DDERR_NEWMODE MAKE_DDHRESULT( 693 )
|
---|
204 | #define DDERR_D3DNOTINITIALIZED MAKE_DDHRESULT( 694 )
|
---|
205 | #define DDERR_VIDEONOTACTIVE MAKE_DDHRESULT( 695 )
|
---|
206 | #define DDERR_NOMONITORINFORMATION MAKE_DDHRESULT( 696 )
|
---|
207 | #define DDERR_NODRIVERSUPPORT MAKE_DDHRESULT( 697 )
|
---|
208 | #define DDERR_DEVICEDOESNTOWNSURFACE MAKE_DDHRESULT( 699 )
|
---|
209 | #define DDERR_NOTINITIALIZED CO_E_NOTINITIALIZED
|
---|
210 |
|
---|
211 | /* dwFlags for Blt* */
|
---|
212 | #define DDBLT_ALPHADEST 0x00000001
|
---|
213 | #define DDBLT_ALPHADESTCONSTOVERRIDE 0x00000002
|
---|
214 | #define DDBLT_ALPHADESTNEG 0x00000004
|
---|
215 | #define DDBLT_ALPHADESTSURFACEOVERRIDE 0x00000008
|
---|
216 | #define DDBLT_ALPHAEDGEBLEND 0x00000010
|
---|
217 | #define DDBLT_ALPHASRC 0x00000020
|
---|
218 | #define DDBLT_ALPHASRCCONSTOVERRIDE 0x00000040
|
---|
219 | #define DDBLT_ALPHASRCNEG 0x00000080
|
---|
220 | #define DDBLT_ALPHASRCSURFACEOVERRIDE 0x00000100
|
---|
221 | #define DDBLT_ASYNC 0x00000200
|
---|
222 | #define DDBLT_COLORFILL 0x00000400
|
---|
223 | #define DDBLT_DDFX 0x00000800
|
---|
224 | #define DDBLT_DDROPS 0x00001000
|
---|
225 | #define DDBLT_KEYDEST 0x00002000
|
---|
226 | #define DDBLT_KEYDESTOVERRIDE 0x00004000
|
---|
227 | #define DDBLT_KEYSRC 0x00008000
|
---|
228 | #define DDBLT_KEYSRCOVERRIDE 0x00010000
|
---|
229 | #define DDBLT_ROP 0x00020000
|
---|
230 | #define DDBLT_ROTATIONANGLE 0x00040000
|
---|
231 | #define DDBLT_ZBUFFER 0x00080000
|
---|
232 | #define DDBLT_ZBUFFERDESTCONSTOVERRIDE 0x00100000
|
---|
233 | #define DDBLT_ZBUFFERDESTOVERRIDE 0x00200000
|
---|
234 | #define DDBLT_ZBUFFERSRCCONSTOVERRIDE 0x00400000
|
---|
235 | #define DDBLT_ZBUFFERSRCOVERRIDE 0x00800000
|
---|
236 | #define DDBLT_WAIT 0x01000000
|
---|
237 | #define DDBLT_DEPTHFILL 0x02000000
|
---|
238 | #define DDBLT_DONOTWAIT 0x08000000
|
---|
239 |
|
---|
240 | /* dwTrans for BltFast */
|
---|
241 | #define DDBLTFAST_NOCOLORKEY 0x00000000
|
---|
242 | #define DDBLTFAST_SRCCOLORKEY 0x00000001
|
---|
243 | #define DDBLTFAST_DESTCOLORKEY 0x00000002
|
---|
244 | #define DDBLTFAST_WAIT 0x00000010
|
---|
245 | #define DDBLTFAST_DONOTWAIT 0x00000020
|
---|
246 |
|
---|
247 | /* dwFlags for Flip */
|
---|
248 | #define DDFLIP_WAIT 0x00000001
|
---|
249 | #define DDFLIP_EVEN 0x00000002 /* only valid for overlay */
|
---|
250 | #define DDFLIP_ODD 0x00000004 /* only valid for overlay */
|
---|
251 | #define DDFLIP_NOVSYNC 0x00000008
|
---|
252 | #define DDFLIP_STEREO 0x00000010
|
---|
253 | #define DDFLIP_DONOTWAIT 0x00000020
|
---|
254 | #define DDFLIP_INTERVAL2 0x02000000
|
---|
255 | #define DDFLIP_INTERVAL3 0x03000000
|
---|
256 | #define DDFLIP_INTERVAL4 0x04000000
|
---|
257 |
|
---|
258 |
|
---|
259 | /* dwFlags for GetBltStatus */
|
---|
260 | #define DDGBS_CANBLT 0x00000001
|
---|
261 | #define DDGBS_ISBLTDONE 0x00000002
|
---|
262 |
|
---|
263 | /* dwFlags for IDirectDrawSurface7::GetFlipStatus */
|
---|
264 | #define DDGFS_CANFLIP 1L
|
---|
265 | #define DDGFS_ISFLIPDONE 2L
|
---|
266 |
|
---|
267 | /* dwFlags for IDirectDrawSurface7::SetPrivateData */
|
---|
268 | #define DDSPD_IUNKNOWNPOINTER 1L
|
---|
269 | #define DDSPD_VOLATILE 2L
|
---|
270 |
|
---|
271 | /* DDSCAPS.dwCaps */
|
---|
272 | /* reserved1, was 3d capable */
|
---|
273 | #define DDSCAPS_RESERVED1 0x00000001
|
---|
274 | /* surface contains alpha information */
|
---|
275 | #define DDSCAPS_ALPHA 0x00000002
|
---|
276 | /* this surface is a backbuffer */
|
---|
277 | #define DDSCAPS_BACKBUFFER 0x00000004
|
---|
278 | /* complex surface structure */
|
---|
279 | #define DDSCAPS_COMPLEX 0x00000008
|
---|
280 | /* part of surface flipping structure */
|
---|
281 | #define DDSCAPS_FLIP 0x00000010
|
---|
282 | /* this surface is the frontbuffer surface */
|
---|
283 | #define DDSCAPS_FRONTBUFFER 0x00000020
|
---|
284 | /* this is a plain offscreen surface */
|
---|
285 | #define DDSCAPS_OFFSCREENPLAIN 0x00000040
|
---|
286 | /* overlay */
|
---|
287 | #define DDSCAPS_OVERLAY 0x00000080
|
---|
288 | /* palette objects can be created and attached to us */
|
---|
289 | #define DDSCAPS_PALETTE 0x00000100
|
---|
290 | /* primary surface (the one the user looks at currently)(right eye)*/
|
---|
291 | #define DDSCAPS_PRIMARYSURFACE 0x00000200
|
---|
292 | /* primary surface for left eye */
|
---|
293 | #define DDSCAPS_PRIMARYSURFACELEFT 0x00000400
|
---|
294 | /* surface exists in systemmemory */
|
---|
295 | #define DDSCAPS_SYSTEMMEMORY 0x00000800
|
---|
296 | /* surface can be used as a texture */
|
---|
297 | #define DDSCAPS_TEXTURE 0x00001000
|
---|
298 | /* surface may be destination for 3d rendering */
|
---|
299 | #define DDSCAPS_3DDEVICE 0x00002000
|
---|
300 | /* surface exists in videomemory */
|
---|
301 | #define DDSCAPS_VIDEOMEMORY 0x00004000
|
---|
302 | /* surface changes immediately visible */
|
---|
303 | #define DDSCAPS_VISIBLE 0x00008000
|
---|
304 | /* write only surface */
|
---|
305 | #define DDSCAPS_WRITEONLY 0x00010000
|
---|
306 | /* zbuffer surface */
|
---|
307 | #define DDSCAPS_ZBUFFER 0x00020000
|
---|
308 | /* has its own DC */
|
---|
309 | #define DDSCAPS_OWNDC 0x00040000
|
---|
310 | /* surface should be able to receive live video */
|
---|
311 | #define DDSCAPS_LIVEVIDEO 0x00080000
|
---|
312 | /* should be able to have a hw codec decompress stuff into it */
|
---|
313 | #define DDSCAPS_HWCODEC 0x00100000
|
---|
314 | /* mode X (320x200 or 320x240) surface */
|
---|
315 | #define DDSCAPS_MODEX 0x00200000
|
---|
316 | /* one mipmap surface (1 level) */
|
---|
317 | #define DDSCAPS_MIPMAP 0x00400000
|
---|
318 | #define DDSCAPS_RESERVED2 0x00800000
|
---|
319 | /* memory allocation delayed until Load() */
|
---|
320 | #define DDSCAPS_ALLOCONLOAD 0x04000000
|
---|
321 | /* Indicates that the surface will receive data from a video port */
|
---|
322 | #define DDSCAPS_VIDEOPORT 0x08000000
|
---|
323 | /* surface is in local videomemory */
|
---|
324 | #define DDSCAPS_LOCALVIDMEM 0x10000000
|
---|
325 | /* surface is in nonlocal videomemory */
|
---|
326 | #define DDSCAPS_NONLOCALVIDMEM 0x20000000
|
---|
327 | /* surface is a standard VGA mode surface (NOT ModeX) */
|
---|
328 | #define DDSCAPS_STANDARDVGAMODE 0x40000000
|
---|
329 | /* optimized? surface */
|
---|
330 | #define DDSCAPS_OPTIMIZED 0x80000000
|
---|
331 |
|
---|
332 | typedef struct _DDSCAPS {
|
---|
333 | DWORD dwCaps; /* capabilities of surface wanted */
|
---|
334 | } DDSCAPS,*LPDDSCAPS;
|
---|
335 |
|
---|
336 | /* DDSCAPS2.dwCaps2 */
|
---|
337 | /* indicates the surface will receive data from a video port using
|
---|
338 | deinterlacing hardware. */
|
---|
339 | #define DDSCAPS2_HARDWAREDEINTERLACE 0x00000002
|
---|
340 | /* indicates the surface will be locked very frequently. */
|
---|
341 | #define DDSCAPS2_HINTDYNAMIC 0x00000004
|
---|
342 | /* indicates surface can be re-ordered or retiled on load() */
|
---|
343 | #define DDSCAPS2_HINTSTATIC 0x00000008
|
---|
344 | /* indicates surface to be managed by directdraw/direct3D */
|
---|
345 | #define DDSCAPS2_TEXTUREMANAGE 0x00000010
|
---|
346 | /* reserved bits */
|
---|
347 | #define DDSCAPS2_RESERVED1 0x00000020
|
---|
348 | #define DDSCAPS2_RESERVED2 0x00000040
|
---|
349 | /* indicates surface will never be locked again */
|
---|
350 | #define DDSCAPS2_OPAQUE 0x00000080
|
---|
351 | /* set at CreateSurface() time to indicate antialiasing will be used */
|
---|
352 | #define DDSCAPS2_HINTANTIALIASING 0x00000100
|
---|
353 | /* set at CreateSurface() time to indicate cubic environment map */
|
---|
354 | #define DDSCAPS2_CUBEMAP 0x00000200
|
---|
355 | /* face flags for cube maps */
|
---|
356 | #define DDSCAPS2_CUBEMAP_POSITIVEX 0x00000400
|
---|
357 | #define DDSCAPS2_CUBEMAP_NEGATIVEX 0x00000800
|
---|
358 | #define DDSCAPS2_CUBEMAP_POSITIVEY 0x00001000
|
---|
359 | #define DDSCAPS2_CUBEMAP_NEGATIVEY 0x00002000
|
---|
360 | #define DDSCAPS2_CUBEMAP_POSITIVEZ 0x00004000
|
---|
361 | #define DDSCAPS2_CUBEMAP_NEGATIVEZ 0x00008000
|
---|
362 | /* specifies all faces of a cube for CreateSurface() */
|
---|
363 | #define DDSCAPS2_CUBEMAP_ALLFACES ( DDSCAPS2_CUBEMAP_POSITIVEX |\
|
---|
364 | DDSCAPS2_CUBEMAP_NEGATIVEX |\
|
---|
365 | DDSCAPS2_CUBEMAP_POSITIVEY |\
|
---|
366 | DDSCAPS2_CUBEMAP_NEGATIVEY |\
|
---|
367 | DDSCAPS2_CUBEMAP_POSITIVEZ |\
|
---|
368 | DDSCAPS2_CUBEMAP_NEGATIVEZ )
|
---|
369 | /* set for mipmap sublevels on DirectX7 and later. ignored by CreateSurface() */
|
---|
370 | #define DDSCAPS2_MIPMAPSUBLEVEL 0x00010000
|
---|
371 | /* indicates texture surface to be managed by Direct3D *only* */
|
---|
372 | #define DDSCAPS2_D3DTEXTUREMANAGE 0x00020000
|
---|
373 | /* indicates managed surface that can safely be lost */
|
---|
374 | #define DDSCAPS2_DONOTPERSIST 0x00040000
|
---|
375 | /* indicates surface is part of a stereo flipping chain */
|
---|
376 | #define DDSCAPS2_STEREOSURFACELEFT 0x00080000
|
---|
377 |
|
---|
378 | typedef struct _DDSCAPS2 {
|
---|
379 | DWORD dwCaps; /* capabilities of surface wanted */
|
---|
380 | DWORD dwCaps2; /* additional capabilities */
|
---|
381 | DWORD dwCaps3; /* reserved capabilities */
|
---|
382 | DWORD dwCaps4; /* more reserved capabilities */
|
---|
383 | } DDSCAPS2,*LPDDSCAPS2;
|
---|
384 |
|
---|
385 | #define DD_ROP_SPACE (256/32) /* space required to store ROP array */
|
---|
386 |
|
---|
387 | typedef struct _DDCAPS_DX7 /* DirectX 7 version of caps struct */
|
---|
388 | {
|
---|
389 | DWORD dwSize; /* size of the DDDRIVERCAPS structure */
|
---|
390 | DWORD dwCaps; /* driver specific capabilities */
|
---|
391 | DWORD dwCaps2; /* more driver specific capabilities */
|
---|
392 | DWORD dwCKeyCaps; /* color key capabilities of the surface */
|
---|
393 | DWORD dwFXCaps; /* driver specific stretching and effects capabilities */
|
---|
394 | DWORD dwFXAlphaCaps; /* alpha driver specific capabilities */
|
---|
395 | DWORD dwPalCaps; /* palette capabilities */
|
---|
396 | DWORD dwSVCaps; /* stereo vision capabilities */
|
---|
397 | DWORD dwAlphaBltConstBitDepths; /* DDBD_2,4,8 */
|
---|
398 | DWORD dwAlphaBltPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
399 | DWORD dwAlphaBltSurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
400 | DWORD dwAlphaOverlayConstBitDepths; /* DDBD_2,4,8 */
|
---|
401 | DWORD dwAlphaOverlayPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
402 | DWORD dwAlphaOverlaySurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
403 | DWORD dwZBufferBitDepths; /* DDBD_8,16,24,32 */
|
---|
404 | DWORD dwVidMemTotal; /* total amount of video memory */
|
---|
405 | DWORD dwVidMemFree; /* amount of free video memory */
|
---|
406 | DWORD dwMaxVisibleOverlays; /* maximum number of visible overlays */
|
---|
407 | DWORD dwCurrVisibleOverlays; /* current number of visible overlays */
|
---|
408 | DWORD dwNumFourCCCodes; /* number of four cc codes */
|
---|
409 | DWORD dwAlignBoundarySrc; /* source rectangle alignment */
|
---|
410 | DWORD dwAlignSizeSrc; /* source rectangle byte size */
|
---|
411 | DWORD dwAlignBoundaryDest; /* dest rectangle alignment */
|
---|
412 | DWORD dwAlignSizeDest; /* dest rectangle byte size */
|
---|
413 | DWORD dwAlignStrideAlign; /* stride alignment */
|
---|
414 | DWORD dwRops[DD_ROP_SPACE]; /* ROPs supported */
|
---|
415 | DDSCAPS ddsOldCaps; /* old DDSCAPS - superseded for DirectX6+ */
|
---|
416 | DWORD dwMinOverlayStretch; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
417 | DWORD dwMaxOverlayStretch; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
418 | DWORD dwMinLiveVideoStretch; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
419 | DWORD dwMaxLiveVideoStretch; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
420 | DWORD dwMinHwCodecStretch; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
421 | DWORD dwMaxHwCodecStretch; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
422 | DWORD dwReserved1;
|
---|
423 | DWORD dwReserved2;
|
---|
424 | DWORD dwReserved3;
|
---|
425 | DWORD dwSVBCaps; /* driver specific capabilities for System->Vmem blts */
|
---|
426 | DWORD dwSVBCKeyCaps; /* driver color key capabilities for System->Vmem blts */
|
---|
427 | DWORD dwSVBFXCaps; /* driver FX capabilities for System->Vmem blts */
|
---|
428 | DWORD dwSVBRops[DD_ROP_SPACE];/* ROPs supported for System->Vmem blts */
|
---|
429 | DWORD dwVSBCaps; /* driver specific capabilities for Vmem->System blts */
|
---|
430 | DWORD dwVSBCKeyCaps; /* driver color key capabilities for Vmem->System blts */
|
---|
431 | DWORD dwVSBFXCaps; /* driver FX capabilities for Vmem->System blts */
|
---|
432 | DWORD dwVSBRops[DD_ROP_SPACE];/* ROPs supported for Vmem->System blts */
|
---|
433 | DWORD dwSSBCaps; /* driver specific capabilities for System->System blts */
|
---|
434 | DWORD dwSSBCKeyCaps; /* driver color key capabilities for System->System blts */
|
---|
435 | DWORD dwSSBFXCaps; /* driver FX capabilities for System->System blts */
|
---|
436 | DWORD dwSSBRops[DD_ROP_SPACE];/* ROPs supported for System->System blts */
|
---|
437 | DWORD dwMaxVideoPorts; /* maximum number of usable video ports */
|
---|
438 | DWORD dwCurrVideoPorts; /* current number of video ports used */
|
---|
439 | DWORD dwSVBCaps2; /* more driver specific capabilities for System->Vmem blts */
|
---|
440 | DWORD dwNLVBCaps; /* driver specific capabilities for non-local->local vidmem blts */
|
---|
441 | DWORD dwNLVBCaps2; /* more driver specific capabilities non-local->local vidmem blts */
|
---|
442 | DWORD dwNLVBCKeyCaps; /* driver color key capabilities for non-local->local vidmem blts */
|
---|
443 | DWORD dwNLVBFXCaps; /* driver FX capabilities for non-local->local blts */
|
---|
444 | DWORD dwNLVBRops[DD_ROP_SPACE]; /* ROPs supported for non-local->local blts */
|
---|
445 | DDSCAPS2 ddsCaps; /* surface capabilities */
|
---|
446 | } DDCAPS_DX7,*LPDDCAPS_DX7;
|
---|
447 |
|
---|
448 | typedef struct _DDCAPS_DX6 /* DirectX 6 version of caps struct */
|
---|
449 | {
|
---|
450 | DWORD dwSize; /* size of the DDDRIVERCAPS structure */
|
---|
451 | DWORD dwCaps; /* driver specific capabilities */
|
---|
452 | DWORD dwCaps2; /* more driver specific capabilities */
|
---|
453 | DWORD dwCKeyCaps; /* color key capabilities of the surface */
|
---|
454 | DWORD dwFXCaps; /* driver specific stretching and effects capabilities */
|
---|
455 | DWORD dwFXAlphaCaps; /* alpha driver specific capabilities */
|
---|
456 | DWORD dwPalCaps; /* palette capabilities */
|
---|
457 | DWORD dwSVCaps; /* stereo vision capabilities */
|
---|
458 | DWORD dwAlphaBltConstBitDepths; /* DDBD_2,4,8 */
|
---|
459 | DWORD dwAlphaBltPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
460 | DWORD dwAlphaBltSurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
461 | DWORD dwAlphaOverlayConstBitDepths; /* DDBD_2,4,8 */
|
---|
462 | DWORD dwAlphaOverlayPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
463 | DWORD dwAlphaOverlaySurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
464 | DWORD dwZBufferBitDepths; /* DDBD_8,16,24,32 */
|
---|
465 | DWORD dwVidMemTotal; /* total amount of video memory */
|
---|
466 | DWORD dwVidMemFree; /* amount of free video memory */
|
---|
467 | DWORD dwMaxVisibleOverlays; /* maximum number of visible overlays */
|
---|
468 | DWORD dwCurrVisibleOverlays; /* current number of visible overlays */
|
---|
469 | DWORD dwNumFourCCCodes; /* number of four cc codes */
|
---|
470 | DWORD dwAlignBoundarySrc; /* source rectangle alignment */
|
---|
471 | DWORD dwAlignSizeSrc; /* source rectangle byte size */
|
---|
472 | DWORD dwAlignBoundaryDest; /* dest rectangle alignment */
|
---|
473 | DWORD dwAlignSizeDest; /* dest rectangle byte size */
|
---|
474 | DWORD dwAlignStrideAlign; /* stride alignment */
|
---|
475 | DWORD dwRops[DD_ROP_SPACE]; /* ROPs supported */
|
---|
476 | DDSCAPS ddsOldCaps; /* old DDSCAPS - superseded for DirectX6+ */
|
---|
477 | DWORD dwMinOverlayStretch; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
478 | DWORD dwMaxOverlayStretch; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
479 | DWORD dwMinLiveVideoStretch; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
480 | DWORD dwMaxLiveVideoStretch; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
481 | DWORD dwMinHwCodecStretch; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
482 | DWORD dwMaxHwCodecStretch; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
483 | DWORD dwReserved1;
|
---|
484 | DWORD dwReserved2;
|
---|
485 | DWORD dwReserved3;
|
---|
486 | DWORD dwSVBCaps; /* driver specific capabilities for System->Vmem blts */
|
---|
487 | DWORD dwSVBCKeyCaps; /* driver color key capabilities for System->Vmem blts */
|
---|
488 | DWORD dwSVBFXCaps; /* driver FX capabilities for System->Vmem blts */
|
---|
489 | DWORD dwSVBRops[DD_ROP_SPACE];/* ROPs supported for System->Vmem blts */
|
---|
490 | DWORD dwVSBCaps; /* driver specific capabilities for Vmem->System blts */
|
---|
491 | DWORD dwVSBCKeyCaps; /* driver color key capabilities for Vmem->System blts */
|
---|
492 | DWORD dwVSBFXCaps; /* driver FX capabilities for Vmem->System blts */
|
---|
493 | DWORD dwVSBRops[DD_ROP_SPACE];/* ROPs supported for Vmem->System blts */
|
---|
494 | DWORD dwSSBCaps; /* driver specific capabilities for System->System blts */
|
---|
495 | DWORD dwSSBCKeyCaps; /* driver color key capabilities for System->System blts */
|
---|
496 | DWORD dwSSBFXCaps; /* driver FX capabilities for System->System blts */
|
---|
497 | DWORD dwSSBRops[DD_ROP_SPACE];/* ROPs supported for System->System blts */
|
---|
498 | DWORD dwMaxVideoPorts; /* maximum number of usable video ports */
|
---|
499 | DWORD dwCurrVideoPorts; /* current number of video ports used */
|
---|
500 | DWORD dwSVBCaps2; /* more driver specific capabilities for System->Vmem blts */
|
---|
501 | DWORD dwNLVBCaps; /* driver specific capabilities for non-local->local vidmem blts */
|
---|
502 | DWORD dwNLVBCaps2; /* more driver specific capabilities non-local->local vidmem blts */
|
---|
503 | DWORD dwNLVBCKeyCaps; /* driver color key capabilities for non-local->local vidmem blts */
|
---|
504 | DWORD dwNLVBFXCaps; /* driver FX capabilities for non-local->local blts */
|
---|
505 | DWORD dwNLVBRops[DD_ROP_SPACE]; /* ROPs supported for non-local->local blts */
|
---|
506 | /* and one new member for DirectX 6 */
|
---|
507 | DDSCAPS2 ddsCaps; /* surface capabilities */
|
---|
508 | } DDCAPS_DX6,*LPDDCAPS_DX6;
|
---|
509 |
|
---|
510 | typedef struct _DDCAPS_DX5 /* DirectX5 version of caps struct */
|
---|
511 | {
|
---|
512 | DWORD dwSize; /* size of the DDDRIVERCAPS structure */
|
---|
513 | DWORD dwCaps; /* driver specific capabilities */
|
---|
514 | DWORD dwCaps2; /* more driver specific capabilities */
|
---|
515 | DWORD dwCKeyCaps; /* color key capabilities of the surface */
|
---|
516 | DWORD dwFXCaps; /* driver specific stretching and effects capabilities */
|
---|
517 | DWORD dwFXAlphaCaps; /* alpha driver specific capabilities */
|
---|
518 | DWORD dwPalCaps; /* palette capabilities */
|
---|
519 | DWORD dwSVCaps; /* stereo vision capabilities */
|
---|
520 | DWORD dwAlphaBltConstBitDepths; /* DDBD_2,4,8 */
|
---|
521 | DWORD dwAlphaBltPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
522 | DWORD dwAlphaBltSurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
523 | DWORD dwAlphaOverlayConstBitDepths; /* DDBD_2,4,8 */
|
---|
524 | DWORD dwAlphaOverlayPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
525 | DWORD dwAlphaOverlaySurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
526 | DWORD dwZBufferBitDepths; /* DDBD_8,16,24,32 */
|
---|
527 | DWORD dwVidMemTotal; /* total amount of video memory */
|
---|
528 | DWORD dwVidMemFree; /* amount of free video memory */
|
---|
529 | DWORD dwMaxVisibleOverlays; /* maximum number of visible overlays */
|
---|
530 | DWORD dwCurrVisibleOverlays; /* current number of visible overlays */
|
---|
531 | DWORD dwNumFourCCCodes; /* number of four cc codes */
|
---|
532 | DWORD dwAlignBoundarySrc; /* source rectangle alignment */
|
---|
533 | DWORD dwAlignSizeSrc; /* source rectangle byte size */
|
---|
534 | DWORD dwAlignBoundaryDest; /* dest rectangle alignment */
|
---|
535 | DWORD dwAlignSizeDest; /* dest rectangle byte size */
|
---|
536 | DWORD dwAlignStrideAlign; /* stride alignment */
|
---|
537 | DWORD dwRops[DD_ROP_SPACE]; /* ROPs supported */
|
---|
538 | DDSCAPS ddsCaps; /* DDSCAPS structure has all the general capabilities */
|
---|
539 | DWORD dwMinOverlayStretch; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
540 | DWORD dwMaxOverlayStretch; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
541 | DWORD dwMinLiveVideoStretch; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
542 | DWORD dwMaxLiveVideoStretch; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
543 | DWORD dwMinHwCodecStretch; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
544 | DWORD dwMaxHwCodecStretch; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
545 | DWORD dwReserved1;
|
---|
546 | DWORD dwReserved2;
|
---|
547 | DWORD dwReserved3;
|
---|
548 | DWORD dwSVBCaps; /* driver specific capabilities for System->Vmem blts */
|
---|
549 | DWORD dwSVBCKeyCaps; /* driver color key capabilities for System->Vmem blts */
|
---|
550 | DWORD dwSVBFXCaps; /* driver FX capabilities for System->Vmem blts */
|
---|
551 | DWORD dwSVBRops[DD_ROP_SPACE];/* ROPs supported for System->Vmem blts */
|
---|
552 | DWORD dwVSBCaps; /* driver specific capabilities for Vmem->System blts */
|
---|
553 | DWORD dwVSBCKeyCaps; /* driver color key capabilities for Vmem->System blts */
|
---|
554 | DWORD dwVSBFXCaps; /* driver FX capabilities for Vmem->System blts */
|
---|
555 | DWORD dwVSBRops[DD_ROP_SPACE];/* ROPs supported for Vmem->System blts */
|
---|
556 | DWORD dwSSBCaps; /* driver specific capabilities for System->System blts */
|
---|
557 | DWORD dwSSBCKeyCaps; /* driver color key capabilities for System->System blts */
|
---|
558 | DWORD dwSSBFXCaps; /* driver FX capabilities for System->System blts */
|
---|
559 | DWORD dwSSBRops[DD_ROP_SPACE];/* ROPs supported for System->System blts */
|
---|
560 | /* the following are the new DirectX 5 members */
|
---|
561 | DWORD dwMaxVideoPorts; /* maximum number of usable video ports */
|
---|
562 | DWORD dwCurrVideoPorts; /* current number of video ports used */
|
---|
563 | DWORD dwSVBCaps2; /* more driver specific capabilities for System->Vmem blts */
|
---|
564 | DWORD dwNLVBCaps; /* driver specific capabilities for non-local->local vidmem blts */
|
---|
565 | DWORD dwNLVBCaps2; /* more driver specific capabilities non-local->local vidmem blts */
|
---|
566 | DWORD dwNLVBCKeyCaps; /* driver color key capabilities for non-local->local vidmem blts */
|
---|
567 | DWORD dwNLVBFXCaps; /* driver FX capabilities for non-local->local blts */
|
---|
568 | DWORD dwNLVBRops[DD_ROP_SPACE]; /* ROPs supported for non-local->local blts */
|
---|
569 | } DDCAPS_DX5,*LPDDCAPS_DX5;
|
---|
570 |
|
---|
571 | typedef struct _DDCAPS_DX3 /* DirectX3 version of caps struct */
|
---|
572 | {
|
---|
573 | DWORD dwSize; /* size of the DDDRIVERCAPS structure */
|
---|
574 | DWORD dwCaps; /* driver specific capabilities */
|
---|
575 | DWORD dwCaps2; /* more driver specific capabilities */
|
---|
576 | DWORD dwCKeyCaps; /* color key capabilities of the surface */
|
---|
577 | DWORD dwFXCaps; /* driver specific stretching and effects capabilities */
|
---|
578 | DWORD dwFXAlphaCaps; /* alpha driver specific capabilities */
|
---|
579 | DWORD dwPalCaps; /* palette capabilities */
|
---|
580 | DWORD dwSVCaps; /* stereo vision capabilities */
|
---|
581 | DWORD dwAlphaBltConstBitDepths; /* DDBD_2,4,8 */
|
---|
582 | DWORD dwAlphaBltPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
583 | DWORD dwAlphaBltSurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
584 | DWORD dwAlphaOverlayConstBitDepths; /* DDBD_2,4,8 */
|
---|
585 | DWORD dwAlphaOverlayPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
586 | DWORD dwAlphaOverlaySurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
587 | DWORD dwZBufferBitDepths; /* DDBD_8,16,24,32 */
|
---|
588 | DWORD dwVidMemTotal; /* total amount of video memory */
|
---|
589 | DWORD dwVidMemFree; /* amount of free video memory */
|
---|
590 | DWORD dwMaxVisibleOverlays; /* maximum number of visible overlays */
|
---|
591 | DWORD dwCurrVisibleOverlays; /* current number of visible overlays */
|
---|
592 | DWORD dwNumFourCCCodes; /* number of four cc codes */
|
---|
593 | DWORD dwAlignBoundarySrc; /* source rectangle alignment */
|
---|
594 | DWORD dwAlignSizeSrc; /* source rectangle byte size */
|
---|
595 | DWORD dwAlignBoundaryDest; /* dest rectangle alignment */
|
---|
596 | DWORD dwAlignSizeDest; /* dest rectangle byte size */
|
---|
597 | DWORD dwAlignStrideAlign; /* stride alignment */
|
---|
598 | DWORD dwRops[DD_ROP_SPACE]; /* ROPs supported */
|
---|
599 | DDSCAPS ddsCaps; /* DDSCAPS structure has all the general capabilities */
|
---|
600 | DWORD dwMinOverlayStretch; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
601 | DWORD dwMaxOverlayStretch; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
602 | DWORD dwMinLiveVideoStretch; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
603 | DWORD dwMaxLiveVideoStretch; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
604 | DWORD dwMinHwCodecStretch; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
605 | DWORD dwMaxHwCodecStretch; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
606 | DWORD dwReserved1;
|
---|
607 | DWORD dwReserved2;
|
---|
608 | DWORD dwReserved3;
|
---|
609 | DWORD dwSVBCaps; /* driver specific capabilities for System->Vmem blts */
|
---|
610 | DWORD dwSVBCKeyCaps; /* driver color key capabilities for System->Vmem blts */
|
---|
611 | DWORD dwSVBFXCaps; /* driver FX capabilities for System->Vmem blts */
|
---|
612 | DWORD dwSVBRops[DD_ROP_SPACE];/* ROPs supported for System->Vmem blts */
|
---|
613 | DWORD dwVSBCaps; /* driver specific capabilities for Vmem->System blts */
|
---|
614 | DWORD dwVSBCKeyCaps; /* driver color key capabilities for Vmem->System blts */
|
---|
615 | DWORD dwVSBFXCaps; /* driver FX capabilities for Vmem->System blts */
|
---|
616 | DWORD dwVSBRops[DD_ROP_SPACE];/* ROPs supported for Vmem->System blts */
|
---|
617 | DWORD dwSSBCaps; /* driver specific capabilities for System->System blts */
|
---|
618 | DWORD dwSSBCKeyCaps; /* driver color key capabilities for System->System blts */
|
---|
619 | DWORD dwSSBFXCaps; /* driver FX capabilities for System->System blts */
|
---|
620 | DWORD dwSSBRops[DD_ROP_SPACE];/* ROPs supported for System->System blts */
|
---|
621 | DWORD dwReserved4;
|
---|
622 | DWORD dwReserved5;
|
---|
623 | DWORD dwReserved6;
|
---|
624 | } DDCAPS_DX3,*LPDDCAPS_DX3;
|
---|
625 |
|
---|
626 | /* set caps struct according to DIRECTDRAW_VERSION */
|
---|
627 |
|
---|
628 | #if DIRECTDRAW_VERSION <= 0x300
|
---|
629 | typedef DDCAPS_DX3 DDCAPS;
|
---|
630 | #elif DIRECTDRAW_VERSION <= 0x500
|
---|
631 | typedef DDCAPS_DX5 DDCAPS;
|
---|
632 | #elif DIRECTDRAW_VERSION <= 0x600
|
---|
633 | typedef DDCAPS_DX6 DDCAPS;
|
---|
634 | #else
|
---|
635 | typedef DDCAPS_DX7 DDCAPS;
|
---|
636 | #endif
|
---|
637 |
|
---|
638 | typedef DDCAPS *LPDDCAPS;
|
---|
639 |
|
---|
640 | /* DDCAPS.dwCaps */
|
---|
641 | #define DDCAPS_3D 0x00000001
|
---|
642 | #define DDCAPS_ALIGNBOUNDARYDEST 0x00000002
|
---|
643 | #define DDCAPS_ALIGNSIZEDEST 0x00000004
|
---|
644 | #define DDCAPS_ALIGNBOUNDARYSRC 0x00000008
|
---|
645 | #define DDCAPS_ALIGNSIZESRC 0x00000010
|
---|
646 | #define DDCAPS_ALIGNSTRIDE 0x00000020
|
---|
647 | #define DDCAPS_BLT 0x00000040
|
---|
648 | #define DDCAPS_BLTQUEUE 0x00000080
|
---|
649 | #define DDCAPS_BLTFOURCC 0x00000100
|
---|
650 | #define DDCAPS_BLTSTRETCH 0x00000200
|
---|
651 | #define DDCAPS_GDI 0x00000400
|
---|
652 | #define DDCAPS_OVERLAY 0x00000800
|
---|
653 | #define DDCAPS_OVERLAYCANTCLIP 0x00001000
|
---|
654 | #define DDCAPS_OVERLAYFOURCC 0x00002000
|
---|
655 | #define DDCAPS_OVERLAYSTRETCH 0x00004000
|
---|
656 | #define DDCAPS_PALETTE 0x00008000
|
---|
657 | #define DDCAPS_PALETTEVSYNC 0x00010000
|
---|
658 | #define DDCAPS_READSCANLINE 0x00020000
|
---|
659 | #define DDCAPS_STEREOVIEW 0x00040000
|
---|
660 | #define DDCAPS_VBI 0x00080000
|
---|
661 | #define DDCAPS_ZBLTS 0x00100000
|
---|
662 | #define DDCAPS_ZOVERLAYS 0x00200000
|
---|
663 | #define DDCAPS_COLORKEY 0x00400000
|
---|
664 | #define DDCAPS_ALPHA 0x00800000
|
---|
665 | #define DDCAPS_COLORKEYHWASSIST 0x01000000
|
---|
666 | #define DDCAPS_NOHARDWARE 0x02000000
|
---|
667 | #define DDCAPS_BLTCOLORFILL 0x04000000
|
---|
668 | #define DDCAPS_BANKSWITCHED 0x08000000
|
---|
669 | #define DDCAPS_BLTDEPTHFILL 0x10000000
|
---|
670 | #define DDCAPS_CANCLIP 0x20000000
|
---|
671 | #define DDCAPS_CANCLIPSTRETCHED 0x40000000
|
---|
672 | #define DDCAPS_CANBLTSYSMEM 0x80000000
|
---|
673 |
|
---|
674 | /* DDCAPS.dwCaps2 */
|
---|
675 | #define DDCAPS2_CERTIFIED 0x00000001
|
---|
676 | #define DDCAPS2_NO2DDURING3DSCENE 0x00000002
|
---|
677 | #define DDCAPS2_VIDEOPORT 0x00000004
|
---|
678 | #define DDCAPS2_AUTOFLIPOVERLAY 0x00000008
|
---|
679 | #define DDCAPS2_CANBOBINTERLEAVED 0x00000010
|
---|
680 | #define DDCAPS2_CANBOBNONINTERLEAVED 0x00000020
|
---|
681 | #define DDCAPS2_COLORCONTROLOVERLAY 0x00000040
|
---|
682 | #define DDCAPS2_COLORCONTROLPRIMARY 0x00000080
|
---|
683 | #define DDCAPS2_CANDROPZ16BIT 0x00000100
|
---|
684 | #define DDCAPS2_NONLOCALVIDMEM 0x00000200
|
---|
685 | #define DDCAPS2_NONLOCALVIDMEMCAPS 0x00000400
|
---|
686 | #define DDCAPS2_NOPAGELOCKREQUIRED 0x00000800
|
---|
687 | #define DDCAPS2_WIDESURFACES 0x00001000
|
---|
688 | #define DDCAPS2_CANFLIPODDEVEN 0x00002000
|
---|
689 | #define DDCAPS2_CANBOBHARDWARE 0x00004000
|
---|
690 | #define DDCAPS2_COPYFOURCC 0x00008000
|
---|
691 | #define DDCAPS2_PRIMARYGAMMA 0x00020000
|
---|
692 | #define DDCAPS2_CANRENDERWINDOWED 0x00080000
|
---|
693 | #define DDCAPS2_CANCALIBRATEGAMMA 0x00100000
|
---|
694 | #define DDCAPS2_FLIPINTERVAL 0x00200000
|
---|
695 | #define DDCAPS2_FLIPNOVSYNC 0x00400000
|
---|
696 | #define DDCAPS2_CANMANAGETEXTURE 0x00800000
|
---|
697 | #define DDCAPS2_TEXMANINNONLOCALVIDMEM 0x01000000
|
---|
698 | #define DDCAPS2_STEREO 0x02000000
|
---|
699 | #define DDCAPS2_SYSTONONLOCAL_AS_SYSTOLOCAL 0x04000000
|
---|
700 |
|
---|
701 |
|
---|
702 | /* Set/Get Colour Key Flags */
|
---|
703 | #define DDCKEY_COLORSPACE 0x00000001 /* Struct is single colour space */
|
---|
704 | #define DDCKEY_DESTBLT 0x00000002 /* To be used as dest for blt */
|
---|
705 | #define DDCKEY_DESTOVERLAY 0x00000004 /* To be used as dest for CK overlays */
|
---|
706 | #define DDCKEY_SRCBLT 0x00000008 /* To be used as src for blt */
|
---|
707 | #define DDCKEY_SRCOVERLAY 0x00000010 /* To be used as src for CK overlays */
|
---|
708 |
|
---|
709 | typedef struct _DDCOLORKEY
|
---|
710 | {
|
---|
711 | DWORD dwColorSpaceLowValue;/* low boundary of color space that is to
|
---|
712 | * be treated as Color Key, inclusive
|
---|
713 | */
|
---|
714 | DWORD dwColorSpaceHighValue;/* high boundary of color space that is
|
---|
715 | * to be treated as Color Key, inclusive
|
---|
716 | */
|
---|
717 | } DDCOLORKEY,*LPDDCOLORKEY;
|
---|
718 |
|
---|
719 | /* ddCKEYCAPS bits */
|
---|
720 | #define DDCKEYCAPS_DESTBLT 0x00000001
|
---|
721 | #define DDCKEYCAPS_DESTBLTCLRSPACE 0x00000002
|
---|
722 | #define DDCKEYCAPS_DESTBLTCLRSPACEYUV 0x00000004
|
---|
723 | #define DDCKEYCAPS_DESTBLTYUV 0x00000008
|
---|
724 | #define DDCKEYCAPS_DESTOVERLAY 0x00000010
|
---|
725 | #define DDCKEYCAPS_DESTOVERLAYCLRSPACE 0x00000020
|
---|
726 | #define DDCKEYCAPS_DESTOVERLAYCLRSPACEYUV 0x00000040
|
---|
727 | #define DDCKEYCAPS_DESTOVERLAYONEACTIVE 0x00000080
|
---|
728 | #define DDCKEYCAPS_DESTOVERLAYYUV 0x00000100
|
---|
729 | #define DDCKEYCAPS_SRCBLT 0x00000200
|
---|
730 | #define DDCKEYCAPS_SRCBLTCLRSPACE 0x00000400
|
---|
731 | #define DDCKEYCAPS_SRCBLTCLRSPACEYUV 0x00000800
|
---|
732 | #define DDCKEYCAPS_SRCBLTYUV 0x00001000
|
---|
733 | #define DDCKEYCAPS_SRCOVERLAY 0x00002000
|
---|
734 | #define DDCKEYCAPS_SRCOVERLAYCLRSPACE 0x00004000
|
---|
735 | #define DDCKEYCAPS_SRCOVERLAYCLRSPACEYUV 0x00008000
|
---|
736 | #define DDCKEYCAPS_SRCOVERLAYONEACTIVE 0x00010000
|
---|
737 | #define DDCKEYCAPS_SRCOVERLAYYUV 0x00020000
|
---|
738 | #define DDCKEYCAPS_NOCOSTOVERLAY 0x00040000
|
---|
739 |
|
---|
740 | typedef struct _DDPIXELFORMAT {
|
---|
741 | DWORD dwSize; /* 0: size of structure */
|
---|
742 | DWORD dwFlags; /* 4: pixel format flags */
|
---|
743 | DWORD dwFourCC; /* 8: (FOURCC code) */
|
---|
744 | union {
|
---|
745 | DWORD dwRGBBitCount; /* C: how many bits per pixel */
|
---|
746 | DWORD dwYUVBitCount; /* C: how many bits per pixel */
|
---|
747 | DWORD dwZBufferBitDepth; /* C: how many bits for z buffers */
|
---|
748 | DWORD dwAlphaBitDepth; /* C: how many bits for alpha channels*/
|
---|
749 | DWORD dwLuminanceBitCount;
|
---|
750 | DWORD dwBumpBitCount;
|
---|
751 | } DUMMYUNIONNAME1;
|
---|
752 | union {
|
---|
753 | DWORD dwRBitMask; /* 10: mask for red bit*/
|
---|
754 | DWORD dwYBitMask; /* 10: mask for Y bits*/
|
---|
755 | DWORD dwStencilBitDepth;
|
---|
756 | DWORD dwLuminanceBitMask;
|
---|
757 | DWORD dwBumpDuBitMask;
|
---|
758 | } DUMMYUNIONNAME2;
|
---|
759 | union {
|
---|
760 | DWORD dwGBitMask; /* 14: mask for green bits*/
|
---|
761 | DWORD dwUBitMask; /* 14: mask for U bits*/
|
---|
762 | DWORD dwZBitMask;
|
---|
763 | DWORD dwBumpDvBitMask;
|
---|
764 | } DUMMYUNIONNAME3;
|
---|
765 | union {
|
---|
766 | DWORD dwBBitMask; /* 18: mask for blue bits*/
|
---|
767 | DWORD dwVBitMask; /* 18: mask for V bits*/
|
---|
768 | DWORD dwStencilBitMask;
|
---|
769 | DWORD dwBumpLuminanceBitMask;
|
---|
770 | } DUMMYUNIONNAME4;
|
---|
771 | union {
|
---|
772 | DWORD dwRGBAlphaBitMask; /* 1C: mask for alpha channel */
|
---|
773 | DWORD dwYUVAlphaBitMask; /* 1C: mask for alpha channel */
|
---|
774 | DWORD dwLuminanceAlphaBitMask;
|
---|
775 | DWORD dwRGBZBitMask; /* 1C: mask for Z channel */
|
---|
776 | DWORD dwYUVZBitMask; /* 1C: mask for Z channel */
|
---|
777 | } DUMMYUNIONNAME5;
|
---|
778 | /* 20: next structure */
|
---|
779 | } DDPIXELFORMAT,*LPDDPIXELFORMAT;
|
---|
780 |
|
---|
781 | #define MAKEFOURCC(ch0, ch1, ch2, ch3) \
|
---|
782 | ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
|
---|
783 | ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
|
---|
784 |
|
---|
785 | /* DDCAPS.dwFXCaps */
|
---|
786 | #define DDFXCAPS_BLTALPHA 0x00000001
|
---|
787 | #define DDFXCAPS_OVERLAYALPHA 0x00000004
|
---|
788 | #define DDFXCAPS_BLTARITHSTRETCHYN 0x00000010
|
---|
789 | #define DDFXCAPS_BLTARITHSTRETCHY 0x00000020
|
---|
790 | #define DDFXCAPS_BLTMIRRORLEFTRIGHT 0x00000040
|
---|
791 | #define DDFXCAPS_BLTMIRRORUPDOWN 0x00000080
|
---|
792 | #define DDFXCAPS_BLTROTATION 0x00000100
|
---|
793 | #define DDFXCAPS_BLTROTATION90 0x00000200
|
---|
794 | #define DDFXCAPS_BLTSHRINKX 0x00000400
|
---|
795 | #define DDFXCAPS_BLTSHRINKXN 0x00000800
|
---|
796 | #define DDFXCAPS_BLTSHRINKY 0x00001000
|
---|
797 | #define DDFXCAPS_BLTSHRINKYN 0x00002000
|
---|
798 | #define DDFXCAPS_BLTSTRETCHX 0x00004000
|
---|
799 | #define DDFXCAPS_BLTSTRETCHXN 0x00008000
|
---|
800 | #define DDFXCAPS_BLTSTRETCHY 0x00010000
|
---|
801 | #define DDFXCAPS_BLTSTRETCHYN 0x00020000
|
---|
802 | #define DDFXCAPS_OVERLAYARITHSTRETCHY 0x00040000
|
---|
803 | #define DDFXCAPS_OVERLAYARITHSTRETCHYN 0x00000008
|
---|
804 | #define DDFXCAPS_OVERLAYSHRINKX 0x00080000
|
---|
805 | #define DDFXCAPS_OVERLAYSHRINKXN 0x00100000
|
---|
806 | #define DDFXCAPS_OVERLAYSHRINKY 0x00200000
|
---|
807 | #define DDFXCAPS_OVERLAYSHRINKYN 0x00400000
|
---|
808 | #define DDFXCAPS_OVERLAYSTRETCHX 0x00800000
|
---|
809 | #define DDFXCAPS_OVERLAYSTRETCHXN 0x01000000
|
---|
810 | #define DDFXCAPS_OVERLAYSTRETCHY 0x02000000
|
---|
811 | #define DDFXCAPS_OVERLAYSTRETCHYN 0x04000000
|
---|
812 | #define DDFXCAPS_OVERLAYMIRRORLEFTRIGHT 0x08000000
|
---|
813 | #define DDFXCAPS_OVERLAYMIRRORUPDOWN 0x10000000
|
---|
814 |
|
---|
815 | #define DDFXCAPS_OVERLAYFILTER DDFXCAPS_OVERLAYARITHSTRETCHY
|
---|
816 |
|
---|
817 | /* DDCAPS.dwFXAlphaCaps */
|
---|
818 | #define DDFXALPHACAPS_BLTALPHAEDGEBLEND 0x00000001
|
---|
819 | #define DDFXALPHACAPS_BLTALPHAPIXELS 0x00000002
|
---|
820 | #define DDFXALPHACAPS_BLTALPHAPIXELSNEG 0x00000004
|
---|
821 | #define DDFXALPHACAPS_BLTALPHASURFACES 0x00000008
|
---|
822 | #define DDFXALPHACAPS_BLTALPHASURFACESNEG 0x00000010
|
---|
823 | #define DDFXALPHACAPS_OVERLAYALPHAEDGEBLEND 0x00000020
|
---|
824 | #define DDFXALPHACAPS_OVERLAYALPHAPIXELS 0x00000040
|
---|
825 | #define DDFXALPHACAPS_OVERLAYALPHAPIXELSNEG 0x00000080
|
---|
826 | #define DDFXALPHACAPS_OVERLAYALPHASURFACES 0x00000100
|
---|
827 | #define DDFXALPHACAPS_OVERLAYALPHASURFACESNEG 0x00000200
|
---|
828 |
|
---|
829 | /* DDCAPS.dwPalCaps */
|
---|
830 | #define DDPCAPS_4BIT 0x00000001
|
---|
831 | #define DDPCAPS_8BITENTRIES 0x00000002
|
---|
832 | #define DDPCAPS_8BIT 0x00000004
|
---|
833 | #define DDPCAPS_INITIALIZE 0x00000008
|
---|
834 | #define DDPCAPS_PRIMARYSURFACE 0x00000010
|
---|
835 | #define DDPCAPS_PRIMARYSURFACELEFT 0x00000020
|
---|
836 | #define DDPCAPS_ALLOW256 0x00000040
|
---|
837 | #define DDPCAPS_VSYNC 0x00000080
|
---|
838 | #define DDPCAPS_1BIT 0x00000100
|
---|
839 | #define DDPCAPS_2BIT 0x00000200
|
---|
840 | #define DDPCAPS_ALPHA 0x00000400
|
---|
841 |
|
---|
842 | /* DDCAPS.dwSVCaps */
|
---|
843 | /* the first 4 of these are now obsolete */
|
---|
844 | #if DIRECTDRAW_VERSION >= 0x700 /* FIXME: I'm not sure when this switch occurred */
|
---|
845 | #define DDSVCAPS_RESERVED1 0x00000001
|
---|
846 | #define DDSVCAPS_RESERVED2 0x00000002
|
---|
847 | #define DDSVCAPS_RESERVED3 0x00000004
|
---|
848 | #define DDSVCAPS_RESERVED4 0x00000008
|
---|
849 | #else
|
---|
850 | #define DDSVCAPS_ENIGMA 0x00000001
|
---|
851 | #define DDSVCAPS_FLICKER 0x00000002
|
---|
852 | #define DDSVCAPS_REDBLUE 0x00000004
|
---|
853 | #define DDSVCAPS_SPLIT 0x00000008
|
---|
854 | #endif
|
---|
855 | #define DDSVCAPS_STEREOSEQUENTIAL 0x00000010
|
---|
856 |
|
---|
857 | /* BitDepths */
|
---|
858 | #define DDBD_1 0x00004000
|
---|
859 | #define DDBD_2 0x00002000
|
---|
860 | #define DDBD_4 0x00001000
|
---|
861 | #define DDBD_8 0x00000800
|
---|
862 | #define DDBD_16 0x00000400
|
---|
863 | #define DDBD_24 0x00000200
|
---|
864 | #define DDBD_32 0x00000100
|
---|
865 |
|
---|
866 | /* DDOVERLAYFX.dwDDFX */
|
---|
867 | #define DDOVERFX_ARITHSTRETCHY 0x00000001
|
---|
868 | #define DDOVERFX_MIRRORLEFTRIGHT 0x00000002
|
---|
869 | #define DDOVERFX_MIRRORUPDOWN 0x00000004
|
---|
870 |
|
---|
871 | /* UpdateOverlay flags */
|
---|
872 | #define DDOVER_ALPHADEST 0x00000001
|
---|
873 | #define DDOVER_ALPHADESTCONSTOVERRIDE 0x00000002
|
---|
874 | #define DDOVER_ALPHADESTNEG 0x00000004
|
---|
875 | #define DDOVER_ALPHADESTSURFACEOVERRIDE 0x00000008
|
---|
876 | #define DDOVER_ALPHAEDGEBLEND 0x00000010
|
---|
877 | #define DDOVER_ALPHASRC 0x00000020
|
---|
878 | #define DDOVER_ALPHASRCCONSTOVERRIDE 0x00000040
|
---|
879 | #define DDOVER_ALPHASRCNEG 0x00000080
|
---|
880 | #define DDOVER_ALPHASRCSURFACEOVERRIDE 0x00000100
|
---|
881 | #define DDOVER_HIDE 0x00000200
|
---|
882 | #define DDOVER_KEYDEST 0x00000400
|
---|
883 | #define DDOVER_KEYDESTOVERRIDE 0x00000800
|
---|
884 | #define DDOVER_KEYSRC 0x00001000
|
---|
885 | #define DDOVER_KEYSRCOVERRIDE 0x00002000
|
---|
886 | #define DDOVER_SHOW 0x00004000
|
---|
887 | #define DDOVER_ADDDIRTYRECT 0x00008000
|
---|
888 | #define DDOVER_REFRESHDIRTYRECTS 0x00010000
|
---|
889 | #define DDOVER_REFRESHALL 0x00020000
|
---|
890 | #define DDOVER_DDFX 0x00080000
|
---|
891 | #define DDOVER_AUTOFLIP 0x00100000
|
---|
892 | #define DDOVER_BOB 0x00200000
|
---|
893 | #define DDOVER_OVERRIDEBOBWEAVE 0x00400000
|
---|
894 | #define DDOVER_INTERLEAVED 0x00800000
|
---|
895 |
|
---|
896 | /* DDCOLORKEY.dwFlags */
|
---|
897 | #define DDPF_ALPHAPIXELS 0x00000001
|
---|
898 | #define DDPF_ALPHA 0x00000002
|
---|
899 | #define DDPF_FOURCC 0x00000004
|
---|
900 | #define DDPF_PALETTEINDEXED4 0x00000008
|
---|
901 | #define DDPF_PALETTEINDEXEDTO8 0x00000010
|
---|
902 | #define DDPF_PALETTEINDEXED8 0x00000020
|
---|
903 | #define DDPF_RGB 0x00000040
|
---|
904 | #define DDPF_COMPRESSED 0x00000080
|
---|
905 | #define DDPF_RGBTOYUV 0x00000100
|
---|
906 | #define DDPF_YUV 0x00000200
|
---|
907 | #define DDPF_ZBUFFER 0x00000400
|
---|
908 | #define DDPF_PALETTEINDEXED1 0x00000800
|
---|
909 | #define DDPF_PALETTEINDEXED2 0x00001000
|
---|
910 | #define DDPF_ZPIXELS 0x00002000
|
---|
911 | #define DDPF_STENCILBUFFER 0x00004000
|
---|
912 | #define DDPF_ALPHAPREMULT 0x00008000
|
---|
913 | #define DDPF_LUMINANCE 0x00020000
|
---|
914 | #define DDPF_BUMPLUMINANCE 0x00040000
|
---|
915 | #define DDPF_BUMPDUDV 0x00080000
|
---|
916 |
|
---|
917 | /* SetCooperativeLevel dwFlags */
|
---|
918 | #define DDSCL_FULLSCREEN 0x00000001
|
---|
919 | #define DDSCL_ALLOWREBOOT 0x00000002
|
---|
920 | #define DDSCL_NOWINDOWCHANGES 0x00000004
|
---|
921 | #define DDSCL_NORMAL 0x00000008
|
---|
922 | #define DDSCL_EXCLUSIVE 0x00000010
|
---|
923 | #define DDSCL_ALLOWMODEX 0x00000040
|
---|
924 | #define DDSCL_SETFOCUSWINDOW 0x00000080
|
---|
925 | #define DDSCL_SETDEVICEWINDOW 0x00000100
|
---|
926 | #define DDSCL_CREATEDEVICEWINDOW 0x00000200
|
---|
927 | #define DDSCL_MULTITHREADED 0x00000400
|
---|
928 | #define DDSCL_FPUSETUP 0x00000800
|
---|
929 | #define DDSCL_FPUPRESERVE 0x00001000
|
---|
930 |
|
---|
931 |
|
---|
932 | /* DDSURFACEDESC.dwFlags */
|
---|
933 | #define DDSD_CAPS 0x00000001
|
---|
934 | #define DDSD_HEIGHT 0x00000002
|
---|
935 | #define DDSD_WIDTH 0x00000004
|
---|
936 | #define DDSD_PITCH 0x00000008
|
---|
937 | #define DDSD_BACKBUFFERCOUNT 0x00000020
|
---|
938 | #define DDSD_ZBUFFERBITDEPTH 0x00000040
|
---|
939 | #define DDSD_ALPHABITDEPTH 0x00000080
|
---|
940 | #define DDSD_LPSURFACE 0x00000800
|
---|
941 | #define DDSD_PIXELFORMAT 0x00001000
|
---|
942 | #define DDSD_CKDESTOVERLAY 0x00002000
|
---|
943 | #define DDSD_CKDESTBLT 0x00004000
|
---|
944 | #define DDSD_CKSRCOVERLAY 0x00008000
|
---|
945 | #define DDSD_CKSRCBLT 0x00010000
|
---|
946 | #define DDSD_MIPMAPCOUNT 0x00020000
|
---|
947 | #define DDSD_REFRESHRATE 0x00040000
|
---|
948 | #define DDSD_LINEARSIZE 0x00080000
|
---|
949 | #define DDSD_TEXTURESTAGE 0x00100000
|
---|
950 | #define DDSD_FVF 0x00200000
|
---|
951 | #define DDSD_SRCVBHANDLE 0x00400000
|
---|
952 | #define DDSD_ALL 0x007ff9ee
|
---|
953 |
|
---|
954 | /* EnumSurfaces flags */
|
---|
955 | #define DDENUMSURFACES_ALL 0x00000001
|
---|
956 | #define DDENUMSURFACES_MATCH 0x00000002
|
---|
957 | #define DDENUMSURFACES_NOMATCH 0x00000004
|
---|
958 | #define DDENUMSURFACES_CANBECREATED 0x00000008
|
---|
959 | #define DDENUMSURFACES_DOESEXIST 0x00000010
|
---|
960 |
|
---|
961 | /* SetDisplayMode flags */
|
---|
962 | #define DDSDM_STANDARDVGAMODE 0x00000001
|
---|
963 |
|
---|
964 | /* EnumDisplayModes flags */
|
---|
965 | #define DDEDM_REFRESHRATES 0x00000001
|
---|
966 | #define DDEDM_STANDARDVGAMODES 0x00000002
|
---|
967 |
|
---|
968 | /* WaitForVerticalDisplay flags */
|
---|
969 |
|
---|
970 | #define DDWAITVB_BLOCKBEGIN 0x00000001
|
---|
971 | #define DDWAITVB_BLOCKBEGINEVENT 0x00000002
|
---|
972 | #define DDWAITVB_BLOCKEND 0x00000004
|
---|
973 |
|
---|
974 | typedef struct _DDSURFACEDESC
|
---|
975 | {
|
---|
976 | DWORD dwSize; /* 0: size of the DDSURFACEDESC structure*/
|
---|
977 | DWORD dwFlags; /* 4: determines what fields are valid*/
|
---|
978 | DWORD dwHeight; /* 8: height of surface to be created*/
|
---|
979 | DWORD dwWidth; /* C: width of input surface*/
|
---|
980 | union {
|
---|
981 | LONG lPitch; /* 10: distance to start of next line (return value only)*/
|
---|
982 | DWORD dwLinearSize;
|
---|
983 | } DUMMYUNIONNAME1;
|
---|
984 | DWORD dwBackBufferCount;/* 14: number of back buffers requested*/
|
---|
985 | union {
|
---|
986 | DWORD dwMipMapCount;/* 18:number of mip-map levels requested*/
|
---|
987 | DWORD dwZBufferBitDepth;/*18: depth of Z buffer requested*/
|
---|
988 | DWORD dwRefreshRate;/* 18:refresh rate (used when display mode is described)*/
|
---|
989 | } DUMMYUNIONNAME2;
|
---|
990 | DWORD dwAlphaBitDepth;/* 1C:depth of alpha buffer requested*/
|
---|
991 | DWORD dwReserved; /* 20:reserved*/
|
---|
992 | LPVOID lpSurface; /* 24:pointer to the associated surface memory*/
|
---|
993 | DDCOLORKEY ddckCKDestOverlay;/* 28: CK for dest overlay use*/
|
---|
994 | DDCOLORKEY ddckCKDestBlt; /* 30: CK for destination blt use*/
|
---|
995 | DDCOLORKEY ddckCKSrcOverlay;/* 38: CK for source overlay use*/
|
---|
996 | DDCOLORKEY ddckCKSrcBlt; /* 40: CK for source blt use*/
|
---|
997 | DDPIXELFORMAT ddpfPixelFormat;/* 48: pixel format description of the surface*/
|
---|
998 | DDSCAPS ddsCaps; /* 68: direct draw surface caps */
|
---|
999 | } DDSURFACEDESC,*LPDDSURFACEDESC;
|
---|
1000 |
|
---|
1001 | typedef struct _DDSURFACEDESC2
|
---|
1002 | {
|
---|
1003 | DWORD dwSize; /* 0: size of the DDSURFACEDESC2 structure*/
|
---|
1004 | DWORD dwFlags; /* 4: determines what fields are valid*/
|
---|
1005 | DWORD dwHeight; /* 8: height of surface to be created*/
|
---|
1006 | DWORD dwWidth; /* C: width of input surface*/
|
---|
1007 | union {
|
---|
1008 | LONG lPitch; /*10: distance to start of next line (return value only)*/
|
---|
1009 | DWORD dwLinearSize; /*10: formless late-allocated optimized surface size */
|
---|
1010 | } DUMMYUNIONNAME1;
|
---|
1011 | DWORD dwBackBufferCount;/* 14: number of back buffers requested*/
|
---|
1012 | union {
|
---|
1013 | DWORD dwMipMapCount;/* 18:number of mip-map levels requested*/
|
---|
1014 | DWORD dwRefreshRate;/* 18:refresh rate (used when display mode is described)*/
|
---|
1015 | DWORD dwSrcVBHandle;/* 18:source used in VB::Optimize */
|
---|
1016 | } DUMMYUNIONNAME2;
|
---|
1017 | DWORD dwAlphaBitDepth;/* 1C:depth of alpha buffer requested*/
|
---|
1018 | DWORD dwReserved; /* 20:reserved*/
|
---|
1019 | LPVOID lpSurface; /* 24:pointer to the associated surface memory*/
|
---|
1020 | union {
|
---|
1021 | DDCOLORKEY ddckCKDestOverlay; /* 28: CK for dest overlay use*/
|
---|
1022 | DWORD dwEmptyFaceColor; /* 28: color for empty cubemap faces */
|
---|
1023 | } DUMMYUNIONNAME3;
|
---|
1024 | DDCOLORKEY ddckCKDestBlt; /* 30: CK for destination blt use*/
|
---|
1025 | DDCOLORKEY ddckCKSrcOverlay;/* 38: CK for source overlay use*/
|
---|
1026 | DDCOLORKEY ddckCKSrcBlt; /* 40: CK for source blt use*/
|
---|
1027 |
|
---|
1028 | union {
|
---|
1029 | DDPIXELFORMAT ddpfPixelFormat;/* 48: pixel format description of the surface*/
|
---|
1030 | DWORD dwFVF; /* 48: vertex format description of vertex buffers */
|
---|
1031 | } DUMMYUNIONNAME4;
|
---|
1032 | DDSCAPS2 ddsCaps; /* 68: DDraw surface caps */
|
---|
1033 | DWORD dwTextureStage; /* 78: stage in multitexture cascade */
|
---|
1034 | } DDSURFACEDESC2,*LPDDSURFACEDESC2;
|
---|
1035 |
|
---|
1036 | /* DDCOLORCONTROL.dwFlags */
|
---|
1037 | #define DDCOLOR_BRIGHTNESS 0x00000001
|
---|
1038 | #define DDCOLOR_CONTRAST 0x00000002
|
---|
1039 | #define DDCOLOR_HUE 0x00000004
|
---|
1040 | #define DDCOLOR_SATURATION 0x00000008
|
---|
1041 | #define DDCOLOR_SHARPNESS 0x00000010
|
---|
1042 | #define DDCOLOR_GAMMA 0x00000020
|
---|
1043 | #define DDCOLOR_COLORENABLE 0x00000040
|
---|
1044 |
|
---|
1045 | typedef struct {
|
---|
1046 | DWORD dwSize;
|
---|
1047 | DWORD dwFlags;
|
---|
1048 | LONG lBrightness;
|
---|
1049 | LONG lContrast;
|
---|
1050 | LONG lHue;
|
---|
1051 | LONG lSaturation;
|
---|
1052 | LONG lSharpness;
|
---|
1053 | LONG lGamma;
|
---|
1054 | LONG lColorEnable;
|
---|
1055 | DWORD dwReserved1;
|
---|
1056 | } DDCOLORCONTROL,*LPDDCOLORCONTROL;
|
---|
1057 |
|
---|
1058 | typedef struct {
|
---|
1059 | WORD red[256];
|
---|
1060 | WORD green[256];
|
---|
1061 | WORD blue[256];
|
---|
1062 | } DDGAMMARAMP,*LPDDGAMMARAMP;
|
---|
1063 |
|
---|
1064 | typedef BOOL (CALLBACK *LPDDENUMCALLBACKA)(GUID *, LPSTR, LPSTR, LPVOID);
|
---|
1065 | typedef BOOL (CALLBACK *LPDDENUMCALLBACKW)(GUID *, LPWSTR, LPWSTR, LPVOID);
|
---|
1066 | DECL_WINELIB_TYPE_AW(LPDDENUMCALLBACK)
|
---|
1067 |
|
---|
1068 | typedef HRESULT (CALLBACK *LPDDENUMMODESCALLBACK)(LPDDSURFACEDESC, LPVOID);
|
---|
1069 | typedef HRESULT (CALLBACK *LPDDENUMMODESCALLBACK2)(LPDDSURFACEDESC2, LPVOID);
|
---|
1070 | typedef HRESULT (CALLBACK *LPDDENUMSURFACESCALLBACK)(LPDIRECTDRAWSURFACE, LPDDSURFACEDESC, LPVOID);
|
---|
1071 | typedef HRESULT (CALLBACK *LPDDENUMSURFACESCALLBACK2)(LPDIRECTDRAWSURFACE4, LPDDSURFACEDESC2, LPVOID);
|
---|
1072 | typedef HRESULT (CALLBACK *LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID);
|
---|
1073 |
|
---|
1074 | typedef BOOL (CALLBACK *LPDDENUMCALLBACKEXA)(GUID *, LPSTR, LPSTR, LPVOID, HMONITOR);
|
---|
1075 | typedef BOOL (CALLBACK *LPDDENUMCALLBACKEXW)(GUID *, LPWSTR, LPWSTR, LPVOID, HMONITOR);
|
---|
1076 | DECL_WINELIB_TYPE_AW(LPDDENUMCALLBACKEX)
|
---|
1077 |
|
---|
1078 | HRESULT WINAPI DirectDrawEnumerateA(LPDDENUMCALLBACKA,LPVOID);
|
---|
1079 | HRESULT WINAPI DirectDrawEnumerateW(LPDDENUMCALLBACKW,LPVOID);
|
---|
1080 | #define DirectDrawEnumerate WINELIB_NAME_AW(DirectDrawEnumerate)
|
---|
1081 |
|
---|
1082 | HRESULT WINAPI DirectDrawEnumerateExA( LPDDENUMCALLBACKEXA lpCallback, LPVOID lpContext, DWORD dwFlags);
|
---|
1083 | HRESULT WINAPI DirectDrawEnumerateExW( LPDDENUMCALLBACKEXW lpCallback, LPVOID lpContext, DWORD dwFlags);
|
---|
1084 | #define DirectDrawEnumerateEx WINELIB_NAME_AW(DirectDrawEnumerateEx)
|
---|
1085 |
|
---|
1086 | typedef HRESULT (WINAPI * LPDIRECTDRAWENUMERATEEXA)( LPDDENUMCALLBACKEXA lpCallback, LPVOID lpContext, DWORD dwFlags);
|
---|
1087 | typedef HRESULT (WINAPI * LPDIRECTDRAWENUMERATEEXW)( LPDDENUMCALLBACKEXW lpCallback, LPVOID lpContext, DWORD dwFlags);
|
---|
1088 | DECL_WINELIB_TYPE_AW(LPDIRECTDRAWENUMERATEEX)
|
---|
1089 |
|
---|
1090 | /* flags for DirectDrawEnumerateEx */
|
---|
1091 | #define DDENUM_ATTACHEDSECONDARYDEVICES 0x00000001
|
---|
1092 | #define DDENUM_DETACHEDSECONDARYDEVICES 0x00000002
|
---|
1093 | #define DDENUM_NONDISPLAYDEVICES 0x00000004
|
---|
1094 |
|
---|
1095 | /* flags for DirectDrawCreate or IDirectDraw::Initialize */
|
---|
1096 | #define DDCREATE_HARDWAREONLY 1L
|
---|
1097 | #define DDCREATE_EMULATIONONLY 2L
|
---|
1098 |
|
---|
1099 | typedef struct _DDBLTFX
|
---|
1100 | {
|
---|
1101 | DWORD dwSize; /* size of structure */
|
---|
1102 | DWORD dwDDFX; /* FX operations */
|
---|
1103 | DWORD dwROP; /* Win32 raster operations */
|
---|
1104 | DWORD dwDDROP; /* Raster operations new for DirectDraw */
|
---|
1105 | DWORD dwRotationAngle; /* Rotation angle for blt */
|
---|
1106 | DWORD dwZBufferOpCode; /* ZBuffer compares */
|
---|
1107 | DWORD dwZBufferLow; /* Low limit of Z buffer */
|
---|
1108 | DWORD dwZBufferHigh; /* High limit of Z buffer */
|
---|
1109 | DWORD dwZBufferBaseDest; /* Destination base value */
|
---|
1110 | DWORD dwZDestConstBitDepth; /* Bit depth used to specify Z constant for destination */
|
---|
1111 | union
|
---|
1112 | {
|
---|
1113 | DWORD dwZDestConst; /* Constant to use as Z buffer for dest */
|
---|
1114 | LPDIRECTDRAWSURFACE lpDDSZBufferDest; /* Surface to use as Z buffer for dest */
|
---|
1115 | } DUMMYUNIONNAME1;
|
---|
1116 | DWORD dwZSrcConstBitDepth; /* Bit depth used to specify Z constant for source */
|
---|
1117 | union
|
---|
1118 | {
|
---|
1119 | DWORD dwZSrcConst; /* Constant to use as Z buffer for src */
|
---|
1120 | LPDIRECTDRAWSURFACE lpDDSZBufferSrc; /* Surface to use as Z buffer for src */
|
---|
1121 | } DUMMYUNIONNAME2;
|
---|
1122 | DWORD dwAlphaEdgeBlendBitDepth; /* Bit depth used to specify constant for alpha edge blend */
|
---|
1123 | DWORD dwAlphaEdgeBlend; /* Alpha for edge blending */
|
---|
1124 | DWORD dwReserved;
|
---|
1125 | DWORD dwAlphaDestConstBitDepth; /* Bit depth used to specify alpha constant for destination */
|
---|
1126 | union
|
---|
1127 | {
|
---|
1128 | DWORD dwAlphaDestConst; /* Constant to use as Alpha Channel */
|
---|
1129 | LPDIRECTDRAWSURFACE lpDDSAlphaDest; /* Surface to use as Alpha Channel */
|
---|
1130 | } DUMMYUNIONNAME3;
|
---|
1131 | DWORD dwAlphaSrcConstBitDepth; /* Bit depth used to specify alpha constant for source */
|
---|
1132 | union
|
---|
1133 | {
|
---|
1134 | DWORD dwAlphaSrcConst; /* Constant to use as Alpha Channel */
|
---|
1135 | LPDIRECTDRAWSURFACE lpDDSAlphaSrc; /* Surface to use as Alpha Channel */
|
---|
1136 | } DUMMYUNIONNAME4;
|
---|
1137 | union
|
---|
1138 | {
|
---|
1139 | DWORD dwFillColor; /* color in RGB or Palettized */
|
---|
1140 | DWORD dwFillDepth; /* depth value for z-buffer */
|
---|
1141 | DWORD dwFillPixel; /* pixel val for RGBA or RGBZ */
|
---|
1142 | LPDIRECTDRAWSURFACE lpDDSPattern; /* Surface to use as pattern */
|
---|
1143 | } DUMMYUNIONNAME5;
|
---|
1144 | DDCOLORKEY ddckDestColorkey; /* DestColorkey override */
|
---|
1145 | DDCOLORKEY ddckSrcColorkey; /* SrcColorkey override */
|
---|
1146 | } DDBLTFX,*LPDDBLTFX;
|
---|
1147 |
|
---|
1148 | /* dwDDFX */
|
---|
1149 | /* arithmetic stretching along y axis */
|
---|
1150 | #define DDBLTFX_ARITHSTRETCHY 0x00000001
|
---|
1151 | /* mirror on y axis */
|
---|
1152 | #define DDBLTFX_MIRRORLEFTRIGHT 0x00000002
|
---|
1153 | /* mirror on x axis */
|
---|
1154 | #define DDBLTFX_MIRRORUPDOWN 0x00000004
|
---|
1155 | /* do not tear */
|
---|
1156 | #define DDBLTFX_NOTEARING 0x00000008
|
---|
1157 | /* 180 degrees clockwise rotation */
|
---|
1158 | #define DDBLTFX_ROTATE180 0x00000010
|
---|
1159 | /* 270 degrees clockwise rotation */
|
---|
1160 | #define DDBLTFX_ROTATE270 0x00000020
|
---|
1161 | /* 90 degrees clockwise rotation */
|
---|
1162 | #define DDBLTFX_ROTATE90 0x00000040
|
---|
1163 | /* dwZBufferLow and dwZBufferHigh specify limits to the copied Z values */
|
---|
1164 | #define DDBLTFX_ZBUFFERRANGE 0x00000080
|
---|
1165 | /* add dwZBufferBaseDest to every source z value before compare */
|
---|
1166 | #define DDBLTFX_ZBUFFERBASEDEST 0x00000100
|
---|
1167 |
|
---|
1168 | typedef struct _DDOVERLAYFX
|
---|
1169 | {
|
---|
1170 | DWORD dwSize; /* size of structure */
|
---|
1171 | DWORD dwAlphaEdgeBlendBitDepth; /* Bit depth used to specify constant for alpha edge blend */
|
---|
1172 | DWORD dwAlphaEdgeBlend; /* Constant to use as alpha for edge blend */
|
---|
1173 | DWORD dwReserved;
|
---|
1174 | DWORD dwAlphaDestConstBitDepth; /* Bit depth used to specify alpha constant for destination */
|
---|
1175 | union
|
---|
1176 | {
|
---|
1177 | DWORD dwAlphaDestConst; /* Constant to use as alpha channel for dest */
|
---|
1178 | LPDIRECTDRAWSURFACE lpDDSAlphaDest; /* Surface to use as alpha channel for dest */
|
---|
1179 | } DUMMYUNIONNAME1;
|
---|
1180 | DWORD dwAlphaSrcConstBitDepth; /* Bit depth used to specify alpha constant for source */
|
---|
1181 | union
|
---|
1182 | {
|
---|
1183 | DWORD dwAlphaSrcConst; /* Constant to use as alpha channel for src */
|
---|
1184 | LPDIRECTDRAWSURFACE lpDDSAlphaSrc; /* Surface to use as alpha channel for src */
|
---|
1185 | } DUMMYUNIONNAME2;
|
---|
1186 | DDCOLORKEY dckDestColorkey; /* DestColorkey override */
|
---|
1187 | DDCOLORKEY dckSrcColorkey; /* DestColorkey override */
|
---|
1188 | DWORD dwDDFX; /* Overlay FX */
|
---|
1189 | DWORD dwFlags; /* flags */
|
---|
1190 | } DDOVERLAYFX,*LPDDOVERLAYFX;
|
---|
1191 |
|
---|
1192 | typedef struct _DDBLTBATCH
|
---|
1193 | {
|
---|
1194 | LPRECT lprDest;
|
---|
1195 | LPDIRECTDRAWSURFACE lpDDSSrc;
|
---|
1196 | LPRECT lprSrc;
|
---|
1197 | DWORD dwFlags;
|
---|
1198 | LPDDBLTFX lpDDBltFx;
|
---|
1199 | } DDBLTBATCH,*LPDDBLTBATCH;
|
---|
1200 |
|
---|
1201 | #define MAX_DDDEVICEID_STRING 512
|
---|
1202 |
|
---|
1203 | #define DDGDI_GETHOSTIDENTIFIER 1
|
---|
1204 |
|
---|
1205 | typedef struct tagDDDEVICEIDENTIFIER {
|
---|
1206 | char szDriver[MAX_DDDEVICEID_STRING];
|
---|
1207 | char szDescription[MAX_DDDEVICEID_STRING];
|
---|
1208 | LARGE_INTEGER liDriverVersion;
|
---|
1209 | DWORD dwVendorId;
|
---|
1210 | DWORD dwDeviceId;
|
---|
1211 | DWORD dwSubSysId;
|
---|
1212 | DWORD dwRevision;
|
---|
1213 | GUID guidDeviceIdentifier;
|
---|
1214 | } DDDEVICEIDENTIFIER, * LPDDDEVICEIDENTIFIER;
|
---|
1215 |
|
---|
1216 | typedef struct tagDDDEVICEIDENTIFIER2 {
|
---|
1217 | char szDriver[MAX_DDDEVICEID_STRING]; /* user readable driver name */
|
---|
1218 | char szDescription[MAX_DDDEVICEID_STRING]; /* user readable description */
|
---|
1219 | LARGE_INTEGER liDriverVersion; /* driver version */
|
---|
1220 | DWORD dwVendorId; /* vendor ID, zero if unknown */
|
---|
1221 | DWORD dwDeviceId; /* chipset ID, zero if unknown */
|
---|
1222 | DWORD dwSubSysId; /* board ID, zero if unknown */
|
---|
1223 | DWORD dwRevision; /* chipset version, zero if unknown */
|
---|
1224 | GUID guidDeviceIdentifier; /* unique ID for this driver/chipset combination */
|
---|
1225 | DWORD dwWHQLLevel; /* Windows Hardware Quality Lab certification level */
|
---|
1226 | } DDDEVICEIDENTIFIER2, * LPDDDEVICEIDENTIFIER2;
|
---|
1227 |
|
---|
1228 | /*****************************************************************************
|
---|
1229 | * IDirectDrawPalette interface
|
---|
1230 | */
|
---|
1231 | #define INTERFACE IDirectDrawPalette
|
---|
1232 | DECLARE_INTERFACE_(IDirectDrawPalette,IUnknown)
|
---|
1233 | {
|
---|
1234 | /*** IUnknown methods ***/
|
---|
1235 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1236 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1237 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1238 | /*** IDirectDrawPalette methods ***/
|
---|
1239 | STDMETHOD(GetCaps)(THIS_ LPDWORD lpdwCaps) PURE;
|
---|
1240 | STDMETHOD(GetEntries)(THIS_ DWORD dwFlags, DWORD dwBase, DWORD dwNumEntries, LPPALETTEENTRY lpEntries) PURE;
|
---|
1241 | STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW lpDD, DWORD dwFlags, LPPALETTEENTRY lpDDColorTable) PURE;
|
---|
1242 | STDMETHOD(SetEntries)(THIS_ DWORD dwFlags, DWORD dwStartingEntry, DWORD dwCount, LPPALETTEENTRY lpEntries) PURE;
|
---|
1243 | };
|
---|
1244 | #undef INTERFACE
|
---|
1245 |
|
---|
1246 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1247 | /*** IUnknown methods ***/
|
---|
1248 | #define IDirectDrawPalette_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1249 | #define IDirectDrawPalette_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1250 | #define IDirectDrawPalette_Release(p) (p)->lpVtbl->Release(p)
|
---|
1251 | /*** IDirectDrawPalette methods ***/
|
---|
1252 | #define IDirectDrawPalette_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
|
---|
1253 | #define IDirectDrawPalette_GetEntries(p,a,b,c,d) (p)->lpVtbl->GetEntries(p,a,b,c,d)
|
---|
1254 | #define IDirectDrawPalette_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
---|
1255 | #define IDirectDrawPalette_SetEntries(p,a,b,c,d) (p)->lpVtbl->SetEntries(p,a,b,c,d)
|
---|
1256 | #else
|
---|
1257 | /*** IUnknown methods ***/
|
---|
1258 | #define IDirectDrawPalette_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1259 | #define IDirectDrawPalette_AddRef(p) (p)->AddRef()
|
---|
1260 | #define IDirectDrawPalette_Release(p) (p)->Release()
|
---|
1261 | /*** IDirectDrawPalette methods ***/
|
---|
1262 | #define IDirectDrawPalette_GetCaps(p,a) (p)->GetCaps(a)
|
---|
1263 | #define IDirectDrawPalette_GetEntries(p,a,b,c,d) (p)->GetEntries(a,b,c,d)
|
---|
1264 | #define IDirectDrawPalette_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
---|
1265 | #define IDirectDrawPalette_SetEntries(p,a,b,c,d) (p)->SetEntries(a,b,c,d)
|
---|
1266 | #endif
|
---|
1267 |
|
---|
1268 |
|
---|
1269 | /*****************************************************************************
|
---|
1270 | * IDirectDrawClipper interface
|
---|
1271 | */
|
---|
1272 | #define INTERFACE IDirectDrawClipper
|
---|
1273 | DECLARE_INTERFACE_(IDirectDrawClipper,IUnknown)
|
---|
1274 | {
|
---|
1275 | /*** IUnknown methods ***/
|
---|
1276 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1277 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1278 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1279 | /*** IDirectDrawClipper methods ***/
|
---|
1280 | STDMETHOD(GetClipList)(THIS_ LPRECT lpRect, LPRGNDATA lpClipList, LPDWORD lpdwSize) PURE;
|
---|
1281 | STDMETHOD(GetHWnd)(THIS_ HWND *lphWnd) PURE;
|
---|
1282 | STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW lpDD, DWORD dwFlags) PURE;
|
---|
1283 | STDMETHOD(IsClipListChanged)(THIS_ BOOL *lpbChanged) PURE;
|
---|
1284 | STDMETHOD(SetClipList)(THIS_ LPRGNDATA lpClipList, DWORD dwFlags) PURE;
|
---|
1285 | STDMETHOD(SetHWnd)(THIS_ DWORD dwFlags, HWND hWnd) PURE;
|
---|
1286 | };
|
---|
1287 | #undef INTERFACE
|
---|
1288 |
|
---|
1289 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1290 | /*** IUnknown methods ***/
|
---|
1291 | #define IDirectDrawClipper_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1292 | #define IDirectDrawClipper_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1293 | #define IDirectDrawClipper_Release(p) (p)->lpVtbl->Release(p)
|
---|
1294 | /*** IDirectDrawClipper methods ***/
|
---|
1295 | #define IDirectDrawClipper_GetClipList(p,a,b,c) (p)->lpVtbl->GetClipList(p,a,b,c)
|
---|
1296 | #define IDirectDrawClipper_GetHWnd(p,a) (p)->lpVtbl->GetHWnd(p,a)
|
---|
1297 | #define IDirectDrawClipper_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
1298 | #define IDirectDrawClipper_IsClipListChanged(p,a) (p)->lpVtbl->IsClipListChanged(p,a)
|
---|
1299 | #define IDirectDrawClipper_SetClipList(p,a,b) (p)->lpVtbl->SetClipList(p,a,b)
|
---|
1300 | #define IDirectDrawClipper_SetHWnd(p,a,b) (p)->lpVtbl->SetHWnd(p,a,b)
|
---|
1301 | #else
|
---|
1302 | /*** IUnknown methods ***/
|
---|
1303 | #define IDirectDrawClipper_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1304 | #define IDirectDrawClipper_AddRef(p) (p)->AddRef()
|
---|
1305 | #define IDirectDrawClipper_Release(p) (p)->Release()
|
---|
1306 | /*** IDirectDrawClipper methods ***/
|
---|
1307 | #define IDirectDrawClipper_GetClipList(p,a,b,c) (p)->GetClipList(a,b,c)
|
---|
1308 | #define IDirectDrawClipper_GetHWnd(p,a) (p)->GetHWnd(a)
|
---|
1309 | #define IDirectDrawClipper_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
1310 | #define IDirectDrawClipper_IsClipListChanged(p,a) (p)->IsClipListChanged(a)
|
---|
1311 | #define IDirectDrawClipper_SetClipList(p,a,b) (p)->SetClipList(a,b)
|
---|
1312 | #define IDirectDrawClipper_SetHWnd(p,a,b) (p)->SetHWnd(a,b)
|
---|
1313 | #endif
|
---|
1314 |
|
---|
1315 |
|
---|
1316 | /*****************************************************************************
|
---|
1317 | * IDirectDraw interface
|
---|
1318 | */
|
---|
1319 | #define INTERFACE IDirectDraw
|
---|
1320 | DECLARE_INTERFACE_(IDirectDraw,IUnknown)
|
---|
1321 | {
|
---|
1322 | /*** IUnknown methods ***/
|
---|
1323 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1324 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1325 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1326 | /*** IDirectDraw methods ***/
|
---|
1327 | STDMETHOD(Compact)(THIS) PURE;
|
---|
1328 | STDMETHOD(CreateClipper)(THIS_ DWORD dwFlags, LPDIRECTDRAWCLIPPER *lplpDDClipper, IUnknown *pUnkOuter) PURE;
|
---|
1329 | STDMETHOD(CreatePalette)(THIS_ DWORD dwFlags, LPPALETTEENTRY lpColorTable, LPDIRECTDRAWPALETTE *lplpDDPalette, IUnknown *pUnkOuter) PURE;
|
---|
1330 | STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc, LPDIRECTDRAWSURFACE *lplpDDSurface, IUnknown *pUnkOuter) PURE;
|
---|
1331 | STDMETHOD(DuplicateSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDSurface, LPDIRECTDRAWSURFACE *lplpDupDDSurface) PURE;
|
---|
1332 | STDMETHOD(EnumDisplayModes)(THIS_ DWORD dwFlags, LPDDSURFACEDESC lpDDSurfaceDesc, LPVOID lpContext, LPDDENUMMODESCALLBACK lpEnumModesCallback) PURE;
|
---|
1333 | STDMETHOD(EnumSurfaces)(THIS_ DWORD dwFlags, LPDDSURFACEDESC lpDDSD, LPVOID lpContext, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback) PURE;
|
---|
1334 | STDMETHOD(FlipToGDISurface)(THIS) PURE;
|
---|
1335 | STDMETHOD(GetCaps)(THIS_ LPDDCAPS lpDDDriverCaps, LPDDCAPS lpDDHELCaps) PURE;
|
---|
1336 | STDMETHOD(GetDisplayMode)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc) PURE;
|
---|
1337 | STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD lpNumCodes, LPDWORD lpCodes) PURE;
|
---|
1338 | STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE *lplpGDIDDSurface) PURE;
|
---|
1339 | STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
|
---|
1340 | STDMETHOD(GetScanLine)(THIS_ LPDWORD lpdwScanLine) PURE;
|
---|
1341 | STDMETHOD(GetVerticalBlankStatus)(THIS_ BOOL *lpbIsInVB) PURE;
|
---|
1342 | STDMETHOD(Initialize)(THIS_ GUID *lpGUID) PURE;
|
---|
1343 | STDMETHOD(RestoreDisplayMode)(THIS) PURE;
|
---|
1344 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hWnd, DWORD dwFlags) PURE;
|
---|
1345 | STDMETHOD(SetDisplayMode)(THIS_ DWORD dwWidth, DWORD dwHeight, DWORD dwBPP) PURE;
|
---|
1346 | STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD dwFlags, HANDLE hEvent) PURE;
|
---|
1347 | };
|
---|
1348 | #undef INTERFACE
|
---|
1349 |
|
---|
1350 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1351 | /*** IUnknown methods ***/
|
---|
1352 | #define IDirectDraw_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1353 | #define IDirectDraw_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1354 | #define IDirectDraw_Release(p) (p)->lpVtbl->Release(p)
|
---|
1355 | /*** IDirectDraw methods ***/
|
---|
1356 | #define IDirectDraw_Compact(p) (p)->lpVtbl->Compact(p)
|
---|
1357 | #define IDirectDraw_CreateClipper(p,a,b,c) (p)->lpVtbl->CreateClipper(p,a,b,c)
|
---|
1358 | #define IDirectDraw_CreatePalette(p,a,b,c,d) (p)->lpVtbl->CreatePalette(p,a,b,c,d)
|
---|
1359 | #define IDirectDraw_CreateSurface(p,a,b,c) (p)->lpVtbl->CreateSurface(p,a,b,c)
|
---|
1360 | #define IDirectDraw_DuplicateSurface(p,a,b) (p)->lpVtbl->DuplicateSurface(p,a,b)
|
---|
1361 | #define IDirectDraw_EnumDisplayModes(p,a,b,c,d) (p)->lpVtbl->EnumDisplayModes(p,a,b,c,d)
|
---|
1362 | #define IDirectDraw_EnumSurfaces(p,a,b,c,d) (p)->lpVtbl->EnumSurfaces(p,a,b,c,d)
|
---|
1363 | #define IDirectDraw_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
|
---|
1364 | #define IDirectDraw_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
|
---|
1365 | #define IDirectDraw_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
|
---|
1366 | #define IDirectDraw_GetFourCCCodes(p,a,b) (p)->lpVtbl->GetFourCCCodes(p,a,b)
|
---|
1367 | #define IDirectDraw_GetGDISurface(p,a) (p)->lpVtbl->GetGDISurface(p,a)
|
---|
1368 | #define IDirectDraw_GetMonitorFrequency(p,a) (p)->lpVtbl->GetMonitorFrequency(p,a)
|
---|
1369 | #define IDirectDraw_GetScanLine(p,a) (p)->lpVtbl->GetScanLine(p,a)
|
---|
1370 | #define IDirectDraw_GetVerticalBlankStatus(p,a) (p)->lpVtbl->GetVerticalBlankStatus(p,a)
|
---|
1371 | #define IDirectDraw_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
|
---|
1372 | #define IDirectDraw_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
|
---|
1373 | #define IDirectDraw_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
1374 | #define IDirectDraw_SetDisplayMode(p,a,b,c) (p)->lpVtbl->SetDisplayMode(p,a,b,c)
|
---|
1375 | #define IDirectDraw_WaitForVerticalBlank(p,a,b) (p)->lpVtbl->WaitForVerticalBlank(p,a,b)
|
---|
1376 | #else
|
---|
1377 | /*** IUnknown methods ***/
|
---|
1378 | #define IDirectDraw_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1379 | #define IDirectDraw_AddRef(p) (p)->AddRef()
|
---|
1380 | #define IDirectDraw_Release(p) (p)->Release()
|
---|
1381 | /*** IDirectDraw methods ***/
|
---|
1382 | #define IDirectDraw_Compact(p) (p)->Compact()
|
---|
1383 | #define IDirectDraw_CreateClipper(p,a,b,c) (p)->CreateClipper(a,b,c)
|
---|
1384 | #define IDirectDraw_CreatePalette(p,a,b,c,d) (p)->CreatePalette(a,b,c,d)
|
---|
1385 | #define IDirectDraw_CreateSurface(p,a,b,c) (p)->CreateSurface(a,b,c)
|
---|
1386 | #define IDirectDraw_DuplicateSurface(p,a,b) (p)->DuplicateSurface(a,b)
|
---|
1387 | #define IDirectDraw_EnumDisplayModes(p,a,b,c,d) (p)->EnumDisplayModes(a,b,c,d)
|
---|
1388 | #define IDirectDraw_EnumSurfaces(p,a,b,c,d) (p)->EnumSurfaces(a,b,c,d)
|
---|
1389 | #define IDirectDraw_FlipToGDISurface(p) (p)->FlipToGDISurface()
|
---|
1390 | #define IDirectDraw_GetCaps(p,a,b) (p)->GetCaps(a,b)
|
---|
1391 | #define IDirectDraw_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
|
---|
1392 | #define IDirectDraw_GetFourCCCodes(p,a,b) (p)->GetFourCCCodes(a,b)
|
---|
1393 | #define IDirectDraw_GetGDISurface(p,a) (p)->GetGDISurface(a)
|
---|
1394 | #define IDirectDraw_GetMonitorFrequency(p,a) (p)->GetMonitorFrequency(a)
|
---|
1395 | #define IDirectDraw_GetScanLine(p,a) (p)->GetScanLine(a)
|
---|
1396 | #define IDirectDraw_GetVerticalBlankStatus(p,a) (p)->GetVerticalBlankStatus(a)
|
---|
1397 | #define IDirectDraw_Initialize(p,a) (p)->Initialize(a)
|
---|
1398 | #define IDirectDraw_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
|
---|
1399 | #define IDirectDraw_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
1400 | #define IDirectDraw_SetDisplayMode(p,a,b,c) (p)->SetDisplayMode(a,b,c)
|
---|
1401 | #define IDirectDraw_WaitForVerticalBlank(p,a,b) (p)->WaitForVerticalBlank(a,b)
|
---|
1402 | #endif
|
---|
1403 |
|
---|
1404 |
|
---|
1405 | /* flags for Lock() */
|
---|
1406 | #define DDLOCK_SURFACEMEMORYPTR 0x00000000
|
---|
1407 | #define DDLOCK_WAIT 0x00000001
|
---|
1408 | #define DDLOCK_EVENT 0x00000002
|
---|
1409 | #define DDLOCK_READONLY 0x00000010
|
---|
1410 | #define DDLOCK_WRITEONLY 0x00000020
|
---|
1411 | #define DDLOCK_NOSYSLOCK 0x00000800
|
---|
1412 | #define DDLOCK_NOOVERWRITE 0x00001000
|
---|
1413 | #define DDLOCK_DISCARDCONTENTS 0x00002000
|
---|
1414 |
|
---|
1415 |
|
---|
1416 | /*****************************************************************************
|
---|
1417 | * IDirectDraw2 interface
|
---|
1418 | */
|
---|
1419 | /* Note: IDirectDraw2 cannot derive from IDirectDraw because the number of
|
---|
1420 | * arguments of SetDisplayMode has changed !
|
---|
1421 | */
|
---|
1422 | #define INTERFACE IDirectDraw2
|
---|
1423 | DECLARE_INTERFACE_(IDirectDraw2,IUnknown)
|
---|
1424 | {
|
---|
1425 | /*** IUnknown methods ***/
|
---|
1426 | /*00*/ STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1427 | /*04*/ STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1428 | /*08*/ STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1429 | /*** IDirectDraw2 methods ***/
|
---|
1430 | /*0c*/ STDMETHOD(Compact)(THIS) PURE;
|
---|
1431 | /*10*/ STDMETHOD(CreateClipper)(THIS_ DWORD dwFlags, LPDIRECTDRAWCLIPPER *lplpDDClipper, IUnknown *pUnkOuter) PURE;
|
---|
1432 | /*14*/ STDMETHOD(CreatePalette)(THIS_ DWORD dwFlags, LPPALETTEENTRY lpColorTable, LPDIRECTDRAWPALETTE *lplpDDPalette, IUnknown *pUnkOuter) PURE;
|
---|
1433 | /*18*/ STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc, LPDIRECTDRAWSURFACE *lplpDDSurface, IUnknown *pUnkOuter) PURE;
|
---|
1434 | /*1c*/ STDMETHOD(DuplicateSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDSurface, LPDIRECTDRAWSURFACE *lplpDupDDSurface) PURE;
|
---|
1435 | /*20*/ STDMETHOD(EnumDisplayModes)(THIS_ DWORD dwFlags, LPDDSURFACEDESC lpDDSurfaceDesc, LPVOID lpContext, LPDDENUMMODESCALLBACK lpEnumModesCallback) PURE;
|
---|
1436 | /*24*/ STDMETHOD(EnumSurfaces)(THIS_ DWORD dwFlags, LPDDSURFACEDESC lpDDSD, LPVOID lpContext, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback) PURE;
|
---|
1437 | /*28*/ STDMETHOD(FlipToGDISurface)(THIS) PURE;
|
---|
1438 | /*2c*/ STDMETHOD(GetCaps)(THIS_ LPDDCAPS lpDDDriverCaps, LPDDCAPS lpDDHELCaps) PURE;
|
---|
1439 | /*30*/ STDMETHOD(GetDisplayMode)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc) PURE;
|
---|
1440 | /*34*/ STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD lpNumCodes, LPDWORD lpCodes) PURE;
|
---|
1441 | /*38*/ STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE *lplpGDIDDSurface) PURE;
|
---|
1442 | /*3c*/ STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
|
---|
1443 | /*40*/ STDMETHOD(GetScanLine)(THIS_ LPDWORD lpdwScanLine) PURE;
|
---|
1444 | /*44*/ STDMETHOD(GetVerticalBlankStatus)(THIS_ BOOL *lpbIsInVB) PURE;
|
---|
1445 | /*48*/ STDMETHOD(Initialize)(THIS_ GUID *lpGUID) PURE;
|
---|
1446 | /*4c*/ STDMETHOD(RestoreDisplayMode)(THIS) PURE;
|
---|
1447 | /*50*/ STDMETHOD(SetCooperativeLevel)(THIS_ HWND hWnd, DWORD dwFlags) PURE;
|
---|
1448 | /*54*/ STDMETHOD(SetDisplayMode)(THIS_ DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags) PURE;
|
---|
1449 | /*58*/ STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD dwFlags, HANDLE hEvent) PURE;
|
---|
1450 | /* added in v2 */
|
---|
1451 | /*5c*/ STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS lpDDCaps, LPDWORD lpdwTotal, LPDWORD lpdwFree) PURE;
|
---|
1452 | };
|
---|
1453 | #undef INTERFACE
|
---|
1454 |
|
---|
1455 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1456 | /*** IUnknown methods ***/
|
---|
1457 | #define IDirectDraw2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1458 | #define IDirectDraw2_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1459 | #define IDirectDraw2_Release(p) (p)->lpVtbl->Release(p)
|
---|
1460 | /*** IDirectDraw methods ***/
|
---|
1461 | #define IDirectDraw2_Compact(p) (p)->lpVtbl->Compact(p)
|
---|
1462 | #define IDirectDraw2_CreateClipper(p,a,b,c) (p)->lpVtbl->CreateClipper(p,a,b,c)
|
---|
1463 | #define IDirectDraw2_CreatePalette(p,a,b,c,d) (p)->lpVtbl->CreatePalette(p,a,b,c,d)
|
---|
1464 | #define IDirectDraw2_CreateSurface(p,a,b,c) (p)->lpVtbl->CreateSurface(p,a,b,c)
|
---|
1465 | #define IDirectDraw2_DuplicateSurface(p,a,b) (p)->lpVtbl->DuplicateSurface(p,a,b)
|
---|
1466 | #define IDirectDraw2_EnumDisplayModes(p,a,b,c,d) (p)->lpVtbl->EnumDisplayModes(p,a,b,c,d)
|
---|
1467 | #define IDirectDraw2_EnumSurfaces(p,a,b,c,d) (p)->lpVtbl->EnumSurfaces(p,a,b,c,d)
|
---|
1468 | #define IDirectDraw2_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
|
---|
1469 | #define IDirectDraw2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
|
---|
1470 | #define IDirectDraw2_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
|
---|
1471 | #define IDirectDraw2_GetFourCCCodes(p,a,b) (p)->lpVtbl->GetFourCCCodes(p,a,b)
|
---|
1472 | #define IDirectDraw2_GetGDISurface(p,a) (p)->lpVtbl->GetGDISurface(p,a)
|
---|
1473 | #define IDirectDraw2_GetMonitorFrequency(p,a) (p)->lpVtbl->GetMonitorFrequency(p,a)
|
---|
1474 | #define IDirectDraw2_GetScanLine(p,a) (p)->lpVtbl->GetScanLine(p,a)
|
---|
1475 | #define IDirectDraw2_GetVerticalBlankStatus(p,a) (p)->lpVtbl->GetVerticalBlankStatus(p,a)
|
---|
1476 | #define IDirectDraw2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
|
---|
1477 | #define IDirectDraw2_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
|
---|
1478 | #define IDirectDraw2_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
1479 | #define IDirectDraw2_SetDisplayMode(p,a,b,c,d,e) (p)->lpVtbl->SetDisplayMode(p,a,b,c,d,e)
|
---|
1480 | #define IDirectDraw2_WaitForVerticalBlank(p,a,b) (p)->lpVtbl->WaitForVerticalBlank(p,a,b)
|
---|
1481 | /*** IDirectDraw2 methods ***/
|
---|
1482 | #define IDirectDraw2_GetAvailableVidMem(p,a,b,c) (p)->lpVtbl->GetAvailableVidMem(p,a,b,c)
|
---|
1483 | #else
|
---|
1484 | /*** IUnknown methods ***/
|
---|
1485 | #define IDirectDraw2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1486 | #define IDirectDraw2_AddRef(p) (p)->AddRef()
|
---|
1487 | #define IDirectDraw2_Release(p) (p)->Release()
|
---|
1488 | /*** IDirectDraw methods ***/
|
---|
1489 | #define IDirectDraw2_Compact(p) (p)->Compact()
|
---|
1490 | #define IDirectDraw2_CreateClipper(p,a,b,c) (p)->CreateClipper(a,b,c)
|
---|
1491 | #define IDirectDraw2_CreatePalette(p,a,b,c,d) (p)->CreatePalette(a,b,c,d)
|
---|
1492 | #define IDirectDraw2_CreateSurface(p,a,b,c) (p)->CreateSurface(a,b,c)
|
---|
1493 | #define IDirectDraw2_DuplicateSurface(p,a,b) (p)->DuplicateSurface(a,b)
|
---|
1494 | #define IDirectDraw2_EnumDisplayModes(p,a,b,c,d) (p)->EnumDisplayModes(a,b,c,d)
|
---|
1495 | #define IDirectDraw2_EnumSurfaces(p,a,b,c,d) (p)->EnumSurfaces(a,b,c,d)
|
---|
1496 | #define IDirectDraw2_FlipToGDISurface(p) (p)->FlipToGDISurface()
|
---|
1497 | #define IDirectDraw2_GetCaps(p,a,b) (p)->GetCaps(a,b)
|
---|
1498 | #define IDirectDraw2_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
|
---|
1499 | #define IDirectDraw2_GetFourCCCodes(p,a,b) (p)->GetFourCCCodes(a,b)
|
---|
1500 | #define IDirectDraw2_GetGDISurface(p,a) (p)->GetGDISurface(a)
|
---|
1501 | #define IDirectDraw2_GetMonitorFrequency(p,a) (p)->GetMonitorFrequency(a)
|
---|
1502 | #define IDirectDraw2_GetScanLine(p,a) (p)->GetScanLine(a)
|
---|
1503 | #define IDirectDraw2_GetVerticalBlankStatus(p,a) (p)->GetVerticalBlankStatus(a)
|
---|
1504 | #define IDirectDraw2_Initialize(p,a) (p)->Initialize(a)
|
---|
1505 | #define IDirectDraw2_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
|
---|
1506 | #define IDirectDraw2_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
1507 | #define IDirectDraw2_SetDisplayMode(p,a,b,c,d,e) (p)->SetDisplayMode(a,b,c,d,e)
|
---|
1508 | #define IDirectDraw2_WaitForVerticalBlank(p,a,b) (p)->WaitForVerticalBlank(a,b)
|
---|
1509 | /*** IDirectDraw2 methods ***/
|
---|
1510 | #define IDirectDraw2_GetAvailableVidMem(p,a,b,c) (p)->GetAvailableVidMem(a,b,c)
|
---|
1511 | #endif
|
---|
1512 |
|
---|
1513 |
|
---|
1514 | /*****************************************************************************
|
---|
1515 | * IDirectDraw3 interface
|
---|
1516 | */
|
---|
1517 | #define INTERFACE IDirectDraw3
|
---|
1518 | DECLARE_INTERFACE_(IDirectDraw3,IUnknown)
|
---|
1519 | {
|
---|
1520 | /*** IUnknown methods ***/
|
---|
1521 | /*00*/ STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1522 | /*04*/ STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1523 | /*08*/ STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1524 | /*** IDirectDraw2 methods ***/
|
---|
1525 | /*0c*/ STDMETHOD(Compact)(THIS) PURE;
|
---|
1526 | /*10*/ STDMETHOD(CreateClipper)(THIS_ DWORD dwFlags, LPDIRECTDRAWCLIPPER *lplpDDClipper, IUnknown *pUnkOuter) PURE;
|
---|
1527 | /*14*/ STDMETHOD(CreatePalette)(THIS_ DWORD dwFlags, LPPALETTEENTRY lpColorTable, LPDIRECTDRAWPALETTE *lplpDDPalette, IUnknown *pUnkOuter) PURE;
|
---|
1528 | /*18*/ STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc, LPDIRECTDRAWSURFACE *lplpDDSurface, IUnknown *pUnkOuter) PURE;
|
---|
1529 | /*1c*/ STDMETHOD(DuplicateSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDSurface, LPDIRECTDRAWSURFACE *lplpDupDDSurface) PURE;
|
---|
1530 | /*20*/ STDMETHOD(EnumDisplayModes)(THIS_ DWORD dwFlags, LPDDSURFACEDESC lpDDSurfaceDesc, LPVOID lpContext, LPDDENUMMODESCALLBACK lpEnumModesCallback) PURE;
|
---|
1531 | /*24*/ STDMETHOD(EnumSurfaces)(THIS_ DWORD dwFlags, LPDDSURFACEDESC lpDDSD, LPVOID lpContext, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback) PURE;
|
---|
1532 | /*28*/ STDMETHOD(FlipToGDISurface)(THIS) PURE;
|
---|
1533 | /*2c*/ STDMETHOD(GetCaps)(THIS_ LPDDCAPS lpDDDriverCaps, LPDDCAPS lpDDHELCaps) PURE;
|
---|
1534 | /*30*/ STDMETHOD(GetDisplayMode)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc) PURE;
|
---|
1535 | /*34*/ STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD lpNumCodes, LPDWORD lpCodes) PURE;
|
---|
1536 | /*38*/ STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE *lplpGDIDDSurface) PURE;
|
---|
1537 | /*3c*/ STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
|
---|
1538 | /*40*/ STDMETHOD(GetScanLine)(THIS_ LPDWORD lpdwScanLine) PURE;
|
---|
1539 | /*44*/ STDMETHOD(GetVerticalBlankStatus)(THIS_ BOOL *lpbIsInVB) PURE;
|
---|
1540 | /*48*/ STDMETHOD(Initialize)(THIS_ GUID *lpGUID) PURE;
|
---|
1541 | /*4c*/ STDMETHOD(RestoreDisplayMode)(THIS) PURE;
|
---|
1542 | /*50*/ STDMETHOD(SetCooperativeLevel)(THIS_ HWND hWnd, DWORD dwFlags) PURE;
|
---|
1543 | /*54*/ STDMETHOD(SetDisplayMode)(THIS_ DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags) PURE;
|
---|
1544 | /*58*/ STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD dwFlags, HANDLE hEvent) PURE;
|
---|
1545 | /* added in v2 */
|
---|
1546 | /*5c*/ STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS lpDDCaps, LPDWORD lpdwTotal, LPDWORD lpdwFree) PURE;
|
---|
1547 | /* added in v3 */
|
---|
1548 | /*60*/ STDMETHOD(GetSurfaceFromDC)(THIS_ HDC hdc, LPDIRECTDRAWSURFACE *pSurf) PURE;
|
---|
1549 | };
|
---|
1550 | #undef INTERFACE
|
---|
1551 |
|
---|
1552 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1553 | /*** IUnknown methods ***/
|
---|
1554 | #define IDirectDraw3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1555 | #define IDirectDraw3_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1556 | #define IDirectDraw3_Release(p) (p)->lpVtbl->Release(p)
|
---|
1557 | /*** IDirectDraw methods ***/
|
---|
1558 | #define IDirectDraw3_Compact(p) (p)->lpVtbl->Compact(p)
|
---|
1559 | #define IDirectDraw3_CreateClipper(p,a,b,c) (p)->lpVtbl->CreateClipper(p,a,b,c)
|
---|
1560 | #define IDirectDraw3_CreatePalette(p,a,b,c,d) (p)->lpVtbl->CreatePalette(p,a,b,c,d)
|
---|
1561 | #define IDirectDraw3_CreateSurface(p,a,b,c) (p)->lpVtbl->CreateSurface(p,a,b,c)
|
---|
1562 | #define IDirectDraw3_DuplicateSurface(p,a,b) (p)->lpVtbl->DuplicateSurface(p,a,b)
|
---|
1563 | #define IDirectDraw3_EnumDisplayModes(p,a,b,c,d) (p)->lpVtbl->EnumDisplayModes(p,a,b,c,d)
|
---|
1564 | #define IDirectDraw3_EnumSurfaces(p,a,b,c,d) (p)->lpVtbl->EnumSurfaces(p,a,b,c,d)
|
---|
1565 | #define IDirectDraw3_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
|
---|
1566 | #define IDirectDraw3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
|
---|
1567 | #define IDirectDraw3_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
|
---|
1568 | #define IDirectDraw3_GetFourCCCodes(p,a,b) (p)->lpVtbl->GetFourCCCodes(p,a,b)
|
---|
1569 | #define IDirectDraw3_GetGDISurface(p,a) (p)->lpVtbl->GetGDISurface(p,a)
|
---|
1570 | #define IDirectDraw3_GetMonitorFrequency(p,a) (p)->lpVtbl->GetMonitorFrequency(p,a)
|
---|
1571 | #define IDirectDraw3_GetScanLine(p,a) (p)->lpVtbl->GetScanLine(p,a)
|
---|
1572 | #define IDirectDraw3_GetVerticalBlankStatus(p,a) (p)->lpVtbl->GetVerticalBlankStatus(p,a)
|
---|
1573 | #define IDirectDraw3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
|
---|
1574 | #define IDirectDraw3_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
|
---|
1575 | #define IDirectDraw3_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
1576 | #define IDirectDraw3_SetDisplayMode(p,a,b,c,d,e) (p)->lpVtbl->SetDisplayMode(p,a,b,c,d,e)
|
---|
1577 | #define IDirectDraw3_WaitForVerticalBlank(p,a,b) (p)->lpVtbl->WaitForVerticalBlank(p,a,b)
|
---|
1578 | /*** IDirectDraw2 methods ***/
|
---|
1579 | #define IDirectDraw3_GetAvailableVidMem(p,a,b,c) (p)->lpVtbl->GetAvailableVidMem(p,a,b,c)
|
---|
1580 | /*** IDirectDraw3 methods ***/
|
---|
1581 | #define IDirectDraw3_GetSurfaceFromDC(p,a,b) (p)->lpVtbl->GetSurfaceFromDC(p,a,b)
|
---|
1582 | #else
|
---|
1583 | /*** IUnknown methods ***/
|
---|
1584 | #define IDirectDraw3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1585 | #define IDirectDraw3_AddRef(p) (p)->AddRef()
|
---|
1586 | #define IDirectDraw3_Release(p) (p)->Release()
|
---|
1587 | /*** IDirectDraw methods ***/
|
---|
1588 | #define IDirectDraw3_Compact(p) (p)->Compact()
|
---|
1589 | #define IDirectDraw3_CreateClipper(p,a,b,c) (p)->CreateClipper(a,b,c)
|
---|
1590 | #define IDirectDraw3_CreatePalette(p,a,b,c,d) (p)->CreatePalette(a,b,c,d)
|
---|
1591 | #define IDirectDraw3_CreateSurface(p,a,b,c) (p)->CreateSurface(a,b,c)
|
---|
1592 | #define IDirectDraw3_DuplicateSurface(p,a,b) (p)->DuplicateSurface(a,b)
|
---|
1593 | #define IDirectDraw3_EnumDisplayModes(p,a,b,c,d) (p)->EnumDisplayModes(a,b,c,d)
|
---|
1594 | #define IDirectDraw3_EnumSurfaces(p,a,b,c,d) (p)->EnumSurfaces(a,b,c,d)
|
---|
1595 | #define IDirectDraw3_FlipToGDISurface(p) (p)->FlipToGDISurface()
|
---|
1596 | #define IDirectDraw3_GetCaps(p,a,b) (p)->GetCaps(a,b)
|
---|
1597 | #define IDirectDraw3_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
|
---|
1598 | #define IDirectDraw3_GetFourCCCodes(p,a,b) (p)->GetFourCCCodes(a,b)
|
---|
1599 | #define IDirectDraw3_GetGDISurface(p,a) (p)->GetGDISurface(a)
|
---|
1600 | #define IDirectDraw3_GetMonitorFrequency(p,a) (p)->GetMonitorFrequency(a)
|
---|
1601 | #define IDirectDraw3_GetScanLine(p,a) (p)->GetScanLine(a)
|
---|
1602 | #define IDirectDraw3_GetVerticalBlankStatus(p,a) (p)->GetVerticalBlankStatus(a)
|
---|
1603 | #define IDirectDraw3_Initialize(p,a) (p)->Initialize(a)
|
---|
1604 | #define IDirectDraw3_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
|
---|
1605 | #define IDirectDraw3_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
1606 | #define IDirectDraw3_SetDisplayMode(p,a,b,c,d,e) (p)->SetDisplayMode(a,b,c,d,e)
|
---|
1607 | #define IDirectDraw3_WaitForVerticalBlank(p,a,b) (p)->WaitForVerticalBlank(a,b)
|
---|
1608 | /*** IDirectDraw2 methods ***/
|
---|
1609 | #define IDirectDraw3_GetAvailableVidMem(p,a,b,c) (p)->GetAvailableVidMem(a,b,c)
|
---|
1610 | /*** IDirectDraw3 methods ***/
|
---|
1611 | #define IDirectDraw3_GetSurfaceFromDC(p,a,b) (p)->GetSurfaceFromDC(a,b)
|
---|
1612 | #endif
|
---|
1613 |
|
---|
1614 |
|
---|
1615 | /*****************************************************************************
|
---|
1616 | * IDirectDraw4 interface
|
---|
1617 | */
|
---|
1618 | #define INTERFACE IDirectDraw4
|
---|
1619 | DECLARE_INTERFACE_(IDirectDraw4,IUnknown)
|
---|
1620 | {
|
---|
1621 | /*** IUnknown methods ***/
|
---|
1622 | /*00*/ STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1623 | /*04*/ STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1624 | /*08*/ STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1625 | /*** IDirectDraw4 methods ***/
|
---|
1626 | /*0c*/ STDMETHOD(Compact)(THIS) PURE;
|
---|
1627 | /*10*/ STDMETHOD(CreateClipper)(THIS_ DWORD dwFlags, LPDIRECTDRAWCLIPPER *lplpDDClipper, IUnknown *pUnkOuter) PURE;
|
---|
1628 | /*14*/ STDMETHOD(CreatePalette)(THIS_ DWORD dwFlags, LPPALETTEENTRY lpColorTable, LPDIRECTDRAWPALETTE *lplpDDPalette, IUnknown *pUnkOuter) PURE;
|
---|
1629 | /*18*/ STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC2 lpDDSurfaceDesc, LPDIRECTDRAWSURFACE4 *lplpDDSurface, IUnknown *pUnkOuter) PURE;
|
---|
1630 | /*1c*/ STDMETHOD(DuplicateSurface)(THIS_ LPDIRECTDRAWSURFACE4 lpDDSurface, LPDIRECTDRAWSURFACE4 *lplpDupDDSurface) PURE;
|
---|
1631 | /*20*/ STDMETHOD(EnumDisplayModes)(THIS_ DWORD dwFlags, LPDDSURFACEDESC2 lpDDSurfaceDesc, LPVOID lpContext, LPDDENUMMODESCALLBACK2 lpEnumModesCallback) PURE;
|
---|
1632 | /*24*/ STDMETHOD(EnumSurfaces)(THIS_ DWORD dwFlags, LPDDSURFACEDESC2 lpDDSD, LPVOID lpContext, LPDDENUMSURFACESCALLBACK2 lpEnumSurfacesCallback) PURE;
|
---|
1633 | /*28*/ STDMETHOD(FlipToGDISurface)(THIS) PURE;
|
---|
1634 | /*2c*/ STDMETHOD(GetCaps)(THIS_ LPDDCAPS lpDDDriverCaps, LPDDCAPS lpDDHELCaps) PURE;
|
---|
1635 | /*30*/ STDMETHOD(GetDisplayMode)(THIS_ LPDDSURFACEDESC2 lpDDSurfaceDesc) PURE;
|
---|
1636 | /*34*/ STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD lpNumCodes, LPDWORD lpCodes) PURE;
|
---|
1637 | /*38*/ STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE4 *lplpGDIDDSurface) PURE;
|
---|
1638 | /*3c*/ STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
|
---|
1639 | /*40*/ STDMETHOD(GetScanLine)(THIS_ LPDWORD lpdwScanLine) PURE;
|
---|
1640 | /*44*/ STDMETHOD(GetVerticalBlankStatus)(THIS_ BOOL *lpbIsInVB) PURE;
|
---|
1641 | /*48*/ STDMETHOD(Initialize)(THIS_ GUID *lpGUID) PURE;
|
---|
1642 | /*4c*/ STDMETHOD(RestoreDisplayMode)(THIS) PURE;
|
---|
1643 | /*50*/ STDMETHOD(SetCooperativeLevel)(THIS_ HWND hWnd, DWORD dwFlags) PURE;
|
---|
1644 | /*54*/ STDMETHOD(SetDisplayMode)(THIS_ DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags) PURE;
|
---|
1645 | /*58*/ STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD dwFlags, HANDLE hEvent) PURE;
|
---|
1646 | /* added in v2 */
|
---|
1647 | /*5c*/ STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS2 lpDDCaps, LPDWORD lpdwTotal, LPDWORD lpdwFree) PURE;
|
---|
1648 | /* added in v4 */
|
---|
1649 | /*60*/ STDMETHOD(GetSurfaceFromDC)(THIS_ HDC hdc, LPDIRECTDRAWSURFACE4 *pSurf) PURE;
|
---|
1650 | /*64*/ STDMETHOD(RestoreAllSurfaces)(THIS) PURE;
|
---|
1651 | /*68*/ STDMETHOD(TestCooperativeLevel)(THIS) PURE;
|
---|
1652 | /*6c*/ STDMETHOD(GetDeviceIdentifier)(THIS_ LPDDDEVICEIDENTIFIER pDDDI, DWORD dwFlags) PURE;
|
---|
1653 | };
|
---|
1654 | #undef INTERFACE
|
---|
1655 |
|
---|
1656 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1657 | /*** IUnknown methods ***/
|
---|
1658 | #define IDirectDraw4_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1659 | #define IDirectDraw4_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1660 | #define IDirectDraw4_Release(p) (p)->lpVtbl->Release(p)
|
---|
1661 | /*** IDirectDraw methods ***/
|
---|
1662 | #define IDirectDraw4_Compact(p) (p)->lpVtbl->Compact(p)
|
---|
1663 | #define IDirectDraw4_CreateClipper(p,a,b,c) (p)->lpVtbl->CreateClipper(p,a,b,c)
|
---|
1664 | #define IDirectDraw4_CreatePalette(p,a,b,c,d) (p)->lpVtbl->CreatePalette(p,a,b,c,d)
|
---|
1665 | #define IDirectDraw4_CreateSurface(p,a,b,c) (p)->lpVtbl->CreateSurface(p,a,b,c)
|
---|
1666 | #define IDirectDraw4_DuplicateSurface(p,a,b) (p)->lpVtbl->DuplicateSurface(p,a,b)
|
---|
1667 | #define IDirectDraw4_EnumDisplayModes(p,a,b,c,d) (p)->lpVtbl->EnumDisplayModes(p,a,b,c,d)
|
---|
1668 | #define IDirectDraw4_EnumSurfaces(p,a,b,c,d) (p)->lpVtbl->EnumSurfaces(p,a,b,c,d)
|
---|
1669 | #define IDirectDraw4_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
|
---|
1670 | #define IDirectDraw4_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
|
---|
1671 | #define IDirectDraw4_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
|
---|
1672 | #define IDirectDraw4_GetFourCCCodes(p,a,b) (p)->lpVtbl->GetFourCCCodes(p,a,b)
|
---|
1673 | #define IDirectDraw4_GetGDISurface(p,a) (p)->lpVtbl->GetGDISurface(p,a)
|
---|
1674 | #define IDirectDraw4_GetMonitorFrequency(p,a) (p)->lpVtbl->GetMonitorFrequency(p,a)
|
---|
1675 | #define IDirectDraw4_GetScanLine(p,a) (p)->lpVtbl->GetScanLine(p,a)
|
---|
1676 | #define IDirectDraw4_GetVerticalBlankStatus(p,a) (p)->lpVtbl->GetVerticalBlankStatus(p,a)
|
---|
1677 | #define IDirectDraw4_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
|
---|
1678 | #define IDirectDraw4_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
|
---|
1679 | #define IDirectDraw4_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
1680 | #define IDirectDraw4_SetDisplayMode(p,a,b,c,d,e) (p)->lpVtbl->SetDisplayMode(p,a,b,c,d,e)
|
---|
1681 | #define IDirectDraw4_WaitForVerticalBlank(p,a,b) (p)->lpVtbl->WaitForVerticalBlank(p,a,b)
|
---|
1682 | /*** IDirectDraw2 methods ***/
|
---|
1683 | #define IDirectDraw4_GetAvailableVidMem(p,a,b,c) (p)->lpVtbl->GetAvailableVidMem(p,a,b,c)
|
---|
1684 | /*** IDirectDraw4 methods ***/
|
---|
1685 | #define IDirectDraw4_GetSurfaceFromDC(p,a,b) (p)->lpVtbl->GetSurfaceFromDC(p,a,b)
|
---|
1686 | #define IDirectDraw4_RestoreAllSurfaces(p) (p)->lpVtbl->RestoreAllSurfaces(p)
|
---|
1687 | #define IDirectDraw4_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
|
---|
1688 | #define IDirectDraw4_GetDeviceIdentifier(p,a,b) (p)->lpVtbl->GetDeviceIdentifier(p,a,b)
|
---|
1689 | #else
|
---|
1690 | /*** IUnknown methods ***/
|
---|
1691 | #define IDirectDraw4_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1692 | #define IDirectDraw4_AddRef(p) (p)->AddRef()
|
---|
1693 | #define IDirectDraw4_Release(p) (p)->Release()
|
---|
1694 | /*** IDirectDraw methods ***/
|
---|
1695 | #define IDirectDraw4_Compact(p) (p)->Compact()
|
---|
1696 | #define IDirectDraw4_CreateClipper(p,a,b,c) (p)->CreateClipper(a,b,c)
|
---|
1697 | #define IDirectDraw4_CreatePalette(p,a,b,c,d) (p)->CreatePalette(a,b,c,d)
|
---|
1698 | #define IDirectDraw4_CreateSurface(p,a,b,c) (p)->CreateSurface(a,b,c)
|
---|
1699 | #define IDirectDraw4_DuplicateSurface(p,a,b) (p)->DuplicateSurface(a,b)
|
---|
1700 | #define IDirectDraw4_EnumDisplayModes(p,a,b,c,d) (p)->EnumDisplayModes(a,b,c,d)
|
---|
1701 | #define IDirectDraw4_EnumSurfaces(p,a,b,c,d) (p)->EnumSurfaces(a,b,c,d)
|
---|
1702 | #define IDirectDraw4_FlipToGDISurface(p) (p)->FlipToGDISurface()
|
---|
1703 | #define IDirectDraw4_GetCaps(p,a,b) (p)->GetCaps(a,b)
|
---|
1704 | #define IDirectDraw4_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
|
---|
1705 | #define IDirectDraw4_GetFourCCCodes(p,a,b) (p)->GetFourCCCodes(a,b)
|
---|
1706 | #define IDirectDraw4_GetGDISurface(p,a) (p)->GetGDISurface(a)
|
---|
1707 | #define IDirectDraw4_GetMonitorFrequency(p,a) (p)->GetMonitorFrequency(a)
|
---|
1708 | #define IDirectDraw4_GetScanLine(p,a) (p)->GetScanLine(a)
|
---|
1709 | #define IDirectDraw4_GetVerticalBlankStatus(p,a) (p)->GetVerticalBlankStatus(a)
|
---|
1710 | #define IDirectDraw4_Initialize(p,a) (p)->Initialize(a)
|
---|
1711 | #define IDirectDraw4_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
|
---|
1712 | #define IDirectDraw4_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
1713 | #define IDirectDraw4_SetDisplayMode(p,a,b,c,d,e) (p)->SetDisplayMode(a,b,c,d,e)
|
---|
1714 | #define IDirectDraw4_WaitForVerticalBlank(p,a,b) (p)->WaitForVerticalBlank(a,b)
|
---|
1715 | /*** IDirectDraw2 methods ***/
|
---|
1716 | #define IDirectDraw4_GetAvailableVidMem(p,a,b,c) (p)->GetAvailableVidMem(a,b,c)
|
---|
1717 | /*** IDirectDraw4 methods ***/
|
---|
1718 | #define IDirectDraw4_GetSurfaceFromDC(p,a,b) (p)->GetSurfaceFromDC(a,b)
|
---|
1719 | #define IDirectDraw4_RestoreAllSurfaces(pc) (p)->RestoreAllSurfaces()
|
---|
1720 | #define IDirectDraw4_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
|
---|
1721 | #define IDirectDraw4_GetDeviceIdentifier(p,a,b) (p)->GetDeviceIdentifier(a,b)
|
---|
1722 | #endif
|
---|
1723 |
|
---|
1724 |
|
---|
1725 | /*****************************************************************************
|
---|
1726 | * IDirectDraw7 interface
|
---|
1727 | */
|
---|
1728 | /* Note: IDirectDraw7 cannot derive from IDirectDraw4; it is even documented
|
---|
1729 | * as not interchangeable with earlier DirectDraw interfaces.
|
---|
1730 | */
|
---|
1731 | #define INTERFACE IDirectDraw7
|
---|
1732 | DECLARE_INTERFACE_(IDirectDraw7,IUnknown)
|
---|
1733 | {
|
---|
1734 | /*** IUnknown methods ***/
|
---|
1735 | /*00*/ STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1736 | /*04*/ STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1737 | /*08*/ STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1738 | /*** IDirectDraw7 methods ***/
|
---|
1739 | /*0c*/ STDMETHOD(Compact)(THIS) PURE;
|
---|
1740 | /*10*/ STDMETHOD(CreateClipper)(THIS_ DWORD dwFlags, LPDIRECTDRAWCLIPPER *lplpDDClipper, IUnknown *pUnkOuter) PURE;
|
---|
1741 | /*14*/ STDMETHOD(CreatePalette)(THIS_ DWORD dwFlags, LPPALETTEENTRY lpColorTable, LPDIRECTDRAWPALETTE *lplpDDPalette, IUnknown *pUnkOuter) PURE;
|
---|
1742 | /*18*/ STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC2 lpDDSurfaceDesc, LPDIRECTDRAWSURFACE7 *lplpDDSurface, IUnknown *pUnkOuter) PURE;
|
---|
1743 | /*1c*/ STDMETHOD(DuplicateSurface)(THIS_ LPDIRECTDRAWSURFACE7 lpDDSurface, LPDIRECTDRAWSURFACE7 *lplpDupDDSurface) PURE;
|
---|
1744 | /*20*/ STDMETHOD(EnumDisplayModes)(THIS_ DWORD dwFlags, LPDDSURFACEDESC2 lpDDSurfaceDesc, LPVOID lpContext, LPDDENUMMODESCALLBACK2 lpEnumModesCallback) PURE;
|
---|
1745 | /*24*/ STDMETHOD(EnumSurfaces)(THIS_ DWORD dwFlags, LPDDSURFACEDESC2 lpDDSD, LPVOID lpContext, LPDDENUMSURFACESCALLBACK7 lpEnumSurfacesCallback) PURE;
|
---|
1746 | /*28*/ STDMETHOD(FlipToGDISurface)(THIS) PURE;
|
---|
1747 | /*2c*/ STDMETHOD(GetCaps)(THIS_ LPDDCAPS lpDDDriverCaps, LPDDCAPS lpDDHELCaps) PURE;
|
---|
1748 | /*30*/ STDMETHOD(GetDisplayMode)(THIS_ LPDDSURFACEDESC2 lpDDSurfaceDesc) PURE;
|
---|
1749 | /*34*/ STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD lpNumCodes, LPDWORD lpCodes) PURE;
|
---|
1750 | /*38*/ STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE7 *lplpGDIDDSurface) PURE;
|
---|
1751 | /*3c*/ STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD lpdwFrequency) PURE;
|
---|
1752 | /*40*/ STDMETHOD(GetScanLine)(THIS_ LPDWORD lpdwScanLine) PURE;
|
---|
1753 | /*44*/ STDMETHOD(GetVerticalBlankStatus)(THIS_ BOOL *lpbIsInVB) PURE;
|
---|
1754 | /*48*/ STDMETHOD(Initialize)(THIS_ GUID *lpGUID) PURE;
|
---|
1755 | /*4c*/ STDMETHOD(RestoreDisplayMode)(THIS) PURE;
|
---|
1756 | /*50*/ STDMETHOD(SetCooperativeLevel)(THIS_ HWND hWnd, DWORD dwFlags) PURE;
|
---|
1757 | /*54*/ STDMETHOD(SetDisplayMode)(THIS_ DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags) PURE;
|
---|
1758 | /*58*/ STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD dwFlags, HANDLE hEvent) PURE;
|
---|
1759 | /* added in v2 */
|
---|
1760 | /*5c*/ STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS2 lpDDCaps, LPDWORD lpdwTotal, LPDWORD lpdwFree) PURE;
|
---|
1761 | /* added in v4 */
|
---|
1762 | /*60*/ STDMETHOD(GetSurfaceFromDC)(THIS_ HDC hdc, LPDIRECTDRAWSURFACE7 *pSurf) PURE;
|
---|
1763 | /*64*/ STDMETHOD(RestoreAllSurfaces)(THIS) PURE;
|
---|
1764 | /*68*/ STDMETHOD(TestCooperativeLevel)(THIS) PURE;
|
---|
1765 | /*6c*/ STDMETHOD(GetDeviceIdentifier)(THIS_ LPDDDEVICEIDENTIFIER2 pDDDI, DWORD dwFlags) PURE;
|
---|
1766 | /* added in v7 */
|
---|
1767 | /*70*/ STDMETHOD(StartModeTest)(THIS_ LPSIZE pModes, DWORD dwNumModes, DWORD dwFlags) PURE;
|
---|
1768 | /*74*/ STDMETHOD(EvaluateMode)(THIS_ DWORD dwFlags, DWORD *pTimeout) PURE;
|
---|
1769 | };
|
---|
1770 | #undef INTERFACE
|
---|
1771 |
|
---|
1772 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1773 | /*** IUnknown methods ***/
|
---|
1774 | #define IDirectDraw7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1775 | #define IDirectDraw7_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1776 | #define IDirectDraw7_Release(p) (p)->lpVtbl->Release(p)
|
---|
1777 | /*** IDirectDraw methods ***/
|
---|
1778 | #define IDirectDraw7_Compact(p) (p)->lpVtbl->Compact(p)
|
---|
1779 | #define IDirectDraw7_CreateClipper(p,a,b,c) (p)->lpVtbl->CreateClipper(p,a,b,c)
|
---|
1780 | #define IDirectDraw7_CreatePalette(p,a,b,c,d) (p)->lpVtbl->CreatePalette(p,a,b,c,d)
|
---|
1781 | #define IDirectDraw7_CreateSurface(p,a,b,c) (p)->lpVtbl->CreateSurface(p,a,b,c)
|
---|
1782 | #define IDirectDraw7_DuplicateSurface(p,a,b) (p)->lpVtbl->DuplicateSurface(p,a,b)
|
---|
1783 | #define IDirectDraw7_EnumDisplayModes(p,a,b,c,d) (p)->lpVtbl->EnumDisplayModes(p,a,b,c,d)
|
---|
1784 | #define IDirectDraw7_EnumSurfaces(p,a,b,c,d) (p)->lpVtbl->EnumSurfaces(p,a,b,c,d)
|
---|
1785 | #define IDirectDraw7_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
|
---|
1786 | #define IDirectDraw7_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
|
---|
1787 | #define IDirectDraw7_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
|
---|
1788 | #define IDirectDraw7_GetFourCCCodes(p,a,b) (p)->lpVtbl->GetFourCCCodes(p,a,b)
|
---|
1789 | #define IDirectDraw7_GetGDISurface(p,a) (p)->lpVtbl->GetGDISurface(p,a)
|
---|
1790 | #define IDirectDraw7_GetMonitorFrequency(p,a) (p)->lpVtbl->GetMonitorFrequency(p,a)
|
---|
1791 | #define IDirectDraw7_GetScanLine(p,a) (p)->lpVtbl->GetScanLine(p,a)
|
---|
1792 | #define IDirectDraw7_GetVerticalBlankStatus(p,a) (p)->lpVtbl->GetVerticalBlankStatus(p,a)
|
---|
1793 | #define IDirectDraw7_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
|
---|
1794 | #define IDirectDraw7_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
|
---|
1795 | #define IDirectDraw7_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
1796 | #define IDirectDraw7_SetDisplayMode(p,a,b,c,d,e) (p)->lpVtbl->SetDisplayMode(p,a,b,c,d,e)
|
---|
1797 | #define IDirectDraw7_WaitForVerticalBlank(p,a,b) (p)->lpVtbl->WaitForVerticalBlank(p,a,b)
|
---|
1798 | /*** added in IDirectDraw2 ***/
|
---|
1799 | #define IDirectDraw7_GetAvailableVidMem(p,a,b,c) (p)->lpVtbl->GetAvailableVidMem(p,a,b,c)
|
---|
1800 | /*** added in IDirectDraw4 ***/
|
---|
1801 | #define IDirectDraw7_GetSurfaceFromDC(p,a,b) (p)->lpVtbl->GetSurfaceFromDC(p,a,b)
|
---|
1802 | #define IDirectDraw7_RestoreAllSurfaces(p) (p)->lpVtbl->RestoreAllSurfaces(p)
|
---|
1803 | #define IDirectDraw7_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
|
---|
1804 | #define IDirectDraw7_GetDeviceIdentifier(p,a,b) (p)->lpVtbl->GetDeviceIdentifier(p,a,b)
|
---|
1805 | /*** added in IDirectDraw 7 ***/
|
---|
1806 | #define IDirectDraw7_StartModeTest(p,a,b,c) (p)->lpVtbl->StartModeTest(p,a,b,c)
|
---|
1807 | #define IDirectDraw7_EvaluateMode(p,a,b) (p)->lpVtbl->EvaluateMode(p,a,b)
|
---|
1808 | #else
|
---|
1809 | /*** IUnknown methods ***/
|
---|
1810 | #define IDirectDraw7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1811 | #define IDirectDraw7_AddRef(p) (p)->AddRef()
|
---|
1812 | #define IDirectDraw7_Release(p) (p)->Release()
|
---|
1813 | /*** IDirectDraw methods ***/
|
---|
1814 | #define IDirectDraw7_Compact(p) (p)->Compact()
|
---|
1815 | #define IDirectDraw7_CreateClipper(p,a,b,c) (p)->CreateClipper(a,b,c)
|
---|
1816 | #define IDirectDraw7_CreatePalette(p,a,b,c,d) (p)->CreatePalette(a,b,c,d)
|
---|
1817 | #define IDirectDraw7_CreateSurface(p,a,b,c) (p)->CreateSurface(a,b,c)
|
---|
1818 | #define IDirectDraw7_DuplicateSurface(p,a,b) (p)->DuplicateSurface(a,b)
|
---|
1819 | #define IDirectDraw7_EnumDisplayModes(p,a,b,c,d) (p)->EnumDisplayModes(a,b,c,d)
|
---|
1820 | #define IDirectDraw7_EnumSurfaces(p,a,b,c,d) (p)->EnumSurfaces(a,b,c,d)
|
---|
1821 | #define IDirectDraw7_FlipToGDISurface(p) (p)->FlipToGDISurface()
|
---|
1822 | #define IDirectDraw7_GetCaps(p,a,b) (p)->GetCaps(a,b)
|
---|
1823 | #define IDirectDraw7_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
|
---|
1824 | #define IDirectDraw7_GetFourCCCodes(p,a,b) (p)->GetFourCCCodes(a,b)
|
---|
1825 | #define IDirectDraw7_GetGDISurface(p,a) (p)->GetGDISurface(a)
|
---|
1826 | #define IDirectDraw7_GetMonitorFrequency(p,a) (p)->GetMonitorFrequency(a)
|
---|
1827 | #define IDirectDraw7_GetScanLine(p,a) (p)->GetScanLine(a)
|
---|
1828 | #define IDirectDraw7_GetVerticalBlankStatus(p,a) (p)->GetVerticalBlankStatus(a)
|
---|
1829 | #define IDirectDraw7_Initialize(p,a) (p)->Initialize(a)
|
---|
1830 | #define IDirectDraw7_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
|
---|
1831 | #define IDirectDraw7_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
1832 | #define IDirectDraw7_SetDisplayMode(p,a,b,c,d,e) (p)->SetDisplayMode(a,b,c,d,e)
|
---|
1833 | #define IDirectDraw7_WaitForVerticalBlank(p,a,b) (p)->WaitForVerticalBlank(a,b)
|
---|
1834 | /*** added in IDirectDraw2 ***/
|
---|
1835 | #define IDirectDraw7_GetAvailableVidMem(p,a,b,c) (p)->GetAvailableVidMem(a,b,c)
|
---|
1836 | /*** added in IDirectDraw4 ***/
|
---|
1837 | #define IDirectDraw7_GetSurfaceFromDC(p,a,b) (p)->GetSurfaceFromDC(a,b)
|
---|
1838 | #define IDirectDraw7_RestoreAllSurfaces(p) (p)->RestoreAllSurfaces()
|
---|
1839 | #define IDirectDraw7_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
|
---|
1840 | #define IDirectDraw7_GetDeviceIdentifier(p,a,b) (p)->GetDeviceIdentifier(a,b)
|
---|
1841 | /*** added in IDirectDraw 7 ***/
|
---|
1842 | #define IDirectDraw7_StartModeTest(p,a,b,c) (p)->StartModeTest(a,b,c)
|
---|
1843 | #define IDirectDraw7_EvaluateMode(p,a,b) (p)->EvaluateMode(a,b)
|
---|
1844 | #endif
|
---|
1845 |
|
---|
1846 |
|
---|
1847 | /*****************************************************************************
|
---|
1848 | * IDirectDrawSurface interface
|
---|
1849 | */
|
---|
1850 | #define INTERFACE IDirectDrawSurface
|
---|
1851 | DECLARE_INTERFACE_(IDirectDrawSurface,IUnknown)
|
---|
1852 | {
|
---|
1853 | /*** IUnknown methods ***/
|
---|
1854 | /*00*/ STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1855 | /*04*/ STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1856 | /*08*/ STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1857 | /*** IDirectDrawSurface methods ***/
|
---|
1858 | /*0c*/ STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDSAttachedSurface) PURE;
|
---|
1859 | /*10*/ STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT lpRect) PURE;
|
---|
1860 | /*14*/ STDMETHOD(Blt)(THIS_ LPRECT lpDestRect, LPDIRECTDRAWSURFACE lpDDSrcSurface, LPRECT lpSrcRect, DWORD dwFlags, LPDDBLTFX lpDDBltFx) PURE;
|
---|
1861 | /*18*/ STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH lpDDBltBatch, DWORD dwCount, DWORD dwFlags) PURE;
|
---|
1862 | /*1c*/ STDMETHOD(BltFast)(THIS_ DWORD dwX, DWORD dwY, LPDIRECTDRAWSURFACE lpDDSrcSurface, LPRECT lpSrcRect, DWORD dwTrans) PURE;
|
---|
1863 | /*20*/ STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE lpDDSAttachedSurface) PURE;
|
---|
1864 | /*24*/ STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID lpContext, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback) PURE;
|
---|
1865 | /*28*/ STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD dwFlags, LPVOID lpContext, LPDDENUMSURFACESCALLBACK lpfnCallback) PURE;
|
---|
1866 | /*2c*/ STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE lpDDSurfaceTargetOverride, DWORD dwFlags) PURE;
|
---|
1867 | /*30*/ STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS lpDDSCaps, LPDIRECTDRAWSURFACE *lplpDDAttachedSurface) PURE;
|
---|
1868 | /*34*/ STDMETHOD(GetBltStatus)(THIS_ DWORD dwFlags) PURE;
|
---|
1869 | /*38*/ STDMETHOD(GetCaps)(THIS_ LPDDSCAPS lpDDSCaps) PURE;
|
---|
1870 | /*3c*/ STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER *lplpDDClipper) PURE;
|
---|
1871 | /*40*/ STDMETHOD(GetColorKey)(THIS_ DWORD dwFlags, LPDDCOLORKEY lpDDColorKey) PURE;
|
---|
1872 | /*44*/ STDMETHOD(GetDC)(THIS_ HDC *lphDC) PURE;
|
---|
1873 | /*48*/ STDMETHOD(GetFlipStatus)(THIS_ DWORD dwFlags) PURE;
|
---|
1874 | /*4c*/ STDMETHOD(GetOverlayPosition)(THIS_ LPLONG lplX, LPLONG lplY) PURE;
|
---|
1875 | /*50*/ STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE *lplpDDPalette) PURE;
|
---|
1876 | /*54*/ STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT lpDDPixelFormat) PURE;
|
---|
1877 | /*58*/ STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc) PURE;
|
---|
1878 | /*5c*/ STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW lpDD, LPDDSURFACEDESC lpDDSurfaceDesc) PURE;
|
---|
1879 | /*60*/ STDMETHOD(IsLost)(THIS) PURE;
|
---|
1880 | /*64*/ STDMETHOD(Lock)(THIS_ LPRECT lpDestRect, LPDDSURFACEDESC lpDDSurfaceDesc, DWORD dwFlags, HANDLE hEvent) PURE;
|
---|
1881 | /*68*/ STDMETHOD(ReleaseDC)(THIS_ HDC hDC) PURE;
|
---|
1882 | /*6c*/ STDMETHOD(Restore)(THIS) PURE;
|
---|
1883 | /*70*/ STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper) PURE;
|
---|
1884 | /*74*/ STDMETHOD(SetColorKey)(THIS_ DWORD dwFlags, LPDDCOLORKEY lpDDColorKey) PURE;
|
---|
1885 | /*78*/ STDMETHOD(SetOverlayPosition)(THIS_ LONG lX, LONG lY) PURE;
|
---|
1886 | /*7c*/ STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE lpDDPalette) PURE;
|
---|
1887 | /*80*/ STDMETHOD(Unlock)(THIS_ LPVOID lpSurfaceData) PURE;
|
---|
1888 | /*84*/ STDMETHOD(UpdateOverlay)(THIS_ LPRECT lpSrcRect, LPDIRECTDRAWSURFACE lpDDDestSurface, LPRECT lpDestRect, DWORD dwFlags, LPDDOVERLAYFX lpDDOverlayFx) PURE;
|
---|
1889 | /*88*/ STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD dwFlags) PURE;
|
---|
1890 | /*8c*/ STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE lpDDSReference) PURE;
|
---|
1891 | };
|
---|
1892 | #undef INTERFACE
|
---|
1893 |
|
---|
1894 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1895 | /*** IUnknown methods ***/
|
---|
1896 | #define IDirectDrawSurface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1897 | #define IDirectDrawSurface_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1898 | #define IDirectDrawSurface_Release(p) (p)->lpVtbl->Release(p)
|
---|
1899 | /*** IDirectDrawSurface methods ***/
|
---|
1900 | #define IDirectDrawSurface_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
|
---|
1901 | #define IDirectDrawSurface_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
|
---|
1902 | #define IDirectDrawSurface_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
|
---|
1903 | #define IDirectDrawSurface_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
|
---|
1904 | #define IDirectDrawSurface_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
|
---|
1905 | #define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
|
---|
1906 | #define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
|
---|
1907 | #define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
|
---|
1908 | #define IDirectDrawSurface_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
|
---|
1909 | #define IDirectDrawSurface_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
|
---|
1910 | #define IDirectDrawSurface_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
|
---|
1911 | #define IDirectDrawSurface_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
|
---|
1912 | #define IDirectDrawSurface_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
|
---|
1913 | #define IDirectDrawSurface_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
|
---|
1914 | #define IDirectDrawSurface_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
|
---|
1915 | #define IDirectDrawSurface_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
|
---|
1916 | #define IDirectDrawSurface_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
|
---|
1917 | #define IDirectDrawSurface_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
|
---|
1918 | #define IDirectDrawSurface_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
|
---|
1919 | #define IDirectDrawSurface_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
|
---|
1920 | #define IDirectDrawSurface_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
1921 | #define IDirectDrawSurface_IsLost(p) (p)->lpVtbl->IsLost(p)
|
---|
1922 | #define IDirectDrawSurface_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
|
---|
1923 | #define IDirectDrawSurface_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
|
---|
1924 | #define IDirectDrawSurface_Restore(p) (p)->lpVtbl->Restore(p)
|
---|
1925 | #define IDirectDrawSurface_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
|
---|
1926 | #define IDirectDrawSurface_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
|
---|
1927 | #define IDirectDrawSurface_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
|
---|
1928 | #define IDirectDrawSurface_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
|
---|
1929 | #define IDirectDrawSurface_Unlock(p,a) (p)->lpVtbl->Unlock(p,a)
|
---|
1930 | #define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
|
---|
1931 | #define IDirectDrawSurface_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
|
---|
1932 | #define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
|
---|
1933 | #else
|
---|
1934 | /*** IUnknown methods ***/
|
---|
1935 | #define IDirectDrawSurface_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1936 | #define IDirectDrawSurface_AddRef(p) (p)->AddRef()
|
---|
1937 | #define IDirectDrawSurface_Release(p) (p)->Release()
|
---|
1938 | /*** IDirectDrawSurface methods ***/
|
---|
1939 | #define IDirectDrawSurface_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
|
---|
1940 | #define IDirectDrawSurface_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
|
---|
1941 | #define IDirectDrawSurface_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
|
---|
1942 | #define IDirectDrawSurface_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
|
---|
1943 | #define IDirectDrawSurface_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
|
---|
1944 | #define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
|
---|
1945 | #define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
|
---|
1946 | #define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
|
---|
1947 | #define IDirectDrawSurface_Flip(p,a,b) (p)->Flip(a,b)
|
---|
1948 | #define IDirectDrawSurface_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
|
---|
1949 | #define IDirectDrawSurface_GetBltStatus(p,a) (p)->GetBltStatus(a)
|
---|
1950 | #define IDirectDrawSurface_GetCaps(p,a) (p)->GetCaps(a)
|
---|
1951 | #define IDirectDrawSurface_GetClipper(p,a) (p)->GetClipper(a)
|
---|
1952 | #define IDirectDrawSurface_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
|
---|
1953 | #define IDirectDrawSurface_GetDC(p,a) (p)->GetDC(a)
|
---|
1954 | #define IDirectDrawSurface_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
|
---|
1955 | #define IDirectDrawSurface_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
|
---|
1956 | #define IDirectDrawSurface_GetPalette(p,a) (p)->GetPalette(a)
|
---|
1957 | #define IDirectDrawSurface_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
|
---|
1958 | #define IDirectDrawSurface_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
|
---|
1959 | #define IDirectDrawSurface_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
1960 | #define IDirectDrawSurface_IsLost(p) (p)->IsLost()
|
---|
1961 | #define IDirectDrawSurface_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
|
---|
1962 | #define IDirectDrawSurface_ReleaseDC(p,a) (p)->ReleaseDC(a)
|
---|
1963 | #define IDirectDrawSurface_Restore(p) (p)->Restore()
|
---|
1964 | #define IDirectDrawSurface_SetClipper(p,a) (p)->SetClipper(a)
|
---|
1965 | #define IDirectDrawSurface_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
|
---|
1966 | #define IDirectDrawSurface_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
|
---|
1967 | #define IDirectDrawSurface_SetPalette(p,a) (p)->SetPalette(a)
|
---|
1968 | #define IDirectDrawSurface_Unlock(p,a) (p)->Unlock(a)
|
---|
1969 | #define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
|
---|
1970 | #define IDirectDrawSurface_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
|
---|
1971 | #define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
|
---|
1972 | #endif
|
---|
1973 |
|
---|
1974 |
|
---|
1975 | /*****************************************************************************
|
---|
1976 | * IDirectDrawSurface2 interface
|
---|
1977 | */
|
---|
1978 | /* Cannot inherit from IDirectDrawSurface because the LPDIRECTDRAWSURFACE parameters
|
---|
1979 | * have been converted to LPDIRECTDRAWSURFACE2.
|
---|
1980 | */
|
---|
1981 | #define INTERFACE IDirectDrawSurface2
|
---|
1982 | DECLARE_INTERFACE_(IDirectDrawSurface2,IUnknown)
|
---|
1983 | {
|
---|
1984 | /*** IUnknown methods ***/
|
---|
1985 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1986 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1987 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1988 | /*** IDirectDrawSurface2 methods ***/
|
---|
1989 | STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE2 lpDDSAttachedSurface) PURE;
|
---|
1990 | STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT lpRect) PURE;
|
---|
1991 | STDMETHOD(Blt)(THIS_ LPRECT lpDestRect, LPDIRECTDRAWSURFACE2 lpDDSrcSurface, LPRECT lpSrcRect, DWORD dwFlags, LPDDBLTFX lpDDBltFx) PURE;
|
---|
1992 | STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH lpDDBltBatch, DWORD dwCount, DWORD dwFlags) PURE;
|
---|
1993 | STDMETHOD(BltFast)(THIS_ DWORD dwX, DWORD dwY, LPDIRECTDRAWSURFACE2 lpDDSrcSurface, LPRECT lpSrcRect, DWORD dwTrans) PURE;
|
---|
1994 | STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE2 lpDDSAttachedSurface) PURE;
|
---|
1995 | STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID lpContext, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback) PURE;
|
---|
1996 | STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD dwFlags, LPVOID lpContext, LPDDENUMSURFACESCALLBACK lpfnCallback) PURE;
|
---|
1997 | STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE2 lpDDSurfaceTargetOverride, DWORD dwFlags) PURE;
|
---|
1998 | STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS lpDDSCaps, LPDIRECTDRAWSURFACE2 *lplpDDAttachedSurface) PURE;
|
---|
1999 | STDMETHOD(GetBltStatus)(THIS_ DWORD dwFlags) PURE;
|
---|
2000 | STDMETHOD(GetCaps)(THIS_ LPDDSCAPS lpDDSCaps) PURE;
|
---|
2001 | STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER *lplpDDClipper) PURE;
|
---|
2002 | STDMETHOD(GetColorKey)(THIS_ DWORD dwFlags, LPDDCOLORKEY lpDDColorKey) PURE;
|
---|
2003 | STDMETHOD(GetDC)(THIS_ HDC *lphDC) PURE;
|
---|
2004 | STDMETHOD(GetFlipStatus)(THIS_ DWORD dwFlags) PURE;
|
---|
2005 | STDMETHOD(GetOverlayPosition)(THIS_ LPLONG lplX, LPLONG lplY) PURE;
|
---|
2006 | STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE *lplpDDPalette) PURE;
|
---|
2007 | STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT lpDDPixelFormat) PURE;
|
---|
2008 | STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc) PURE;
|
---|
2009 | STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW lpDD, LPDDSURFACEDESC lpDDSurfaceDesc) PURE;
|
---|
2010 | STDMETHOD(IsLost)(THIS) PURE;
|
---|
2011 | STDMETHOD(Lock)(THIS_ LPRECT lpDestRect, LPDDSURFACEDESC lpDDSurfaceDesc, DWORD dwFlags, HANDLE hEvent) PURE;
|
---|
2012 | STDMETHOD(ReleaseDC)(THIS_ HDC hDC) PURE;
|
---|
2013 | STDMETHOD(Restore)(THIS) PURE;
|
---|
2014 | STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper) PURE;
|
---|
2015 | STDMETHOD(SetColorKey)(THIS_ DWORD dwFlags, LPDDCOLORKEY lpDDColorKey) PURE;
|
---|
2016 | STDMETHOD(SetOverlayPosition)(THIS_ LONG lX, LONG lY) PURE;
|
---|
2017 | STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE lpDDPalette) PURE;
|
---|
2018 | STDMETHOD(Unlock)(THIS_ LPVOID lpSurfaceData) PURE;
|
---|
2019 | STDMETHOD(UpdateOverlay)(THIS_ LPRECT lpSrcRect, LPDIRECTDRAWSURFACE2 lpDDDestSurface, LPRECT lpDestRect, DWORD dwFlags, LPDDOVERLAYFX lpDDOverlayFx) PURE;
|
---|
2020 | STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD dwFlags) PURE;
|
---|
2021 | STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE2 lpDDSReference) PURE;
|
---|
2022 | /* added in v2 */
|
---|
2023 | STDMETHOD(GetDDInterface)(THIS_ LPVOID *lplpDD) PURE;
|
---|
2024 | STDMETHOD(PageLock)(THIS_ DWORD dwFlags) PURE;
|
---|
2025 | STDMETHOD(PageUnlock)(THIS_ DWORD dwFlags) PURE;
|
---|
2026 | };
|
---|
2027 | #undef INTERFACE
|
---|
2028 |
|
---|
2029 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
2030 | /*** IUnknown methods ***/
|
---|
2031 | #define IDirectDrawSurface2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
2032 | #define IDirectDrawSurface2_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
2033 | #define IDirectDrawSurface2_Release(p) (p)->lpVtbl->Release(p)
|
---|
2034 | /*** IDirectDrawSurface methods (almost) ***/
|
---|
2035 | #define IDirectDrawSurface2_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
|
---|
2036 | #define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
|
---|
2037 | #define IDirectDrawSurface2_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
|
---|
2038 | #define IDirectDrawSurface2_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
|
---|
2039 | #define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
|
---|
2040 | #define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
|
---|
2041 | #define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
|
---|
2042 | #define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
|
---|
2043 | #define IDirectDrawSurface2_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
|
---|
2044 | #define IDirectDrawSurface2_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
|
---|
2045 | #define IDirectDrawSurface2_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
|
---|
2046 | #define IDirectDrawSurface2_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
|
---|
2047 | #define IDirectDrawSurface2_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
|
---|
2048 | #define IDirectDrawSurface2_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
|
---|
2049 | #define IDirectDrawSurface2_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
|
---|
2050 | #define IDirectDrawSurface2_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
|
---|
2051 | #define IDirectDrawSurface2_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
|
---|
2052 | #define IDirectDrawSurface2_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
|
---|
2053 | #define IDirectDrawSurface2_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
|
---|
2054 | #define IDirectDrawSurface2_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
|
---|
2055 | #define IDirectDrawSurface2_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
2056 | #define IDirectDrawSurface2_IsLost(p) (p)->lpVtbl->IsLost(p)
|
---|
2057 | #define IDirectDrawSurface2_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
|
---|
2058 | #define IDirectDrawSurface2_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
|
---|
2059 | #define IDirectDrawSurface2_Restore(p) (p)->lpVtbl->Restore(p)
|
---|
2060 | #define IDirectDrawSurface2_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
|
---|
2061 | #define IDirectDrawSurface2_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
|
---|
2062 | #define IDirectDrawSurface2_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
|
---|
2063 | #define IDirectDrawSurface2_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
|
---|
2064 | #define IDirectDrawSurface2_Unlock(p,a) (p)->lpVtbl->Unlock(p,a)
|
---|
2065 | #define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
|
---|
2066 | #define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
|
---|
2067 | #define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
|
---|
2068 | /*** IDirectDrawSurface2 methods ***/
|
---|
2069 | #define IDirectDrawSurface2_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
|
---|
2070 | #define IDirectDrawSurface2_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
|
---|
2071 | #define IDirectDrawSurface2_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
|
---|
2072 | #else
|
---|
2073 | /*** IUnknown methods ***/
|
---|
2074 | #define IDirectDrawSurface2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
2075 | #define IDirectDrawSurface2_AddRef(p) (p)->AddRef()
|
---|
2076 | #define IDirectDrawSurface2_Release(p) (p)->Release()
|
---|
2077 | /*** IDirectDrawSurface methods (almost) ***/
|
---|
2078 | #define IDirectDrawSurface2_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
|
---|
2079 | #define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
|
---|
2080 | #define IDirectDrawSurface2_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
|
---|
2081 | #define IDirectDrawSurface2_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
|
---|
2082 | #define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
|
---|
2083 | #define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
|
---|
2084 | #define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
|
---|
2085 | #define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
|
---|
2086 | #define IDirectDrawSurface2_Flip(p,a,b) (p)->Flip(a,b)
|
---|
2087 | #define IDirectDrawSurface2_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
|
---|
2088 | #define IDirectDrawSurface2_GetBltStatus(p,a) (p)->GetBltStatus(a)
|
---|
2089 | #define IDirectDrawSurface2_GetCaps(p,a) (p)->GetCaps(a)
|
---|
2090 | #define IDirectDrawSurface2_GetClipper(p,a) (p)->GetClipper(a)
|
---|
2091 | #define IDirectDrawSurface2_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
|
---|
2092 | #define IDirectDrawSurface2_GetDC(p,a) (p)->GetDC(a)
|
---|
2093 | #define IDirectDrawSurface2_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
|
---|
2094 | #define IDirectDrawSurface2_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
|
---|
2095 | #define IDirectDrawSurface2_GetPalette(p,a) (p)->GetPalette(a)
|
---|
2096 | #define IDirectDrawSurface2_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
|
---|
2097 | #define IDirectDrawSurface2_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
|
---|
2098 | #define IDirectDrawSurface2_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
2099 | #define IDirectDrawSurface2_IsLost(p) (p)->IsLost()
|
---|
2100 | #define IDirectDrawSurface2_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
|
---|
2101 | #define IDirectDrawSurface2_ReleaseDC(p,a) (p)->ReleaseDC(a)
|
---|
2102 | #define IDirectDrawSurface2_Restore(p) (p)->Restore()
|
---|
2103 | #define IDirectDrawSurface2_SetClipper(p,a) (p)->SetClipper(a)
|
---|
2104 | #define IDirectDrawSurface2_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
|
---|
2105 | #define IDirectDrawSurface2_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
|
---|
2106 | #define IDirectDrawSurface2_SetPalette(p,a) (p)->SetPalette(a)
|
---|
2107 | #define IDirectDrawSurface2_Unlock(p,a) (p)->Unlock(a)
|
---|
2108 | #define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
|
---|
2109 | #define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
|
---|
2110 | #define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
|
---|
2111 | /*** IDirectDrawSurface2 methods ***/
|
---|
2112 | #define IDirectDrawSurface2_GetDDInterface(p,a) (p)->GetDDInterface(a)
|
---|
2113 | #define IDirectDrawSurface2_PageLock(p,a) (p)->PageLock(a)
|
---|
2114 | #define IDirectDrawSurface2_PageUnlock(p,a) (p)->PageUnlock(a)
|
---|
2115 | #endif
|
---|
2116 |
|
---|
2117 |
|
---|
2118 | /*****************************************************************************
|
---|
2119 | * IDirectDrawSurface3 interface
|
---|
2120 | */
|
---|
2121 | /* Cannot inherit from IDirectDrawSurface2 because the LPDIRECTDRAWSURFACE2 parameters
|
---|
2122 | * have been converted to LPDIRECTDRAWSURFACE3.
|
---|
2123 | */
|
---|
2124 | #define INTERFACE IDirectDrawSurface3
|
---|
2125 | DECLARE_INTERFACE_(IDirectDrawSurface3,IUnknown)
|
---|
2126 | {
|
---|
2127 | /*** IUnknown methods ***/
|
---|
2128 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2129 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2130 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2131 | /*** IDirectDrawSurface3 methods ***/
|
---|
2132 | STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE3 lpDDSAttachedSurface) PURE;
|
---|
2133 | STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT lpRect) PURE;
|
---|
2134 | STDMETHOD(Blt)(THIS_ LPRECT lpDestRect, LPDIRECTDRAWSURFACE3 lpDDSrcSurface, LPRECT lpSrcRect, DWORD dwFlags, LPDDBLTFX lpDDBltFx) PURE;
|
---|
2135 | STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH lpDDBltBatch, DWORD dwCount, DWORD dwFlags) PURE;
|
---|
2136 | STDMETHOD(BltFast)(THIS_ DWORD dwX, DWORD dwY, LPDIRECTDRAWSURFACE3 lpDDSrcSurface, LPRECT lpSrcRect, DWORD dwTrans) PURE;
|
---|
2137 | STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE3 lpDDSAttachedSurface) PURE;
|
---|
2138 | STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID lpContext, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback) PURE;
|
---|
2139 | STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD dwFlags, LPVOID lpContext, LPDDENUMSURFACESCALLBACK lpfnCallback) PURE;
|
---|
2140 | STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE3 lpDDSurfaceTargetOverride, DWORD dwFlags) PURE;
|
---|
2141 | STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS lpDDSCaps, LPDIRECTDRAWSURFACE3 *lplpDDAttachedSurface) PURE;
|
---|
2142 | STDMETHOD(GetBltStatus)(THIS_ DWORD dwFlags) PURE;
|
---|
2143 | STDMETHOD(GetCaps)(THIS_ LPDDSCAPS lpDDSCaps) PURE;
|
---|
2144 | STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER *lplpDDClipper) PURE;
|
---|
2145 | STDMETHOD(GetColorKey)(THIS_ DWORD dwFlags, LPDDCOLORKEY lpDDColorKey) PURE;
|
---|
2146 | STDMETHOD(GetDC)(THIS_ HDC *lphDC) PURE;
|
---|
2147 | STDMETHOD(GetFlipStatus)(THIS_ DWORD dwFlags) PURE;
|
---|
2148 | STDMETHOD(GetOverlayPosition)(THIS_ LPLONG lplX, LPLONG lplY) PURE;
|
---|
2149 | STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE *lplpDDPalette) PURE;
|
---|
2150 | STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT lpDDPixelFormat) PURE;
|
---|
2151 | STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC lpDDSurfaceDesc) PURE;
|
---|
2152 | STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW lpDD, LPDDSURFACEDESC lpDDSurfaceDesc) PURE;
|
---|
2153 | STDMETHOD(IsLost)(THIS) PURE;
|
---|
2154 | STDMETHOD(Lock)(THIS_ LPRECT lpDestRect, LPDDSURFACEDESC lpDDSurfaceDesc, DWORD dwFlags, HANDLE hEvent) PURE;
|
---|
2155 | STDMETHOD(ReleaseDC)(THIS_ HDC hDC) PURE;
|
---|
2156 | STDMETHOD(Restore)(THIS) PURE;
|
---|
2157 | STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper) PURE;
|
---|
2158 | STDMETHOD(SetColorKey)(THIS_ DWORD dwFlags, LPDDCOLORKEY lpDDColorKey) PURE;
|
---|
2159 | STDMETHOD(SetOverlayPosition)(THIS_ LONG lX, LONG lY) PURE;
|
---|
2160 | STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE lpDDPalette) PURE;
|
---|
2161 | STDMETHOD(Unlock)(THIS_ LPVOID lpSurfaceData) PURE;
|
---|
2162 | STDMETHOD(UpdateOverlay)(THIS_ LPRECT lpSrcRect, LPDIRECTDRAWSURFACE3 lpDDDestSurface, LPRECT lpDestRect, DWORD dwFlags, LPDDOVERLAYFX lpDDOverlayFx) PURE;
|
---|
2163 | STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD dwFlags) PURE;
|
---|
2164 | STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE3 lpDDSReference) PURE;
|
---|
2165 | /* added in v2 */
|
---|
2166 | STDMETHOD(GetDDInterface)(THIS_ LPVOID *lplpDD) PURE;
|
---|
2167 | STDMETHOD(PageLock)(THIS_ DWORD dwFlags) PURE;
|
---|
2168 | STDMETHOD(PageUnlock)(THIS_ DWORD dwFlags) PURE;
|
---|
2169 | /* added in v3 */
|
---|
2170 | STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC lpDDSD, DWORD dwFlags) PURE;
|
---|
2171 | };
|
---|
2172 | #undef INTERFACE
|
---|
2173 |
|
---|
2174 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
2175 | /*** IUnknown methods ***/
|
---|
2176 | #define IDirectDrawSurface3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
2177 | #define IDirectDrawSurface3_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
2178 | #define IDirectDrawSurface3_Release(p) (p)->lpVtbl->Release(p)
|
---|
2179 | /*** IDirectDrawSurface methods (almost) ***/
|
---|
2180 | #define IDirectDrawSurface3_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
|
---|
2181 | #define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
|
---|
2182 | #define IDirectDrawSurface3_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
|
---|
2183 | #define IDirectDrawSurface3_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
|
---|
2184 | #define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
|
---|
2185 | #define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
|
---|
2186 | #define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
|
---|
2187 | #define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
|
---|
2188 | #define IDirectDrawSurface3_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
|
---|
2189 | #define IDirectDrawSurface3_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
|
---|
2190 | #define IDirectDrawSurface3_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
|
---|
2191 | #define IDirectDrawSurface3_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
|
---|
2192 | #define IDirectDrawSurface3_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
|
---|
2193 | #define IDirectDrawSurface3_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
|
---|
2194 | #define IDirectDrawSurface3_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
|
---|
2195 | #define IDirectDrawSurface3_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
|
---|
2196 | #define IDirectDrawSurface3_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
|
---|
2197 | #define IDirectDrawSurface3_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
|
---|
2198 | #define IDirectDrawSurface3_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
|
---|
2199 | #define IDirectDrawSurface3_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
|
---|
2200 | #define IDirectDrawSurface3_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
2201 | #define IDirectDrawSurface3_IsLost(p) (p)->lpVtbl->IsLost(p)
|
---|
2202 | #define IDirectDrawSurface3_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
|
---|
2203 | #define IDirectDrawSurface3_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
|
---|
2204 | #define IDirectDrawSurface3_Restore(p) (p)->lpVtbl->Restore(p)
|
---|
2205 | #define IDirectDrawSurface3_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
|
---|
2206 | #define IDirectDrawSurface3_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
|
---|
2207 | #define IDirectDrawSurface3_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
|
---|
2208 | #define IDirectDrawSurface3_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
|
---|
2209 | #define IDirectDrawSurface3_Unlock(p,a) (p)->lpVtbl->Unlock(p,a)
|
---|
2210 | #define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
|
---|
2211 | #define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
|
---|
2212 | #define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
|
---|
2213 | /*** IDirectDrawSurface2 methods ***/
|
---|
2214 | #define IDirectDrawSurface3_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
|
---|
2215 | #define IDirectDrawSurface3_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
|
---|
2216 | #define IDirectDrawSurface3_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
|
---|
2217 | /*** IDirectDrawSurface3 methods ***/
|
---|
2218 | #define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b)
|
---|
2219 | #else
|
---|
2220 | /*** IUnknown methods ***/
|
---|
2221 | #define IDirectDrawSurface3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
2222 | #define IDirectDrawSurface3_AddRef(p) (p)->AddRef()
|
---|
2223 | #define IDirectDrawSurface3_Release(p) (p)->Release()
|
---|
2224 | /*** IDirectDrawSurface methods (almost) ***/
|
---|
2225 | #define IDirectDrawSurface3_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
|
---|
2226 | #define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
|
---|
2227 | #define IDirectDrawSurface3_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
|
---|
2228 | #define IDirectDrawSurface3_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
|
---|
2229 | #define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
|
---|
2230 | #define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
|
---|
2231 | #define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
|
---|
2232 | #define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
|
---|
2233 | #define IDirectDrawSurface3_Flip(p,a,b) (p)->Flip(a,b)
|
---|
2234 | #define IDirectDrawSurface3_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
|
---|
2235 | #define IDirectDrawSurface3_GetBltStatus(p,a) (p)->GetBltStatus(a)
|
---|
2236 | #define IDirectDrawSurface3_GetCaps(p,a) (p)->GetCaps(a)
|
---|
2237 | #define IDirectDrawSurface3_GetClipper(p,a) (p)->GetClipper(a)
|
---|
2238 | #define IDirectDrawSurface3_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
|
---|
2239 | #define IDirectDrawSurface3_GetDC(p,a) (p)->GetDC(a)
|
---|
2240 | #define IDirectDrawSurface3_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
|
---|
2241 | #define IDirectDrawSurface3_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
|
---|
2242 | #define IDirectDrawSurface3_GetPalette(p,a) (p)->GetPalette(a)
|
---|
2243 | #define IDirectDrawSurface3_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
|
---|
2244 | #define IDirectDrawSurface3_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
|
---|
2245 | #define IDirectDrawSurface3_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
2246 | #define IDirectDrawSurface3_IsLost(p) (p)->IsLost()
|
---|
2247 | #define IDirectDrawSurface3_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
|
---|
2248 | #define IDirectDrawSurface3_ReleaseDC(p,a) (p)->ReleaseDC(a)
|
---|
2249 | #define IDirectDrawSurface3_Restore(p) (p)->Restore()
|
---|
2250 | #define IDirectDrawSurface3_SetClipper(p,a) (p)->SetClipper(a)
|
---|
2251 | #define IDirectDrawSurface3_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
|
---|
2252 | #define IDirectDrawSurface3_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
|
---|
2253 | #define IDirectDrawSurface3_SetPalette(p,a) (p)->SetPalette(a)
|
---|
2254 | #define IDirectDrawSurface3_Unlock(p,a) (p)->Unlock(a)
|
---|
2255 | #define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
|
---|
2256 | #define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
|
---|
2257 | #define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
|
---|
2258 | /*** IDirectDrawSurface2 methods ***/
|
---|
2259 | #define IDirectDrawSurface3_GetDDInterface(p,a) (p)->GetDDInterface(a)
|
---|
2260 | #define IDirectDrawSurface3_PageLock(p,a) (p)->PageLock(a)
|
---|
2261 | #define IDirectDrawSurface3_PageUnlock(p,a) (p)->PageUnlock(a)
|
---|
2262 | /*** IDirectDrawSurface3 methods ***/
|
---|
2263 | #define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b)
|
---|
2264 | #endif
|
---|
2265 |
|
---|
2266 |
|
---|
2267 | /*****************************************************************************
|
---|
2268 | * IDirectDrawSurface4 interface
|
---|
2269 | */
|
---|
2270 | /* Cannot inherit from IDirectDrawSurface2 because DDSCAPS changed to DDSCAPS2.
|
---|
2271 | */
|
---|
2272 | #define INTERFACE IDirectDrawSurface4
|
---|
2273 | DECLARE_INTERFACE_(IDirectDrawSurface4,IUnknown)
|
---|
2274 | {
|
---|
2275 | /*** IUnknown methods ***/
|
---|
2276 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2277 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2278 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2279 | /*** IDirectDrawSurface4 methods ***/
|
---|
2280 | STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE4 lpDDSAttachedSurface) PURE;
|
---|
2281 | STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT lpRect) PURE;
|
---|
2282 | STDMETHOD(Blt)(THIS_ LPRECT lpDestRect, LPDIRECTDRAWSURFACE4 lpDDSrcSurface, LPRECT lpSrcRect, DWORD dwFlags, LPDDBLTFX lpDDBltFx) PURE;
|
---|
2283 | STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH lpDDBltBatch, DWORD dwCount, DWORD dwFlags) PURE;
|
---|
2284 | STDMETHOD(BltFast)(THIS_ DWORD dwX, DWORD dwY, LPDIRECTDRAWSURFACE4 lpDDSrcSurface, LPRECT lpSrcRect, DWORD dwTrans) PURE;
|
---|
2285 | STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE4 lpDDSAttachedSurface) PURE;
|
---|
2286 | STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID lpContext, LPDDENUMSURFACESCALLBACK2 lpEnumSurfacesCallback) PURE;
|
---|
2287 | STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD dwFlags, LPVOID lpContext, LPDDENUMSURFACESCALLBACK2 lpfnCallback) PURE;
|
---|
2288 | STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE4 lpDDSurfaceTargetOverride, DWORD dwFlags) PURE;
|
---|
2289 | STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS2 lpDDSCaps, LPDIRECTDRAWSURFACE4 *lplpDDAttachedSurface) PURE;
|
---|
2290 | STDMETHOD(GetBltStatus)(THIS_ DWORD dwFlags) PURE;
|
---|
2291 | STDMETHOD(GetCaps)(THIS_ LPDDSCAPS2 lpDDSCaps) PURE;
|
---|
2292 | STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER *lplpDDClipper) PURE;
|
---|
2293 | STDMETHOD(GetColorKey)(THIS_ DWORD dwFlags, LPDDCOLORKEY lpDDColorKey) PURE;
|
---|
2294 | STDMETHOD(GetDC)(THIS_ HDC *lphDC) PURE;
|
---|
2295 | STDMETHOD(GetFlipStatus)(THIS_ DWORD dwFlags) PURE;
|
---|
2296 | STDMETHOD(GetOverlayPosition)(THIS_ LPLONG lplX, LPLONG lplY) PURE;
|
---|
2297 | STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE *lplpDDPalette) PURE;
|
---|
2298 | STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT lpDDPixelFormat) PURE;
|
---|
2299 | STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC2 lpDDSurfaceDesc) PURE;
|
---|
2300 | STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW lpDD, LPDDSURFACEDESC2 lpDDSurfaceDesc) PURE;
|
---|
2301 | STDMETHOD(IsLost)(THIS) PURE;
|
---|
2302 | STDMETHOD(Lock)(THIS_ LPRECT lpDestRect, LPDDSURFACEDESC2 lpDDSurfaceDesc, DWORD dwFlags, HANDLE hEvent) PURE;
|
---|
2303 | STDMETHOD(ReleaseDC)(THIS_ HDC hDC) PURE;
|
---|
2304 | STDMETHOD(Restore)(THIS) PURE;
|
---|
2305 | STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper) PURE;
|
---|
2306 | STDMETHOD(SetColorKey)(THIS_ DWORD dwFlags, LPDDCOLORKEY lpDDColorKey) PURE;
|
---|
2307 | STDMETHOD(SetOverlayPosition)(THIS_ LONG lX, LONG lY) PURE;
|
---|
2308 | STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE lpDDPalette) PURE;
|
---|
2309 | STDMETHOD(Unlock)(THIS_ LPRECT lpSurfaceData) PURE;
|
---|
2310 | STDMETHOD(UpdateOverlay)(THIS_ LPRECT lpSrcRect, LPDIRECTDRAWSURFACE4 lpDDDestSurface, LPRECT lpDestRect, DWORD dwFlags, LPDDOVERLAYFX lpDDOverlayFx) PURE;
|
---|
2311 | STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD dwFlags) PURE;
|
---|
2312 | STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE4 lpDDSReference) PURE;
|
---|
2313 | /* added in v2 */
|
---|
2314 | STDMETHOD(GetDDInterface)(THIS_ LPVOID *lplpDD) PURE;
|
---|
2315 | STDMETHOD(PageLock)(THIS_ DWORD dwFlags) PURE;
|
---|
2316 | STDMETHOD(PageUnlock)(THIS_ DWORD dwFlags) PURE;
|
---|
2317 | /* added in v3 */
|
---|
2318 | STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC2 lpDDSD, DWORD dwFlags) PURE;
|
---|
2319 | /* added in v4 */
|
---|
2320 | STDMETHOD(SetPrivateData)(THIS_ REFGUID tag, LPVOID pData, DWORD cbSize, DWORD dwFlags) PURE;
|
---|
2321 | STDMETHOD(GetPrivateData)(THIS_ REFGUID tag, LPVOID pBuffer, LPDWORD pcbBufferSize) PURE;
|
---|
2322 | STDMETHOD(FreePrivateData)(THIS_ REFGUID tag) PURE;
|
---|
2323 | STDMETHOD(GetUniquenessValue)(THIS_ LPDWORD pValue) PURE;
|
---|
2324 | STDMETHOD(ChangeUniquenessValue)(THIS) PURE;
|
---|
2325 | };
|
---|
2326 | #undef INTERFACE
|
---|
2327 |
|
---|
2328 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
2329 | /*** IUnknown methods ***/
|
---|
2330 | #define IDirectDrawSurface4_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
2331 | #define IDirectDrawSurface4_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
2332 | #define IDirectDrawSurface4_Release(p) (p)->lpVtbl->Release(p)
|
---|
2333 | /*** IDirectDrawSurface (almost) methods ***/
|
---|
2334 | #define IDirectDrawSurface4_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
|
---|
2335 | #define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
|
---|
2336 | #define IDirectDrawSurface4_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
|
---|
2337 | #define IDirectDrawSurface4_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
|
---|
2338 | #define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
|
---|
2339 | #define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
|
---|
2340 | #define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
|
---|
2341 | #define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
|
---|
2342 | #define IDirectDrawSurface4_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
|
---|
2343 | #define IDirectDrawSurface4_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
|
---|
2344 | #define IDirectDrawSurface4_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
|
---|
2345 | #define IDirectDrawSurface4_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
|
---|
2346 | #define IDirectDrawSurface4_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
|
---|
2347 | #define IDirectDrawSurface4_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
|
---|
2348 | #define IDirectDrawSurface4_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
|
---|
2349 | #define IDirectDrawSurface4_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
|
---|
2350 | #define IDirectDrawSurface4_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
|
---|
2351 | #define IDirectDrawSurface4_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
|
---|
2352 | #define IDirectDrawSurface4_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
|
---|
2353 | #define IDirectDrawSurface4_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
|
---|
2354 | #define IDirectDrawSurface4_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
2355 | #define IDirectDrawSurface4_IsLost(p) (p)->lpVtbl->IsLost(p)
|
---|
2356 | #define IDirectDrawSurface4_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
|
---|
2357 | #define IDirectDrawSurface4_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
|
---|
2358 | #define IDirectDrawSurface4_Restore(p) (p)->lpVtbl->Restore(p)
|
---|
2359 | #define IDirectDrawSurface4_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
|
---|
2360 | #define IDirectDrawSurface4_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
|
---|
2361 | #define IDirectDrawSurface4_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
|
---|
2362 | #define IDirectDrawSurface4_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
|
---|
2363 | #define IDirectDrawSurface4_Unlock(p,a) (p)->lpVtbl->Unlock(p,a)
|
---|
2364 | #define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
|
---|
2365 | #define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
|
---|
2366 | #define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
|
---|
2367 | /*** IDirectDrawSurface2 methods ***/
|
---|
2368 | #define IDirectDrawSurface4_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
|
---|
2369 | #define IDirectDrawSurface4_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
|
---|
2370 | #define IDirectDrawSurface4_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
|
---|
2371 | /*** IDirectDrawSurface3 methods ***/
|
---|
2372 | #define IDirectDrawSurface4_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b)
|
---|
2373 | /*** IDirectDrawSurface4 methods ***/
|
---|
2374 | #define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
|
---|
2375 | #define IDirectDrawSurface4_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
|
---|
2376 | #define IDirectDrawSurface4_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
|
---|
2377 | #define IDirectDrawSurface4_GetUniquenessValue(p,a) (p)->lpVtbl->GetUniquenessValue(p,a)
|
---|
2378 | #define IDirectDrawSurface4_ChangeUniquenessValue(p) (p)->lpVtbl->ChangeUniquenessValue(p)
|
---|
2379 | #else
|
---|
2380 | /*** IUnknown methods ***/
|
---|
2381 | #define IDirectDrawSurface4_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
2382 | #define IDirectDrawSurface4_AddRef(p) (p)->AddRef()
|
---|
2383 | #define IDirectDrawSurface4_Release(p) (p)->Release()
|
---|
2384 | /*** IDirectDrawSurface (almost) methods ***/
|
---|
2385 | #define IDirectDrawSurface4_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
|
---|
2386 | #define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
|
---|
2387 | #define IDirectDrawSurface4_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
|
---|
2388 | #define IDirectDrawSurface4_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
|
---|
2389 | #define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
|
---|
2390 | #define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
|
---|
2391 | #define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
|
---|
2392 | #define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
|
---|
2393 | #define IDirectDrawSurface4_Flip(p,a,b) (p)->Flip(a,b)
|
---|
2394 | #define IDirectDrawSurface4_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
|
---|
2395 | #define IDirectDrawSurface4_GetBltStatus(p,a) (p)->GetBltStatus(a)
|
---|
2396 | #define IDirectDrawSurface4_GetCaps(p,a) (p)->GetCaps(a)
|
---|
2397 | #define IDirectDrawSurface4_GetClipper(p,a) (p)->GetClipper(a)
|
---|
2398 | #define IDirectDrawSurface4_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
|
---|
2399 | #define IDirectDrawSurface4_GetDC(p,a) (p)->GetDC(a)
|
---|
2400 | #define IDirectDrawSurface4_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
|
---|
2401 | #define IDirectDrawSurface4_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
|
---|
2402 | #define IDirectDrawSurface4_GetPalette(p,a) (p)->GetPalette(a)
|
---|
2403 | #define IDirectDrawSurface4_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
|
---|
2404 | #define IDirectDrawSurface4_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
|
---|
2405 | #define IDirectDrawSurface4_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
2406 | #define IDirectDrawSurface4_IsLost(p) (p)->IsLost()
|
---|
2407 | #define IDirectDrawSurface4_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
|
---|
2408 | #define IDirectDrawSurface4_ReleaseDC(p,a) (p)->ReleaseDC(a)
|
---|
2409 | #define IDirectDrawSurface4_Restore(p) (p)->Restore()
|
---|
2410 | #define IDirectDrawSurface4_SetClipper(p,a) (p)->SetClipper(a)
|
---|
2411 | #define IDirectDrawSurface4_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
|
---|
2412 | #define IDirectDrawSurface4_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
|
---|
2413 | #define IDirectDrawSurface4_SetPalette(p,a) (p)->SetPalette(a)
|
---|
2414 | #define IDirectDrawSurface4_Unlock(p,a) (p)->Unlock(a)
|
---|
2415 | #define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
|
---|
2416 | #define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
|
---|
2417 | #define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
|
---|
2418 | /*** IDirectDrawSurface2 methods ***/
|
---|
2419 | #define IDirectDrawSurface4_GetDDInterface(p,a) (p)->GetDDInterface(a)
|
---|
2420 | #define IDirectDrawSurface4_PageLock(p,a) (p)->PageLock(a)
|
---|
2421 | #define IDirectDrawSurface4_PageUnlock(p,a) (p)->PageUnlock(a)
|
---|
2422 | /*** IDirectDrawSurface3 methods ***/
|
---|
2423 | #define IDirectDrawSurface4_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b)
|
---|
2424 | /*** IDirectDrawSurface4 methods ***/
|
---|
2425 | #define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
|
---|
2426 | #define IDirectDrawSurface4_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
|
---|
2427 | #define IDirectDrawSurface4_FreePrivateData(p,a) (p)->FreePrivateData(a)
|
---|
2428 | #define IDirectDrawSurface4_GetUniquenessValue(p,a) (p)->GetUniquenessValue(a)
|
---|
2429 | #define IDirectDrawSurface4_ChangeUniquenessValue(p) (p)->ChangeUniquenessValue()
|
---|
2430 | #endif
|
---|
2431 |
|
---|
2432 |
|
---|
2433 | /*****************************************************************************
|
---|
2434 | * IDirectDrawSurface7 interface
|
---|
2435 | */
|
---|
2436 | #define INTERFACE IDirectDrawSurface7
|
---|
2437 | DECLARE_INTERFACE_(IDirectDrawSurface7,IUnknown)
|
---|
2438 | {
|
---|
2439 | /*** IUnknown methods ***/
|
---|
2440 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2441 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2442 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2443 | /*** IDirectDrawSurface7 methods ***/
|
---|
2444 | STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE7 lpDDSAttachedSurface) PURE;
|
---|
2445 | STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT lpRect) PURE;
|
---|
2446 | STDMETHOD(Blt)(THIS_ LPRECT lpDestRect, LPDIRECTDRAWSURFACE7 lpDDSrcSurface, LPRECT lpSrcRect, DWORD dwFlags, LPDDBLTFX lpDDBltFx) PURE;
|
---|
2447 | STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH lpDDBltBatch, DWORD dwCount, DWORD dwFlags) PURE;
|
---|
2448 | STDMETHOD(BltFast)(THIS_ DWORD dwX, DWORD dwY, LPDIRECTDRAWSURFACE7 lpDDSrcSurface, LPRECT lpSrcRect, DWORD dwTrans) PURE;
|
---|
2449 | STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE7 lpDDSAttachedSurface) PURE;
|
---|
2450 | STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID lpContext, LPDDENUMSURFACESCALLBACK7 lpEnumSurfacesCallback) PURE;
|
---|
2451 | STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD dwFlags, LPVOID lpContext, LPDDENUMSURFACESCALLBACK7 lpfnCallback) PURE;
|
---|
2452 | STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE7 lpDDSurfaceTargetOverride, DWORD dwFlags) PURE;
|
---|
2453 | STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS2 lpDDSCaps, LPDIRECTDRAWSURFACE7 *lplpDDAttachedSurface) PURE;
|
---|
2454 | STDMETHOD(GetBltStatus)(THIS_ DWORD dwFlags) PURE;
|
---|
2455 | STDMETHOD(GetCaps)(THIS_ LPDDSCAPS2 lpDDSCaps) PURE;
|
---|
2456 | STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER *lplpDDClipper) PURE;
|
---|
2457 | STDMETHOD(GetColorKey)(THIS_ DWORD dwFlags, LPDDCOLORKEY lpDDColorKey) PURE;
|
---|
2458 | STDMETHOD(GetDC)(THIS_ HDC *lphDC) PURE;
|
---|
2459 | STDMETHOD(GetFlipStatus)(THIS_ DWORD dwFlags) PURE;
|
---|
2460 | STDMETHOD(GetOverlayPosition)(THIS_ LPLONG lplX, LPLONG lplY) PURE;
|
---|
2461 | STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE *lplpDDPalette) PURE;
|
---|
2462 | STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT lpDDPixelFormat) PURE;
|
---|
2463 | STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC2 lpDDSurfaceDesc) PURE;
|
---|
2464 | STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW lpDD, LPDDSURFACEDESC2 lpDDSurfaceDesc) PURE;
|
---|
2465 | STDMETHOD(IsLost)(THIS) PURE;
|
---|
2466 | STDMETHOD(Lock)(THIS_ LPRECT lpDestRect, LPDDSURFACEDESC2 lpDDSurfaceDesc, DWORD dwFlags, HANDLE hEvent) PURE;
|
---|
2467 | STDMETHOD(ReleaseDC)(THIS_ HDC hDC) PURE;
|
---|
2468 | STDMETHOD(Restore)(THIS) PURE;
|
---|
2469 | STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper) PURE;
|
---|
2470 | STDMETHOD(SetColorKey)(THIS_ DWORD dwFlags, LPDDCOLORKEY lpDDColorKey) PURE;
|
---|
2471 | STDMETHOD(SetOverlayPosition)(THIS_ LONG lX, LONG lY) PURE;
|
---|
2472 | STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE lpDDPalette) PURE;
|
---|
2473 | STDMETHOD(Unlock)(THIS_ LPRECT lpSurfaceData) PURE;
|
---|
2474 | STDMETHOD(UpdateOverlay)(THIS_ LPRECT lpSrcRect, LPDIRECTDRAWSURFACE7 lpDDDestSurface, LPRECT lpDestRect, DWORD dwFlags, LPDDOVERLAYFX lpDDOverlayFx) PURE;
|
---|
2475 | STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD dwFlags) PURE;
|
---|
2476 | STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE7 lpDDSReference) PURE;
|
---|
2477 | /* added in v2 */
|
---|
2478 | STDMETHOD(GetDDInterface)(THIS_ LPVOID *lplpDD) PURE;
|
---|
2479 | STDMETHOD(PageLock)(THIS_ DWORD dwFlags) PURE;
|
---|
2480 | STDMETHOD(PageUnlock)(THIS_ DWORD dwFlags) PURE;
|
---|
2481 | /* added in v3 */
|
---|
2482 | STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC2 lpDDSD, DWORD dwFlags) PURE;
|
---|
2483 | /* added in v4 */
|
---|
2484 | STDMETHOD(SetPrivateData)(THIS_ REFGUID tag, LPVOID pData, DWORD cbSize, DWORD dwFlags) PURE;
|
---|
2485 | STDMETHOD(GetPrivateData)(THIS_ REFGUID tag, LPVOID pBuffer, LPDWORD pcbBufferSize) PURE;
|
---|
2486 | STDMETHOD(FreePrivateData)(THIS_ REFGUID tag) PURE;
|
---|
2487 | STDMETHOD(GetUniquenessValue)(THIS_ LPDWORD pValue) PURE;
|
---|
2488 | STDMETHOD(ChangeUniquenessValue)(THIS) PURE;
|
---|
2489 | /* added in v7 */
|
---|
2490 | STDMETHOD(SetPriority)(THIS_ DWORD prio) PURE;
|
---|
2491 | STDMETHOD(GetPriority)(THIS_ LPDWORD prio) PURE;
|
---|
2492 | STDMETHOD(SetLOD)(THIS_ DWORD lod) PURE;
|
---|
2493 | STDMETHOD(GetLOD)(THIS_ LPDWORD lod) PURE;
|
---|
2494 | };
|
---|
2495 | #undef INTERFACE
|
---|
2496 |
|
---|
2497 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
2498 | /*** IUnknown methods ***/
|
---|
2499 | #define IDirectDrawSurface7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
2500 | #define IDirectDrawSurface7_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
2501 | #define IDirectDrawSurface7_Release(p) (p)->lpVtbl->Release(p)
|
---|
2502 | /*** IDirectDrawSurface (almost) methods ***/
|
---|
2503 | #define IDirectDrawSurface7_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
|
---|
2504 | #define IDirectDrawSurface7_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
|
---|
2505 | #define IDirectDrawSurface7_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
|
---|
2506 | #define IDirectDrawSurface7_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
|
---|
2507 | #define IDirectDrawSurface7_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
|
---|
2508 | #define IDirectDrawSurface7_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
|
---|
2509 | #define IDirectDrawSurface7_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
|
---|
2510 | #define IDirectDrawSurface7_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
|
---|
2511 | #define IDirectDrawSurface7_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
|
---|
2512 | #define IDirectDrawSurface7_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
|
---|
2513 | #define IDirectDrawSurface7_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
|
---|
2514 | #define IDirectDrawSurface7_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
|
---|
2515 | #define IDirectDrawSurface7_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
|
---|
2516 | #define IDirectDrawSurface7_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
|
---|
2517 | #define IDirectDrawSurface7_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
|
---|
2518 | #define IDirectDrawSurface7_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
|
---|
2519 | #define IDirectDrawSurface7_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
|
---|
2520 | #define IDirectDrawSurface7_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
|
---|
2521 | #define IDirectDrawSurface7_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
|
---|
2522 | #define IDirectDrawSurface7_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
|
---|
2523 | #define IDirectDrawSurface7_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
2524 | #define IDirectDrawSurface7_IsLost(p) (p)->lpVtbl->IsLost(p)
|
---|
2525 | #define IDirectDrawSurface7_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
|
---|
2526 | #define IDirectDrawSurface7_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
|
---|
2527 | #define IDirectDrawSurface7_Restore(p) (p)->lpVtbl->Restore(p)
|
---|
2528 | #define IDirectDrawSurface7_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
|
---|
2529 | #define IDirectDrawSurface7_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
|
---|
2530 | #define IDirectDrawSurface7_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
|
---|
2531 | #define IDirectDrawSurface7_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
|
---|
2532 | #define IDirectDrawSurface7_Unlock(p,a) (p)->lpVtbl->Unlock(p,a)
|
---|
2533 | #define IDirectDrawSurface7_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
|
---|
2534 | #define IDirectDrawSurface7_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
|
---|
2535 | #define IDirectDrawSurface7_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
|
---|
2536 | /*** IDirectDrawSurface2 methods ***/
|
---|
2537 | #define IDirectDrawSurface7_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
|
---|
2538 | #define IDirectDrawSurface7_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
|
---|
2539 | #define IDirectDrawSurface7_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
|
---|
2540 | /*** IDirectDrawSurface3 methods ***/
|
---|
2541 | #define IDirectDrawSurface7_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b)
|
---|
2542 | /*** IDirectDrawSurface4 methods ***/
|
---|
2543 | #define IDirectDrawSurface7_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
|
---|
2544 | #define IDirectDrawSurface7_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
|
---|
2545 | #define IDirectDrawSurface7_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
|
---|
2546 | #define IDirectDrawSurface7_GetUniquenessValue(p,a) (p)->lpVtbl->GetUniquenessValue(p,a)
|
---|
2547 | #define IDirectDrawSurface7_ChangeUniquenessValue(p) (p)->lpVtbl->ChangeUniquenessValue(p)
|
---|
2548 | /*** IDirectDrawSurface7 methods ***/
|
---|
2549 | #define IDirectDrawSurface7_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
|
---|
2550 | #define IDirectDrawSurface7_GetPriority(p,a) (p)->lpVtbl->GetPriority(p,a)
|
---|
2551 | #define IDirectDrawSurface7_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
|
---|
2552 | #define IDirectDrawSurface7_GetLOD(p,a) (p)->lpVtbl->GetLOD(p,a)
|
---|
2553 | #else
|
---|
2554 | /*** IUnknown methods ***/
|
---|
2555 | #define IDirectDrawSurface7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
2556 | #define IDirectDrawSurface7_AddRef(p) (p)->AddRef()
|
---|
2557 | #define IDirectDrawSurface7_Release(p) (p)->Release()
|
---|
2558 | /*** IDirectDrawSurface (almost) methods ***/
|
---|
2559 | #define IDirectDrawSurface7_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
|
---|
2560 | #define IDirectDrawSurface7_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
|
---|
2561 | #define IDirectDrawSurface7_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
|
---|
2562 | #define IDirectDrawSurface7_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
|
---|
2563 | #define IDirectDrawSurface7_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
|
---|
2564 | #define IDirectDrawSurface7_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
|
---|
2565 | #define IDirectDrawSurface7_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
|
---|
2566 | #define IDirectDrawSurface7_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
|
---|
2567 | #define IDirectDrawSurface7_Flip(p,a,b) (p)->Flip(a,b)
|
---|
2568 | #define IDirectDrawSurface7_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
|
---|
2569 | #define IDirectDrawSurface7_GetBltStatus(p,a) (p)->GetBltStatus(a)
|
---|
2570 | #define IDirectDrawSurface7_GetCaps(p,a) (p)->GetCaps(a)
|
---|
2571 | #define IDirectDrawSurface7_GetClipper(p,a) (p)->GetClipper(a)
|
---|
2572 | #define IDirectDrawSurface7_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
|
---|
2573 | #define IDirectDrawSurface7_GetDC(p,a) (p)->GetDC(a)
|
---|
2574 | #define IDirectDrawSurface7_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
|
---|
2575 | #define IDirectDrawSurface7_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
|
---|
2576 | #define IDirectDrawSurface7_GetPalette(p,a) (p)->GetPalette(a)
|
---|
2577 | #define IDirectDrawSurface7_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
|
---|
2578 | #define IDirectDrawSurface7_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
|
---|
2579 | #define IDirectDrawSurface7_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
2580 | #define IDirectDrawSurface7_IsLost(p) (p)->IsLost()
|
---|
2581 | #define IDirectDrawSurface7_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
|
---|
2582 | #define IDirectDrawSurface7_ReleaseDC(p,a) (p)->ReleaseDC(a)
|
---|
2583 | #define IDirectDrawSurface7_Restore(p) (p)->Restore()
|
---|
2584 | #define IDirectDrawSurface7_SetClipper(p,a) (p)->SetClipper(a)
|
---|
2585 | #define IDirectDrawSurface7_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
|
---|
2586 | #define IDirectDrawSurface7_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
|
---|
2587 | #define IDirectDrawSurface7_SetPalette(p,a) (p)->SetPalette(a)
|
---|
2588 | #define IDirectDrawSurface7_Unlock(p,a) (p)->Unlock(a)
|
---|
2589 | #define IDirectDrawSurface7_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
|
---|
2590 | #define IDirectDrawSurface7_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
|
---|
2591 | #define IDirectDrawSurface7_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
|
---|
2592 | /*** IDirectDrawSurface2 methods ***/
|
---|
2593 | #define IDirectDrawSurface7_GetDDInterface(p,a) (p)->GetDDInterface(a)
|
---|
2594 | #define IDirectDrawSurface7_PageLock(p,a) (p)->PageLock(a)
|
---|
2595 | #define IDirectDrawSurface7_PageUnlock(p,a) (p)->PageUnlock(a)
|
---|
2596 | /*** IDirectDrawSurface3 methods ***/
|
---|
2597 | #define IDirectDrawSurface7_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b)
|
---|
2598 | /*** IDirectDrawSurface4 methods ***/
|
---|
2599 | #define IDirectDrawSurface7_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
|
---|
2600 | #define IDirectDrawSurface7_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
|
---|
2601 | #define IDirectDrawSurface7_FreePrivateData(p,a) (p)->FreePrivateData(a)
|
---|
2602 | #define IDirectDrawSurface7_GetUniquenessValue(p,a) (p)->GetUniquenessValue(a)
|
---|
2603 | #define IDirectDrawSurface7_ChangeUniquenessValue(p) (p)->ChangeUniquenessValue()
|
---|
2604 | /*** IDirectDrawSurface7 methods ***/
|
---|
2605 | #define IDirectDrawSurface7_SetPriority(p,a) (p)->SetPriority(a)
|
---|
2606 | #define IDirectDrawSurface7_GetPriority(p,a) (p)->GetPriority(a)
|
---|
2607 | #define IDirectDrawSurface7_SetLOD(p,a) (p)->SetLOD(a)
|
---|
2608 | #define IDirectDrawSurface7_GetLOD(p,a) (p)->GetLOD(a)
|
---|
2609 | #endif
|
---|
2610 |
|
---|
2611 | /*****************************************************************************
|
---|
2612 | * IDirectDrawColorControl interface
|
---|
2613 | */
|
---|
2614 | #define INTERFACE IDirectDrawColorControl
|
---|
2615 | DECLARE_INTERFACE_(IDirectDrawColorControl,IUnknown)
|
---|
2616 | {
|
---|
2617 | /*** IUnknown methods ***/
|
---|
2618 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2619 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2620 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2621 | /*** IDirectDrawColorControl methods ***/
|
---|
2622 | STDMETHOD(GetColorControls)(THIS_ LPDDCOLORCONTROL lpColorControl) PURE;
|
---|
2623 | STDMETHOD(SetColorControls)(THIS_ LPDDCOLORCONTROL lpColorControl) PURE;
|
---|
2624 | };
|
---|
2625 | #undef INTERFACE
|
---|
2626 |
|
---|
2627 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
2628 | /*** IUnknown methods ***/
|
---|
2629 | #define IDirectDrawColorControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
2630 | #define IDirectDrawColorControl_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
2631 | #define IDirectDrawColorControl_Release(p) (p)->lpVtbl->Release(p)
|
---|
2632 | /*** IDirectDrawColorControl methods ***/
|
---|
2633 | #define IDirectDrawColorControl_GetColorControls(p,a) (p)->lpVtbl->GetColorControls(p,a)
|
---|
2634 | #define IDirectDrawColorControl_SetColorControls(p,a) (p)->lpVtbl->SetColorControls(p,a)
|
---|
2635 | #else
|
---|
2636 | /*** IUnknown methods ***/
|
---|
2637 | #define IDirectDrawColorControl_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
2638 | #define IDirectDrawColorControl_AddRef(p) (p)->AddRef()
|
---|
2639 | #define IDirectDrawColorControl_Release(p) (p)->Release()
|
---|
2640 | /*** IDirectDrawColorControl methods ***/
|
---|
2641 | #define IDirectDrawColorControl_GetColorControls(p,a) (p)->GetColorControls(a)
|
---|
2642 | #define IDirectDrawColorControl_SetColorControls(p,a) (p)->SetColorControls(a)
|
---|
2643 | #endif
|
---|
2644 |
|
---|
2645 | /*****************************************************************************
|
---|
2646 | * IDirectDrawGammaControl interface
|
---|
2647 | */
|
---|
2648 | #define INTERFACE IDirectDrawGammaControl
|
---|
2649 | DECLARE_INTERFACE_(IDirectDrawGammaControl,IUnknown)
|
---|
2650 | {
|
---|
2651 | /*** IUnknown methods ***/
|
---|
2652 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2653 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2654 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2655 | /*** IDirectDrawGammaControl methods ***/
|
---|
2656 | STDMETHOD(GetGammaRamp)(THIS_ DWORD dwFlags, LPDDGAMMARAMP lpGammaRamp) PURE;
|
---|
2657 | STDMETHOD(SetGammaRamp)(THIS_ DWORD dwFlags, LPDDGAMMARAMP lpGammaRamp) PURE;
|
---|
2658 | };
|
---|
2659 | #undef INTERFACE
|
---|
2660 |
|
---|
2661 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
2662 | /*** IUnknown methods ***/
|
---|
2663 | #define IDirectDrawGammaControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
2664 | #define IDirectDrawGammaControl_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
2665 | #define IDirectDrawGammaControl_Release(p) (p)->lpVtbl->Release(p)
|
---|
2666 | /*** IDirectDrawGammaControl methods ***/
|
---|
2667 | #define IDirectDrawGammaControl_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
|
---|
2668 | #define IDirectDrawGammaControl_SetGammaRamp(p,a,b) (p)->lpVtbl->SetGammaRamp(p,a,b)
|
---|
2669 | #else
|
---|
2670 | /*** IUnknown methods ***/
|
---|
2671 | #define IDirectDrawGammaControl_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
2672 | #define IDirectDrawGammaControl_AddRef(p) (p)->AddRef()
|
---|
2673 | #define IDirectDrawGammaControl_Release(p) (p)->Release()
|
---|
2674 | /*** IDirectDrawGammaControl methods ***/
|
---|
2675 | #define IDirectDrawGammaControl_GetGammaRamp(p,a,b) (p)->GetGammaRamp(a,b)
|
---|
2676 | #define IDirectDrawGammaControl_SetGammaRamp(p,a,b) (p)->SetGammaRamp(a,b)
|
---|
2677 | #endif
|
---|
2678 |
|
---|
2679 |
|
---|
2680 | HRESULT WINAPI DirectDrawCreate(GUID*,LPDIRECTDRAW*,IUnknown*);
|
---|
2681 | HRESULT WINAPI DirectDrawCreateEx(GUID*,LPVOID*,REFIID,IUnknown*);
|
---|
2682 | HRESULT WINAPI DirectDrawCreateClipper(DWORD,LPDIRECTDRAWCLIPPER*,IUnknown*);
|
---|
2683 |
|
---|
2684 | #ifdef __cplusplus
|
---|
2685 | } /* extern "C" */
|
---|
2686 | #endif /* defined(__cplusplus) */
|
---|
2687 |
|
---|
2688 | #endif /* __WINE_DDRAW_H */
|
---|