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