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