Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 1 | #ifndef __WINE_DDRAW_H |
| 2 | #define __WINE_DDRAW_H |
| 3 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 4 | #include "ts_xlib.h" |
| 5 | |
| 6 | #ifndef DIRECTDRAW_VERSION |
| 7 | #define DIRECTDRAW_VERSION 0x0500 |
| 8 | #endif /* DIRECTDRAW_VERSION */ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 9 | |
| 10 | |
| 11 | DEFINE_GUID( CLSID_DirectDraw, 0xD7B70EE0,0x4340,0x11CF,0xB0,0x63,0x00,0x20,0xAF,0xC2,0xCD,0x35 ); |
| 12 | DEFINE_GUID( CLSID_DirectDrawClipper, 0x593817A0,0x7DB3,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xb9,0x33,0x56 ); |
| 13 | DEFINE_GUID( IID_IDirectDraw, 0x6C14DB80,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); |
| 14 | DEFINE_GUID( IID_IDirectDraw2, 0xB3A6F3E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56 ); |
| 15 | DEFINE_GUID( IID_IDirectDrawSurface, 0x6C14DB81,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); |
| 16 | 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] | 17 | DEFINE_GUID( IID_IDirectDrawSurface3, 0xDA044E00,0x69B2,0x11D0,0xA1,0xD5,0x00,0xAA,0x00,0xB8,0xDF,0xBB ); |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 18 | DEFINE_GUID( IID_IDirectDrawPalette, 0x6C14DB84,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); |
| 19 | 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] | 20 | DEFINE_GUID( IID_IDirectDrawColorControl,0x4B9F0EE0,0x0D7E,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8 ); |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 21 | |
| 22 | typedef struct IDirectDraw IDirectDraw,*LPDIRECTDRAW; |
| 23 | typedef struct IDirectDraw2 IDirectDraw2,*LPDIRECTDRAW2; |
| 24 | typedef struct IDirectDrawClipper IDirectDrawClipper,*LPDIRECTDRAWCLIPPER; |
| 25 | typedef struct IDirectDrawPalette IDirectDrawPalette,*LPDIRECTDRAWPALETTE; |
| 26 | typedef struct IDirectDrawSurface IDirectDrawSurface,*LPDIRECTDRAWSURFACE; |
| 27 | typedef struct IDirectDrawSurface2 IDirectDrawSurface2,*LPDIRECTDRAWSURFACE2; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 28 | typedef struct IDirectDrawSurface3 IDirectDrawSurface3,*LPDIRECTDRAWSURFACE3; |
| 29 | typedef struct IDirectDrawColorControl IDirectDrawColorControl,*LPDIRECTDRAWCOLORCONTROL; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 30 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 31 | #define DDENUMRET_CANCEL 0 |
| 32 | #define DDENUMRET_OK 1 |
| 33 | |
| 34 | #define DD_OK 0 |
| 35 | |
| 36 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 37 | #define _FACDD 0x876 |
| 38 | #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code ) |
| 39 | |
| 40 | #define DDERR_ALREADYINITIALIZED MAKE_DDHRESULT( 5 ) |
| 41 | #define DDERR_CANNOTATTACHSURFACE MAKE_DDHRESULT( 10 ) |
| 42 | #define DDERR_CANNOTDETACHSURFACE MAKE_DDHRESULT( 20 ) |
| 43 | #define DDERR_CURRENTLYNOTAVAIL MAKE_DDHRESULT( 40 ) |
| 44 | #define DDERR_EXCEPTION MAKE_DDHRESULT( 55 ) |
| 45 | #define DDERR_GENERIC E_FAIL |
| 46 | #define DDERR_HEIGHTALIGN MAKE_DDHRESULT( 90 ) |
| 47 | #define DDERR_INCOMPATIBLEPRIMARY MAKE_DDHRESULT( 95 ) |
| 48 | #define DDERR_INVALIDCAPS MAKE_DDHRESULT( 100 ) |
| 49 | #define DDERR_INVALIDCLIPLIST MAKE_DDHRESULT( 110 ) |
| 50 | #define DDERR_INVALIDMODE MAKE_DDHRESULT( 120 ) |
| 51 | #define DDERR_INVALIDOBJECT MAKE_DDHRESULT( 130 ) |
| 52 | #define DDERR_INVALIDPARAMS E_INVALIDARG |
| 53 | #define DDERR_INVALIDPIXELFORMAT MAKE_DDHRESULT( 145 ) |
| 54 | #define DDERR_INVALIDRECT MAKE_DDHRESULT( 150 ) |
| 55 | #define DDERR_LOCKEDSURFACES MAKE_DDHRESULT( 160 ) |
| 56 | #define DDERR_NO3D MAKE_DDHRESULT( 170 ) |
| 57 | #define DDERR_NOALPHAHW MAKE_DDHRESULT( 180 ) |
| 58 | #define DDERR_NOCLIPLIST MAKE_DDHRESULT( 205 ) |
| 59 | #define DDERR_NOCOLORCONVHW MAKE_DDHRESULT( 210 ) |
| 60 | #define DDERR_NOCOOPERATIVELEVELSET MAKE_DDHRESULT( 212 ) |
| 61 | #define DDERR_NOCOLORKEY MAKE_DDHRESULT( 215 ) |
| 62 | #define DDERR_NOCOLORKEYHW MAKE_DDHRESULT( 220 ) |
| 63 | #define DDERR_NODIRECTDRAWSUPPORT MAKE_DDHRESULT( 222 ) |
| 64 | #define DDERR_NOEXCLUSIVEMODE MAKE_DDHRESULT( 225 ) |
| 65 | #define DDERR_NOFLIPHW MAKE_DDHRESULT( 230 ) |
| 66 | #define DDERR_NOGDI MAKE_DDHRESULT( 240 ) |
| 67 | #define DDERR_NOMIRRORHW MAKE_DDHRESULT( 250 ) |
| 68 | #define DDERR_NOTFOUND MAKE_DDHRESULT( 255 ) |
| 69 | #define DDERR_NOOVERLAYHW MAKE_DDHRESULT( 260 ) |
| 70 | #define DDERR_NORASTEROPHW MAKE_DDHRESULT( 280 ) |
| 71 | #define DDERR_NOROTATIONHW MAKE_DDHRESULT( 290 ) |
| 72 | #define DDERR_NOSTRETCHHW MAKE_DDHRESULT( 310 ) |
| 73 | #define DDERR_NOT4BITCOLOR MAKE_DDHRESULT( 316 ) |
| 74 | #define DDERR_NOT4BITCOLORINDEX MAKE_DDHRESULT( 317 ) |
| 75 | #define DDERR_NOT8BITCOLOR MAKE_DDHRESULT( 320 ) |
| 76 | #define DDERR_NOTEXTUREHW MAKE_DDHRESULT( 330 ) |
| 77 | #define DDERR_NOVSYNCHW MAKE_DDHRESULT( 335 ) |
| 78 | #define DDERR_NOZBUFFERHW MAKE_DDHRESULT( 340 ) |
| 79 | #define DDERR_NOZOVERLAYHW MAKE_DDHRESULT( 350 ) |
| 80 | #define DDERR_OUTOFCAPS MAKE_DDHRESULT( 360 ) |
| 81 | #define DDERR_OUTOFMEMORY E_OUTOFMEMORY |
| 82 | #define DDERR_OUTOFVIDEOMEMORY MAKE_DDHRESULT( 380 ) |
| 83 | #define DDERR_OVERLAYCANTCLIP MAKE_DDHRESULT( 382 ) |
| 84 | #define DDERR_OVERLAYCOLORKEYONLYONEACTIVE MAKE_DDHRESULT( 384 ) |
| 85 | #define DDERR_PALETTEBUSY MAKE_DDHRESULT( 387 ) |
| 86 | #define DDERR_COLORKEYNOTSET MAKE_DDHRESULT( 400 ) |
| 87 | #define DDERR_SURFACEALREADYATTACHED MAKE_DDHRESULT( 410 ) |
| 88 | #define DDERR_SURFACEALREADYDEPENDENT MAKE_DDHRESULT( 420 ) |
| 89 | #define DDERR_SURFACEBUSY MAKE_DDHRESULT( 430 ) |
| 90 | #define DDERR_CANTLOCKSURFACE MAKE_DDHRESULT( 435 ) |
| 91 | #define DDERR_SURFACEISOBSCURED MAKE_DDHRESULT( 440 ) |
| 92 | #define DDERR_SURFACELOST MAKE_DDHRESULT( 450 ) |
| 93 | #define DDERR_SURFACENOTATTACHED MAKE_DDHRESULT( 460 ) |
| 94 | #define DDERR_TOOBIGHEIGHT MAKE_DDHRESULT( 470 ) |
| 95 | #define DDERR_TOOBIGSIZE MAKE_DDHRESULT( 480 ) |
| 96 | #define DDERR_TOOBIGWIDTH MAKE_DDHRESULT( 490 ) |
| 97 | #define DDERR_UNSUPPORTED E_NOTIMPL |
| 98 | #define DDERR_UNSUPPORTEDFORMAT MAKE_DDHRESULT( 510 ) |
| 99 | #define DDERR_UNSUPPORTEDMASK MAKE_DDHRESULT( 520 ) |
| 100 | #define DDERR_VERTICALBLANKINPROGRESS MAKE_DDHRESULT( 537 ) |
| 101 | #define DDERR_WASSTILLDRAWING MAKE_DDHRESULT( 540 ) |
| 102 | #define DDERR_XALIGN MAKE_DDHRESULT( 560 ) |
| 103 | #define DDERR_INVALIDDIRECTDRAWGUID MAKE_DDHRESULT( 561 ) |
| 104 | #define DDERR_DIRECTDRAWALREADYCREATED MAKE_DDHRESULT( 562 ) |
| 105 | #define DDERR_NODIRECTDRAWHW MAKE_DDHRESULT( 563 ) |
| 106 | #define DDERR_PRIMARYSURFACEALREADYEXISTS MAKE_DDHRESULT( 564 ) |
| 107 | #define DDERR_NOEMULATION MAKE_DDHRESULT( 565 ) |
| 108 | #define DDERR_REGIONTOOSMALL MAKE_DDHRESULT( 566 ) |
| 109 | #define DDERR_CLIPPERISUSINGHWND MAKE_DDHRESULT( 567 ) |
| 110 | #define DDERR_NOCLIPPERATTACHED MAKE_DDHRESULT( 568 ) |
| 111 | #define DDERR_NOHWND MAKE_DDHRESULT( 569 ) |
| 112 | #define DDERR_HWNDSUBCLASSED MAKE_DDHRESULT( 570 ) |
| 113 | #define DDERR_HWNDALREADYSET MAKE_DDHRESULT( 571 ) |
| 114 | #define DDERR_NOPALETTEATTACHED MAKE_DDHRESULT( 572 ) |
| 115 | #define DDERR_NOPALETTEHW MAKE_DDHRESULT( 573 ) |
| 116 | #define DDERR_BLTFASTCANTCLIP MAKE_DDHRESULT( 574 ) |
| 117 | #define DDERR_NOBLTHW MAKE_DDHRESULT( 575 ) |
| 118 | #define DDERR_NODDROPSHW MAKE_DDHRESULT( 576 ) |
| 119 | #define DDERR_OVERLAYNOTVISIBLE MAKE_DDHRESULT( 577 ) |
| 120 | #define DDERR_NOOVERLAYDEST MAKE_DDHRESULT( 578 ) |
| 121 | #define DDERR_INVALIDPOSITION MAKE_DDHRESULT( 579 ) |
| 122 | #define DDERR_NOTAOVERLAYSURFACE MAKE_DDHRESULT( 580 ) |
| 123 | #define DDERR_EXCLUSIVEMODEALREADYSET MAKE_DDHRESULT( 581 ) |
| 124 | #define DDERR_NOTFLIPPABLE MAKE_DDHRESULT( 582 ) |
| 125 | #define DDERR_CANTDUPLICATE MAKE_DDHRESULT( 583 ) |
| 126 | #define DDERR_NOTLOCKED MAKE_DDHRESULT( 584 ) |
| 127 | #define DDERR_CANTCREATEDC MAKE_DDHRESULT( 585 ) |
| 128 | #define DDERR_NODC MAKE_DDHRESULT( 586 ) |
| 129 | #define DDERR_WRONGMODE MAKE_DDHRESULT( 587 ) |
| 130 | #define DDERR_IMPLICITLYCREATED MAKE_DDHRESULT( 588 ) |
| 131 | #define DDERR_NOTPALETTIZED MAKE_DDHRESULT( 589 ) |
| 132 | #define DDERR_UNSUPPORTEDMODE MAKE_DDHRESULT( 590 ) |
| 133 | #define DDERR_NOMIPMAPHW MAKE_DDHRESULT( 591 ) |
| 134 | #define DDERR_INVALIDSURFACETYPE MAKE_DDHRESULT( 592 ) |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 135 | #define DDERR_NOOPTIMIZEHW MAKE_DDHRESULT( 600 ) |
| 136 | #define DDERR_NOTLOADED MAKE_DDHRESULT( 601 ) |
| 137 | #define DDERR_NOFOCUSWINDOW MAKE_DDHRESULT( 602 ) |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 138 | #define DDERR_DCALREADYCREATED MAKE_DDHRESULT( 620 ) |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 139 | #define DDERR_NONONLOCALVIDMEM MAKE_DDHRESULT( 630 ) |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 140 | #define DDERR_CANTPAGELOCK MAKE_DDHRESULT( 640 ) |
| 141 | #define DDERR_CANTPAGEUNLOCK MAKE_DDHRESULT( 660 ) |
| 142 | #define DDERR_NOTPAGELOCKED MAKE_DDHRESULT( 680 ) |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 143 | #define DDERR_MOREDATA MAKE_DDHRESULT( 690 ) |
| 144 | #define DDERR_VIDEONOTACTIVE MAKE_DDHRESULT( 695 ) |
| 145 | #define DDERR_DEVICEDOESNTOWNSURFACE MAKE_DDHRESULT( 699 ) |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 146 | #define DDERR_NOTINITIALIZED CO_E_NOTINITIALIZED |
| 147 | |
| 148 | /* dwFlags for Blt* */ |
| 149 | #define DDBLT_ALPHADEST 0x00000001 |
| 150 | #define DDBLT_ALPHADESTCONSTOVERRIDE 0x00000002 |
| 151 | #define DDBLT_ALPHADESTNEG 0x00000004 |
| 152 | #define DDBLT_ALPHADESTSURFACEOVERRIDE 0x00000008 |
| 153 | #define DDBLT_ALPHAEDGEBLEND 0x00000010 |
| 154 | #define DDBLT_ALPHASRC 0x00000020 |
| 155 | #define DDBLT_ALPHASRCCONSTOVERRIDE 0x00000040 |
| 156 | #define DDBLT_ALPHASRCNEG 0x00000080 |
| 157 | #define DDBLT_ALPHASRCSURFACEOVERRIDE 0x00000100 |
| 158 | #define DDBLT_ASYNC 0x00000200 |
| 159 | #define DDBLT_COLORFILL 0x00000400 |
| 160 | #define DDBLT_DDFX 0x00000800 |
| 161 | #define DDBLT_DDROPS 0x00001000 |
| 162 | #define DDBLT_KEYDEST 0x00002000 |
| 163 | #define DDBLT_KEYDESTOVERRIDE 0x00004000 |
| 164 | #define DDBLT_KEYSRC 0x00008000 |
| 165 | #define DDBLT_KEYSRCOVERRIDE 0x00010000 |
| 166 | #define DDBLT_ROP 0x00020000 |
| 167 | #define DDBLT_ROTATIONANGLE 0x00040000 |
| 168 | #define DDBLT_ZBUFFER 0x00080000 |
| 169 | #define DDBLT_ZBUFFERDESTCONSTOVERRIDE 0x00100000 |
| 170 | #define DDBLT_ZBUFFERDESTOVERRIDE 0x00200000 |
| 171 | #define DDBLT_ZBUFFERSRCCONSTOVERRIDE 0x00400000 |
| 172 | #define DDBLT_ZBUFFERSRCOVERRIDE 0x00800000 |
| 173 | #define DDBLT_WAIT 0x01000000 |
| 174 | #define DDBLT_DEPTHFILL 0x02000000 |
| 175 | |
| 176 | /* dwTrans for BltFast */ |
| 177 | #define DDBLTFAST_NOCOLORKEY 0x00000000 |
| 178 | #define DDBLTFAST_SRCCOLORKEY 0x00000001 |
| 179 | #define DDBLTFAST_DESTCOLORKEY 0x00000002 |
| 180 | #define DDBLTFAST_WAIT 0x00000010 |
| 181 | |
| 182 | /* dwFlags for Flip */ |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 183 | #define DDFLIP_WAIT 0x00000001 |
| 184 | #define DDFLIP_EVEN 0x00000002 /* only valid for overlay */ |
| 185 | #define DDFLIP_ODD 0x00000004 /* only valid for overlay */ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 186 | |
| 187 | /* dwFlags for GetBltStatus */ |
| 188 | #define DDGBS_CANBLT 0x00000001 |
| 189 | #define DDGBS_ISBLTDONE 0x00000002 |
| 190 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 191 | /* DDSCAPS.dwCaps */ |
| 192 | /* reserved1, was 3d capable */ |
| 193 | #define DDSCAPS_RESERVED1 0x00000001 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 194 | /* surface contains alpha information */ |
| 195 | #define DDSCAPS_ALPHA 0x00000002 |
| 196 | /* this surface is a backbuffer */ |
| 197 | #define DDSCAPS_BACKBUFFER 0x00000004 |
| 198 | /* complex surface structure */ |
| 199 | #define DDSCAPS_COMPLEX 0x00000008 |
| 200 | /* part of surface flipping structure */ |
| 201 | #define DDSCAPS_FLIP 0x00000010 |
| 202 | /* this surface is the frontbuffer surface */ |
| 203 | #define DDSCAPS_FRONTBUFFER 0x00000020 |
| 204 | /* this is a plain offscreen surface */ |
| 205 | #define DDSCAPS_OFFSCREENPLAIN 0x00000040 |
| 206 | /* overlay */ |
| 207 | #define DDSCAPS_OVERLAY 0x00000080 |
| 208 | /* palette objects can be created and attached to us */ |
| 209 | #define DDSCAPS_PALETTE 0x00000100 |
| 210 | /* primary surface (the one the user looks at currently)(right eye)*/ |
| 211 | #define DDSCAPS_PRIMARYSURFACE 0x00000200 |
| 212 | /* primary surface for left eye */ |
| 213 | #define DDSCAPS_PRIMARYSURFACELEFT 0x00000400 |
| 214 | /* surface exists in systemmemory */ |
| 215 | #define DDSCAPS_SYSTEMMEMORY 0x00000800 |
| 216 | /* surface can be used as a texture */ |
| 217 | #define DDSCAPS_TEXTURE 0x00001000 |
| 218 | /* surface may be destination for 3d rendering */ |
| 219 | #define DDSCAPS_3DDEVICE 0x00002000 |
| 220 | /* surface exists in videomemory */ |
| 221 | #define DDSCAPS_VIDEOMEMORY 0x00004000 |
| 222 | /* surface changes immediately visible */ |
| 223 | #define DDSCAPS_VISIBLE 0x00008000 |
| 224 | /* write only surface */ |
| 225 | #define DDSCAPS_WRITEONLY 0x00010000 |
| 226 | /* zbuffer surface */ |
| 227 | #define DDSCAPS_ZBUFFER 0x00020000 |
| 228 | /* has its own DC */ |
| 229 | #define DDSCAPS_OWNDC 0x00040000 |
| 230 | /* surface should be able to receive live video */ |
| 231 | #define DDSCAPS_LIVEVIDEO 0x00080000 |
| 232 | /* should be able to have a hw codec decompress stuff into it */ |
| 233 | #define DDSCAPS_HWCODEC 0x00100000 |
| 234 | /* mode X (320x200 or 320x240) surface */ |
| 235 | #define DDSCAPS_MODEX 0x00200000 |
| 236 | /* one mipmap surface (1 level) */ |
| 237 | #define DDSCAPS_MIPMAP 0x00400000 |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 238 | #define DDSCAPS_RESERVED2 0x00800000 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 239 | /* memory allocation delayed until Load() */ |
| 240 | #define DDSCAPS_ALLOCONLOAD 0x04000000 |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 241 | /* Indicates that the surface will recieve data from a video port */ |
| 242 | #define DDSCAPS_VIDEOPORT 0x08000000 |
| 243 | /* surface is in local videomemory */ |
| 244 | #define DDSCAPS_LOCALVIDMEM 0x10000000 |
| 245 | /* surface is in nonlocal videomemory */ |
| 246 | #define DDSCAPS_NONLOCALVIDMEM 0x20000000 |
| 247 | /* surface is a standard VGA mode surface (NOT ModeX) */ |
| 248 | #define DDSCAPS_STANDARDVGAMODE 0x40000000 |
| 249 | /* optimized? surface */ |
| 250 | #define DDSCAPS_OPTIMIZED 0x80000000 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 251 | |
| 252 | typedef struct _DDSCAPS { |
| 253 | DWORD dwCaps; /* capabilities of surface wanted */ |
| 254 | } DDSCAPS,*LPDDSCAPS; |
| 255 | |
| 256 | #define DD_ROP_SPACE (256/32) /* space required to store ROP array */ |
| 257 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 258 | typedef struct _DDCAPS_DX3 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 259 | { |
| 260 | DWORD dwSize; /* size of the DDDRIVERCAPS structure */ |
| 261 | DWORD dwCaps; /* driver specific capabilities */ |
| 262 | DWORD dwCaps2; /* more driver specific capabilites */ |
| 263 | DWORD dwCKeyCaps; /* color key capabilities of the surface */ |
| 264 | DWORD dwFXCaps; /* driver specific stretching and effects capabilites */ |
| 265 | DWORD dwFXAlphaCaps; /* alpha driver specific capabilities */ |
| 266 | DWORD dwPalCaps; /* palette capabilities */ |
| 267 | DWORD dwSVCaps; /* stereo vision capabilities */ |
| 268 | DWORD dwAlphaBltConstBitDepths; /* DDBD_2,4,8 */ |
| 269 | DWORD dwAlphaBltPixelBitDepths; /* DDBD_1,2,4,8 */ |
| 270 | DWORD dwAlphaBltSurfaceBitDepths; /* DDBD_1,2,4,8 */ |
| 271 | DWORD dwAlphaOverlayConstBitDepths; /* DDBD_2,4,8 */ |
| 272 | DWORD dwAlphaOverlayPixelBitDepths; /* DDBD_1,2,4,8 */ |
| 273 | DWORD dwAlphaOverlaySurfaceBitDepths; /* DDBD_1,2,4,8 */ |
| 274 | DWORD dwZBufferBitDepths; /* DDBD_8,16,24,32 */ |
| 275 | DWORD dwVidMemTotal; /* total amount of video memory */ |
| 276 | DWORD dwVidMemFree; /* amount of free video memory */ |
| 277 | DWORD dwMaxVisibleOverlays; /* maximum number of visible overlays */ |
| 278 | DWORD dwCurrVisibleOverlays; /* current number of visible overlays */ |
| 279 | DWORD dwNumFourCCCodes; /* number of four cc codes */ |
| 280 | DWORD dwAlignBoundarySrc; /* source rectangle alignment */ |
| 281 | DWORD dwAlignSizeSrc; /* source rectangle byte size */ |
| 282 | DWORD dwAlignBoundaryDest; /* dest rectangle alignment */ |
| 283 | DWORD dwAlignSizeDest; /* dest rectangle byte size */ |
| 284 | DWORD dwAlignStrideAlign; /* stride alignment */ |
| 285 | DWORD dwRops[DD_ROP_SPACE]; /* ROPS supported */ |
| 286 | DDSCAPS ddsCaps; /* DDSCAPS structure has all the general capabilities */ |
| 287 | DWORD dwMinOverlayStretch; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */ |
| 288 | DWORD dwMaxOverlayStretch; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */ |
| 289 | DWORD dwMinLiveVideoStretch; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */ |
| 290 | DWORD dwMaxLiveVideoStretch; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */ |
| 291 | DWORD dwMinHwCodecStretch; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */ |
| 292 | DWORD dwMaxHwCodecStretch; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */ |
| 293 | DWORD dwReserved1; |
| 294 | DWORD dwReserved2; |
| 295 | DWORD dwReserved3; |
| 296 | DWORD dwSVBCaps; /* driver specific capabilities for System->Vmem blts */ |
| 297 | DWORD dwSVBCKeyCaps; /* driver color key capabilities for System->Vmem blts */ |
| 298 | DWORD dwSVBFXCaps; /* driver FX capabilities for System->Vmem blts */ |
| 299 | DWORD dwSVBRops[DD_ROP_SPACE];/* ROPS supported for System->Vmem blts */ |
| 300 | DWORD dwVSBCaps; /* driver specific capabilities for Vmem->System blts */ |
| 301 | DWORD dwVSBCKeyCaps; /* driver color key capabilities for Vmem->System blts */ |
| 302 | DWORD dwVSBFXCaps; /* driver FX capabilities for Vmem->System blts */ |
| 303 | DWORD dwVSBRops[DD_ROP_SPACE];/* ROPS supported for Vmem->System blts */ |
| 304 | DWORD dwSSBCaps; /* driver specific capabilities for System->System blts */ |
| 305 | DWORD dwSSBCKeyCaps; /* driver color key capabilities for System->System blts */ |
| 306 | DWORD dwSSBFXCaps; /* driver FX capabilities for System->System blts */ |
| 307 | DWORD dwSSBRops[DD_ROP_SPACE];/* ROPS supported for System->System blts */ |
| 308 | DWORD dwReserved4; |
| 309 | DWORD dwReserved5; |
| 310 | DWORD dwReserved6; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 311 | } DDCAPS_DX3,*LPDDCAPS_DX3; |
| 312 | |
| 313 | typedef struct _DDCAPS |
| 314 | { |
| 315 | /* 0*/ DWORD dwSize; /* size of the DDDRIVERCAPS structure */ |
| 316 | /* 4*/ DWORD dwCaps; /* driver specific capabilities */ |
| 317 | /* 8*/ DWORD dwCaps2; /* more driver specific capabilites */ |
| 318 | /* c*/ DWORD dwCKeyCaps; /* color key capabilities of the surface */ |
| 319 | /* 10*/ DWORD dwFXCaps; /* driver specific stretching and effects capabilites */ |
| 320 | /* 14*/ DWORD dwFXAlphaCaps; /* alpha driver specific capabilities */ |
| 321 | /* 18*/ DWORD dwPalCaps; /* palette capabilities */ |
| 322 | /* 1c*/ DWORD dwSVCaps; /* stereo vision capabilities */ |
| 323 | /* 20*/ DWORD dwAlphaBltConstBitDepths; /* DDBD_2,4,8 */ |
| 324 | /* 24*/ DWORD dwAlphaBltPixelBitDepths; /* DDBD_1,2,4,8 */ |
| 325 | /* 28*/ DWORD dwAlphaBltSurfaceBitDepths; /* DDBD_1,2,4,8 */ |
| 326 | /* 2c*/ DWORD dwAlphaOverlayConstBitDepths; /* DDBD_2,4,8 */ |
| 327 | /* 30*/ DWORD dwAlphaOverlayPixelBitDepths; /* DDBD_1,2,4,8 */ |
| 328 | /* 34*/ DWORD dwAlphaOverlaySurfaceBitDepths; /* DDBD_1,2,4,8 */ |
| 329 | /* 38*/ DWORD dwZBufferBitDepths; /* DDBD_8,16,24,32 */ |
| 330 | /* 3c*/ DWORD dwVidMemTotal; /* total amount of video memory */ |
| 331 | /* 40*/ DWORD dwVidMemFree; /* amount of free video memory */ |
| 332 | /* 44*/ DWORD dwMaxVisibleOverlays; /* maximum number of visible overlays */ |
| 333 | /* 48*/ DWORD dwCurrVisibleOverlays; /* current number of visible overlays */ |
| 334 | /* 4c*/ DWORD dwNumFourCCCodes; /* number of four cc codes */ |
| 335 | /* 50*/ DWORD dwAlignBoundarySrc; /* source rectangle alignment */ |
| 336 | /* 54*/ DWORD dwAlignSizeSrc; /* source rectangle byte size */ |
| 337 | /* 58*/ DWORD dwAlignBoundaryDest; /* dest rectangle alignment */ |
| 338 | /* 5c*/ DWORD dwAlignSizeDest; /* dest rectangle byte size */ |
| 339 | /* 60*/ DWORD dwAlignStrideAlign; /* stride alignment */ |
| 340 | /* 64*/ DWORD dwRops[DD_ROP_SPACE]; /* ROPS supported */ |
| 341 | /* 84*/ DDSCAPS ddsCaps; /* DDSCAPS structure has all the general capabilities */ |
| 342 | /* 88*/ DWORD dwMinOverlayStretch; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */ |
| 343 | /* 8c*/ DWORD dwMaxOverlayStretch; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */ |
| 344 | /* 90*/ DWORD dwMinLiveVideoStretch; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */ |
| 345 | /* 94*/ DWORD dwMaxLiveVideoStretch; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */ |
| 346 | /* 98*/ DWORD dwMinHwCodecStretch; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */ |
| 347 | /* 9c*/ DWORD dwMaxHwCodecStretch; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */ |
| 348 | /* a0*/ DWORD dwReserved1; |
| 349 | /* a4*/ DWORD dwReserved2; |
| 350 | /* a8*/ DWORD dwReserved3; |
| 351 | /* ac*/ DWORD dwSVBCaps; /* driver specific capabilities for System->Vmem blts */ |
| 352 | /* b0*/ DWORD dwSVBCKeyCaps; /* driver color key capabilities for System->Vmem blts */ |
| 353 | /* b4*/ DWORD dwSVBFXCaps; /* driver FX capabilities for System->Vmem blts */ |
| 354 | /* b8*/ DWORD dwSVBRops[DD_ROP_SPACE];/* ROPS supported for System->Vmem blts */ |
| 355 | /* d8*/ DWORD dwVSBCaps; /* driver specific capabilities for Vmem->System blts */ |
| 356 | /* dc*/ DWORD dwVSBCKeyCaps; /* driver color key capabilities for Vmem->System blts */ |
| 357 | /* e0*/ DWORD dwVSBFXCaps; /* driver FX capabilities for Vmem->System blts */ |
| 358 | /* e4*/ DWORD dwVSBRops[DD_ROP_SPACE];/* ROPS supported for Vmem->System blts */ |
| 359 | /*104*/ DWORD dwSSBCaps; /* driver specific capabilities for System->System blts */ |
| 360 | /*108*/ DWORD dwSSBCKeyCaps; /* driver color key capabilities for System->System blts */ |
| 361 | /*10c*/ DWORD dwSSBFXCaps; /* driver FX capabilities for System->System blts */ |
| 362 | /*110*/ DWORD dwSSBRops[DD_ROP_SPACE];/* ROPS supported for System->System blts */ |
| 363 | #if DIRECTDRAW_VERSION >= 0x0500 |
| 364 | /*130*/ DWORD dwMaxVideoPorts; /* maximum number of usable video ports */ |
| 365 | /*134*/ DWORD dwCurrVideoPorts;/* current number of video ports used */ |
| 366 | /*138*/ DWORD dwSVBCaps2; /* more driver specific capabilities for System->Vmem blts */ |
| 367 | /*13c*/ DWORD dwNLVBCaps; /* driver specific capabilities for non-local->local vidmem blts */ |
| 368 | /*140*/ DWORD dwNLVBCaps2; /* more driver specific capabilities non-local->local vidmem blts */ |
| 369 | /*144*/ DWORD dwNLVBCKeyCaps; /* driver color key capabilities for non-local->local vidmem blts */ |
| 370 | /*148*/ DWORD dwNLVBFXCaps; /* driver FX capabilities for non-local->local blts */ |
| 371 | /*14c*/ DWORD dwNLVBRops[DD_ROP_SPACE];/* ROPS supported for non-local->local blts */ |
| 372 | #else /* DIRECTDRAW_VERSION >= 0x0500 */ |
| 373 | /*130*/ DWORD dwReserved4; |
| 374 | /*134*/ DWORD dwReserved5; |
| 375 | /*138*/ DWORD dwReserved6; |
| 376 | #endif /* DIRECTDRAW_VERSION >= 0x0500 */ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 377 | } DDCAPS,*LPDDCAPS; |
| 378 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 379 | |
| 380 | /* DDCAPS.dwCaps */ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 381 | #define DDCAPS_3D 0x00000001 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 382 | #define DDCAPS_ALIGNBOUNDARYDEST 0x00000002 |
| 383 | #define DDCAPS_ALIGNSIZEDEST 0x00000004 |
| 384 | #define DDCAPS_ALIGNBOUNDARYSRC 0x00000008 |
| 385 | #define DDCAPS_ALIGNSIZESRC 0x00000010 |
| 386 | #define DDCAPS_ALIGNSTRIDE 0x00000020 |
| 387 | #define DDCAPS_BLT 0x00000040 |
| 388 | #define DDCAPS_BLTQUEUE 0x00000080 |
| 389 | #define DDCAPS_BLTFOURCC 0x00000100 |
| 390 | #define DDCAPS_BLTSTRETCH 0x00000200 |
| 391 | #define DDCAPS_GDI 0x00000400 |
| 392 | #define DDCAPS_OVERLAY 0x00000800 |
| 393 | #define DDCAPS_OVERLAYCANTCLIP 0x00001000 |
| 394 | #define DDCAPS_OVERLAYFOURCC 0x00002000 |
| 395 | #define DDCAPS_OVERLAYSTRETCH 0x00004000 |
| 396 | #define DDCAPS_PALETTE 0x00008000 |
| 397 | #define DDCAPS_PALETTEVSYNC 0x00010000 |
| 398 | #define DDCAPS_READSCANLINE 0x00020000 |
| 399 | #define DDCAPS_STEREOVIEW 0x00040000 |
| 400 | #define DDCAPS_VBI 0x00080000 |
| 401 | #define DDCAPS_ZBLTS 0x00100000 |
| 402 | #define DDCAPS_ZOVERLAYS 0x00200000 |
| 403 | #define DDCAPS_COLORKEY 0x00400000 |
| 404 | #define DDCAPS_ALPHA 0x00800000 |
| 405 | #define DDCAPS_COLORKEYHWASSIST 0x01000000 |
| 406 | #define DDCAPS_NOHARDWARE 0x02000000 |
| 407 | #define DDCAPS_BLTCOLORFILL 0x04000000 |
| 408 | #define DDCAPS_BANKSWITCHED 0x08000000 |
| 409 | #define DDCAPS_BLTDEPTHFILL 0x10000000 |
| 410 | #define DDCAPS_CANCLIP 0x20000000 |
| 411 | #define DDCAPS_CANCLIPSTRETCHED 0x40000000 |
| 412 | #define DDCAPS_CANBLTSYSMEM 0x80000000 |
| 413 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 414 | /* DDCAPS.dwCaps2 */ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 415 | #define DDCAPS2_CERTIFIED 0x00000001 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 416 | #define DDCAPS2_NO2DDURING3DSCENE 0x00000002 |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 417 | #define DDCAPS2_VIDEOPORT 0x00000004 |
| 418 | #define DDCAPS2_AUTOFLIPOVERLAY 0x00000008 |
| 419 | #define DDCAPS2_CANBOBINTERLEAVED 0x00000010 |
| 420 | #define DDCAPS2_CANBOBNONINTERLEAVED 0x00000020 |
| 421 | #define DDCAPS2_COLORCONTROLOVERLAY 0x00000040 |
| 422 | #define DDCAPS2_COLORCONTROLPRIMARY 0x00000080 |
| 423 | #define DDCAPS2_CANDROPZ16BIT 0x00000100 |
| 424 | #define DDCAPS2_NONLOCALVIDMEM 0x00000200 |
| 425 | #define DDCAPS2_NONLOCALVIDMEMCAPS 0x00000400 |
| 426 | #define DDCAPS2_NOPAGELOCKREQUIRED 0x00000800 |
| 427 | #define DDCAPS2_WIDESURFACES 0x00001000 |
| 428 | #define DDCAPS2_CANFLIPODDEVEN 0x00002000 |
| 429 | #define DDCAPS2_CANBOBHARDWARE 0x00004000 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 430 | |
| 431 | typedef struct _DDCOLORKEY |
| 432 | { |
| 433 | DWORD dwColorSpaceLowValue;/* low boundary of color space that is to |
| 434 | * be treated as Color Key, inclusive |
| 435 | */ |
| 436 | DWORD dwColorSpaceHighValue;/* high boundary of color space that is |
| 437 | * to be treated as Color Key, inclusive |
| 438 | */ |
| 439 | } DDCOLORKEY,*LPDDCOLORKEY; |
| 440 | |
| 441 | /* ddCKEYCAPS bits */ |
| 442 | #define DDCKEYCAPS_DESTBLT 0x00000001 |
| 443 | #define DDCKEYCAPS_DESTBLTCLRSPACE 0x00000002 |
| 444 | #define DDCKEYCAPS_DESTBLTCLRSPACEYUV 0x00000004 |
| 445 | #define DDCKEYCAPS_DESTBLTYUV 0x00000008 |
| 446 | #define DDCKEYCAPS_DESTOVERLAY 0x00000010 |
| 447 | #define DDCKEYCAPS_DESTOVERLAYCLRSPACE 0x00000020 |
| 448 | #define DDCKEYCAPS_DESTOVERLAYCLRSPACEYUV 0x00000040 |
| 449 | #define DDCKEYCAPS_DESTOVERLAYONEACTIVE 0x00000080 |
| 450 | #define DDCKEYCAPS_DESTOVERLAYYUV 0x00000100 |
| 451 | #define DDCKEYCAPS_SRCBLT 0x00000200 |
| 452 | #define DDCKEYCAPS_SRCBLTCLRSPACE 0x00000400 |
| 453 | #define DDCKEYCAPS_SRCBLTCLRSPACEYUV 0x00000800 |
| 454 | #define DDCKEYCAPS_SRCBLTYUV 0x00001000 |
| 455 | #define DDCKEYCAPS_SRCOVERLAY 0x00002000 |
| 456 | #define DDCKEYCAPS_SRCOVERLAYCLRSPACE 0x00004000 |
| 457 | #define DDCKEYCAPS_SRCOVERLAYCLRSPACEYUV 0x00008000 |
| 458 | #define DDCKEYCAPS_SRCOVERLAYONEACTIVE 0x00010000 |
| 459 | #define DDCKEYCAPS_SRCOVERLAYYUV 0x00020000 |
| 460 | #define DDCKEYCAPS_NOCOSTOVERLAY 0x00040000 |
| 461 | |
| 462 | typedef struct _DDPIXELFORMAT { |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 463 | DWORD dwSize; /* 0: size of structure */ |
| 464 | DWORD dwFlags; /* 4: pixel format flags */ |
| 465 | DWORD dwFourCC; /* 8: (FOURCC code) */ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 466 | union { |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 467 | DWORD dwRGBBitCount; /* C: how many bits per pixel */ |
| 468 | DWORD dwYUVBitCount; /* C: how many bits per pixel */ |
| 469 | DWORD dwZBufferBitDepth; /* C: how many bits for z buffers */ |
| 470 | DWORD dwAlphaBitDepth; /* C: how many bits for alpha channels*/ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 471 | } x; |
| 472 | union { |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 473 | DWORD dwRBitMask; /* 10: mask for red bit*/ |
| 474 | DWORD dwYBitMask; /* 10: mask for Y bits*/ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 475 | } y; |
| 476 | union { |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 477 | DWORD dwGBitMask; /* 14: mask for green bits*/ |
| 478 | DWORD dwUBitMask; /* 14: mask for U bits*/ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 479 | } z; |
| 480 | union { |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 481 | DWORD dwBBitMask; /* 18: mask for blue bits*/ |
| 482 | DWORD dwVBitMask; /* 18: mask for V bits*/ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 483 | } xx; |
| 484 | union { |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 485 | DWORD dwRGBAlphaBitMask; /* 1C: mask for alpha channel */ |
| 486 | DWORD dwYUVAlphaBitMask; /* 1C: mask for alpha channel */ |
| 487 | DWORD dwRGBZBitMask; /* 1C: mask for Z channel */ |
| 488 | DWORD dwYUVZBitMask; /* 1C: mask for Z channel */ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 489 | } xy; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 490 | /* 20: next structure */ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 491 | } DDPIXELFORMAT,*LPDDPIXELFORMAT; |
| 492 | |
| 493 | /* DDCAPS.dwFXCaps */ |
| 494 | #define DDFXCAPS_BLTARITHSTRETCHY 0x00000020 |
| 495 | #define DDFXCAPS_BLTARITHSTRETCHYN 0x00000010 |
| 496 | #define DDFXCAPS_BLTMIRRORLEFTRIGHT 0x00000040 |
| 497 | #define DDFXCAPS_BLTMIRRORUPDOWN 0x00000080 |
| 498 | #define DDFXCAPS_BLTROTATION 0x00000100 |
| 499 | #define DDFXCAPS_BLTROTATION90 0x00000200 |
| 500 | #define DDFXCAPS_BLTSHRINKX 0x00000400 |
| 501 | #define DDFXCAPS_BLTSHRINKXN 0x00000800 |
| 502 | #define DDFXCAPS_BLTSHRINKY 0x00001000 |
| 503 | #define DDFXCAPS_BLTSHRINKYN 0x00002000 |
| 504 | #define DDFXCAPS_BLTSTRETCHX 0x00004000 |
| 505 | #define DDFXCAPS_BLTSTRETCHXN 0x00008000 |
| 506 | #define DDFXCAPS_BLTSTRETCHY 0x00010000 |
| 507 | #define DDFXCAPS_BLTSTRETCHYN 0x00020000 |
| 508 | #define DDFXCAPS_OVERLAYARITHSTRETCHY 0x00040000 |
| 509 | #define DDFXCAPS_OVERLAYARITHSTRETCHYN 0x00000008 |
| 510 | #define DDFXCAPS_OVERLAYSHRINKX 0x00080000 |
| 511 | #define DDFXCAPS_OVERLAYSHRINKXN 0x00100000 |
| 512 | #define DDFXCAPS_OVERLAYSHRINKY 0x00200000 |
| 513 | #define DDFXCAPS_OVERLAYSHRINKYN 0x00400000 |
| 514 | #define DDFXCAPS_OVERLAYSTRETCHX 0x00800000 |
| 515 | #define DDFXCAPS_OVERLAYSTRETCHXN 0x01000000 |
| 516 | #define DDFXCAPS_OVERLAYSTRETCHY 0x02000000 |
| 517 | #define DDFXCAPS_OVERLAYSTRETCHYN 0x04000000 |
| 518 | #define DDFXCAPS_OVERLAYMIRRORLEFTRIGHT 0x08000000 |
| 519 | #define DDFXCAPS_OVERLAYMIRRORUPDOWN 0x10000000 |
| 520 | |
| 521 | /* DDCAPS.dwFXAlphaCaps */ |
| 522 | #define DDFXALPHACAPS_BLTALPHAEDGEBLEND 0x00000001 |
| 523 | #define DDFXALPHACAPS_BLTALPHAPIXELS 0x00000002 |
| 524 | #define DDFXALPHACAPS_BLTALPHAPIXELSNEG 0x00000004 |
| 525 | #define DDFXALPHACAPS_BLTALPHASURFACES 0x00000008 |
| 526 | #define DDFXALPHACAPS_BLTALPHASURFACESNEG 0x00000010 |
| 527 | #define DDFXALPHACAPS_OVERLAYALPHAEDGEBLEND 0x00000020 |
| 528 | #define DDFXALPHACAPS_OVERLAYALPHAPIXELS 0x00000040 |
| 529 | #define DDFXALPHACAPS_OVERLAYALPHAPIXELSNEG 0x00000080 |
| 530 | #define DDFXALPHACAPS_OVERLAYALPHASURFACES 0x00000100 |
| 531 | #define DDFXALPHACAPS_OVERLAYALPHASURFACESNEG 0x00000200 |
| 532 | |
| 533 | /* DDCAPS.dwPalCaps */ |
| 534 | #define DDPCAPS_4BIT 0x00000001 |
| 535 | #define DDPCAPS_8BITENTRIES 0x00000002 |
| 536 | #define DDPCAPS_8BIT 0x00000004 |
| 537 | #define DDPCAPS_INITIALIZE 0x00000008 |
| 538 | #define DDPCAPS_PRIMARYSURFACE 0x00000010 |
| 539 | #define DDPCAPS_PRIMARYSURFACELEFT 0x00000020 |
| 540 | #define DDPCAPS_ALLOW256 0x00000040 |
| 541 | #define DDPCAPS_VSYNC 0x00000080 |
| 542 | #define DDPCAPS_1BIT 0x00000100 |
| 543 | #define DDPCAPS_2BIT 0x00000200 |
| 544 | |
| 545 | /* DDCAPS.dwSVCaps */ |
| 546 | #define DDSVCAPS_ENIGMA 0x00000001l |
| 547 | #define DDSVCAPS_FLICKER 0x00000002l |
| 548 | #define DDSVCAPS_REDBLUE 0x00000004l |
| 549 | #define DDSVCAPS_SPLIT 0x00000008l |
| 550 | |
| 551 | /* BitDepths */ |
| 552 | #define DDBD_1 0x00004000 |
| 553 | #define DDBD_2 0x00002000 |
| 554 | #define DDBD_4 0x00001000 |
| 555 | #define DDBD_8 0x00000800 |
| 556 | #define DDBD_16 0x00000400 |
| 557 | #define DDBD_24 0x00000200 |
| 558 | #define DDBD_32 0x00000100 |
| 559 | |
| 560 | /* DDOVERLAYFX.dwDDFX */ |
| 561 | #define DDOVERFX_ARITHSTRETCHY 0x00000001 |
| 562 | #define DDOVERFX_MIRRORLEFTRIGHT 0x00000002 |
| 563 | #define DDOVERFX_MIRRORUPDOWN 0x00000004 |
| 564 | |
| 565 | /* DDCOLORKEY.dwFlags */ |
| 566 | #define DDPF_ALPHAPIXELS 0x00000001 |
| 567 | #define DDPF_ALPHA 0x00000002 |
| 568 | #define DDPF_FOURCC 0x00000004 |
| 569 | #define DDPF_PALETTEINDEXED4 0x00000008 |
| 570 | #define DDPF_PALETTEINDEXEDTO8 0x00000010 |
| 571 | #define DDPF_PALETTEINDEXED8 0x00000020 |
| 572 | #define DDPF_RGB 0x00000040 |
| 573 | #define DDPF_COMPRESSED 0x00000080 |
| 574 | #define DDPF_RGBTOYUV 0x00000100 |
| 575 | #define DDPF_YUV 0x00000200 |
| 576 | #define DDPF_ZBUFFER 0x00000400 |
| 577 | #define DDPF_PALETTEINDEXED1 0x00000800 |
| 578 | #define DDPF_PALETTEINDEXED2 0x00001000 |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 579 | #define DDPF_ZPIXELS 0x00002000 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 580 | |
| 581 | /* SetCooperativeLevel dwFlags */ |
| 582 | #define DDSCL_FULLSCREEN 0x00000001 |
| 583 | #define DDSCL_ALLOWREBOOT 0x00000002 |
| 584 | #define DDSCL_NOWINDOWCHANGES 0x00000004 |
| 585 | #define DDSCL_NORMAL 0x00000008 |
| 586 | #define DDSCL_EXCLUSIVE 0x00000010 |
| 587 | #define DDSCL_ALLOWMODEX 0x00000040 |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 588 | #define DDSCL_SETFOCUSWINDOW 0x00000080 |
| 589 | #define DDSCL_SETDEVICEWINDOW 0x00000100 |
| 590 | #define DDSCL_CREATEDEVICEWINDOW 0x00000200 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 591 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 592 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 593 | /* DDSURFACEDESC.dwFlags */ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 594 | #define DDSD_CAPS 0x00000001 |
| 595 | #define DDSD_HEIGHT 0x00000002 |
| 596 | #define DDSD_WIDTH 0x00000004 |
| 597 | #define DDSD_PITCH 0x00000008 |
| 598 | #define DDSD_BACKBUFFERCOUNT 0x00000020 |
| 599 | #define DDSD_ZBUFFERBITDEPTH 0x00000040 |
| 600 | #define DDSD_ALPHABITDEPTH 0x00000080 |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 601 | #define DDSD_LPSURFACE 0x00000800 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 602 | #define DDSD_PIXELFORMAT 0x00001000 |
| 603 | #define DDSD_CKDESTOVERLAY 0x00002000 |
| 604 | #define DDSD_CKDESTBLT 0x00004000 |
| 605 | #define DDSD_CKSRCOVERLAY 0x00008000 |
| 606 | #define DDSD_CKSRCBLT 0x00010000 |
| 607 | #define DDSD_MIPMAPCOUNT 0x00020000 |
| 608 | #define DDSD_REFRESHRATE 0x00040000 |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 609 | #define DDSD_LINEARSIZE 0x00080000 |
| 610 | #define DDSD_ALL 0x000ff9ee |
| 611 | |
| 612 | /* SetDisplayMode flags */ |
| 613 | #define DDSDM_STANDARDVGAMODE 0x00000001 |
| 614 | |
| 615 | /* EnumDisplayModes flags */ |
| 616 | #define DDEDM_REFRESHRATES 0x00000001 |
| 617 | #define DDEDM_STANDARDVGAMODES 0x00000002 |
| 618 | |
| 619 | |
| 620 | typedef struct _DDSURFACEDESC |
| 621 | { |
| 622 | DWORD dwSize; /* 0: size of the DDSURFACEDESC structure*/ |
| 623 | DWORD dwFlags; /* 4: determines what fields are valid*/ |
| 624 | DWORD dwHeight; /* 8: height of surface to be created*/ |
| 625 | DWORD dwWidth; /* C: width of input surface*/ |
| 626 | LONG lPitch; /*10: distance to start of next line (return value only)*/ |
| 627 | DWORD dwBackBufferCount;/* 14: number of back buffers requested*/ |
| 628 | union { |
| 629 | DWORD dwMipMapCount;/* 18:number of mip-map levels requested*/ |
| 630 | DWORD dwZBufferBitDepth;/*18: depth of Z buffer requested*/ |
| 631 | DWORD dwRefreshRate;/* 18:refresh rate (used when display mode is described)*/ |
| 632 | } x; |
| 633 | DWORD dwAlphaBitDepth;/* 1C:depth of alpha buffer requested*/ |
| 634 | DWORD dwReserved; /* 20:reserved*/ |
| 635 | union { |
| 636 | LPVOID lpSurface; /* 24:pointer to the associated surface memory*/ |
| 637 | DWORD dwLinearSize; /* 24:Formless late-allocated optimized surface size*/ |
| 638 | } y; |
| 639 | DDCOLORKEY ddckCKDestOverlay;/* 28: CK for dest overlay use*/ |
| 640 | DDCOLORKEY ddckCKDestBlt; /* 30: CK for destination blt use*/ |
| 641 | DDCOLORKEY ddckCKSrcOverlay;/* 38: CK for source overlay use*/ |
| 642 | DDCOLORKEY ddckCKSrcBlt; /* 40: CK for source blt use*/ |
| 643 | DDPIXELFORMAT ddpfPixelFormat;/* 48: pixel format description of the surface*/ |
| 644 | DDSCAPS ddsCaps; /* 68: direct draw surface caps */ |
| 645 | } DDSURFACEDESC,*LPDDSURFACEDESC; |
| 646 | |
| 647 | /* DDCOLORCONTROL.dwFlags */ |
| 648 | #define DDCOLOR_BRIGHTNESS 0x00000001 |
| 649 | #define DDCOLOR_CONTRAST 0x00000002 |
| 650 | #define DDCOLOR_HUE 0x00000004 |
| 651 | #define DDCOLOR_SATURATION 0x00000008 |
| 652 | #define DDCOLOR_SHARPNESS 0x00000010 |
| 653 | #define DDCOLOR_GAMMA 0x00000020 |
| 654 | #define DDCOLOR_COLORENABLE 0x00000040 |
| 655 | |
| 656 | typedef struct { |
| 657 | DWORD dwSize; |
| 658 | DWORD dwFlags; |
| 659 | LONG lBrightness; |
| 660 | LONG lContrast; |
| 661 | LONG lHue; |
| 662 | LONG lSaturation; |
| 663 | LONG lSharpness; |
| 664 | LONG lGamma; |
| 665 | LONG lColorEnable; |
| 666 | DWORD dwReserved1; |
| 667 | } DDCOLORCONTROL,*LPDDCOLORCONTROL; |
| 668 | |
| 669 | typedef BOOL32 (CALLBACK * LPDDENUMCALLBACK32A)(GUID *, LPSTR, LPSTR, LPVOID); |
| 670 | typedef BOOL32 (CALLBACK * LPDDENUMCALLBACK32W)(GUID *, LPWSTR, LPWSTR, LPVOID); |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 671 | DECL_WINELIB_TYPE_AW(LPDDENUMCALLBACK) |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 672 | |
| 673 | typedef HRESULT (CALLBACK * LPDDENUMMODESCALLBACK)(LPDDSURFACEDESC, LPVOID); |
| 674 | typedef HRESULT (CALLBACK * LPDDENUMSURFACESCALLBACK)(LPDIRECTDRAWSURFACE, LPDDSURFACEDESC, LPVOID); |
| 675 | |
| 676 | typedef HANDLE32 HMONITOR; |
| 677 | typedef BOOL32 (CALLBACK * LPDDENUMCALLBACKEX32A)(GUID *, LPSTR, LPSTR, LPVOID, HMONITOR); |
| 678 | typedef BOOL32 (CALLBACK * LPDDENUMCALLBACKEX32W)(GUID *, LPWSTR, LPWSTR, LPVOID, HMONITOR); |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 679 | DECL_WINELIB_TYPE_AW(LPDDENUMCALLBACKEX) |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 680 | |
| 681 | HRESULT WINAPI DirectDrawEnumerateExA( LPDDENUMCALLBACKEX32A lpCallback, LPVOID lpContext, DWORD dwFlags); |
| 682 | HRESULT WINAPI DirectDrawEnumerateExW( LPDDENUMCALLBACKEX32W lpCallback, LPVOID lpContext, DWORD dwFlags); |
| 683 | |
| 684 | /* flags for DirectDrawEnumerateEx */ |
| 685 | #define DDENUM_ATTACHEDSECONDARYDEVICES 0x00000001 |
| 686 | #define DDENUM_DETACHEDSECONDARYDEVICES 0x00000002 |
| 687 | #define DDENUM_NONDISPLAYDEVICES 0x00000004 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 688 | |
| 689 | typedef struct _DDBLTFX |
| 690 | { |
| 691 | DWORD dwSize; /* size of structure */ |
| 692 | DWORD dwDDFX; /* FX operations */ |
| 693 | DWORD dwROP; /* Win32 raster operations */ |
| 694 | DWORD dwDDROP; /* Raster operations new for DirectDraw */ |
| 695 | DWORD dwRotationAngle; /* Rotation angle for blt */ |
| 696 | DWORD dwZBufferOpCode; /* ZBuffer compares */ |
| 697 | DWORD dwZBufferLow; /* Low limit of Z buffer */ |
| 698 | DWORD dwZBufferHigh; /* High limit of Z buffer */ |
| 699 | DWORD dwZBufferBaseDest; /* Destination base value */ |
| 700 | DWORD dwZDestConstBitDepth; /* Bit depth used to specify Z constant for destination */ |
| 701 | union |
| 702 | { |
| 703 | DWORD dwZDestConst; /* Constant to use as Z buffer for dest */ |
| 704 | LPDIRECTDRAWSURFACE lpDDSZBufferDest; /* Surface to use as Z buffer for dest */ |
| 705 | } x; |
| 706 | DWORD dwZSrcConstBitDepth; /* Bit depth used to specify Z constant for source */ |
| 707 | union |
| 708 | { |
| 709 | DWORD dwZSrcConst; /* Constant to use as Z buffer for src */ |
| 710 | LPDIRECTDRAWSURFACE lpDDSZBufferSrc; /* Surface to use as Z buffer for src */ |
| 711 | } y; |
| 712 | DWORD dwAlphaEdgeBlendBitDepth; /* Bit depth used to specify constant for alpha edge blend */ |
| 713 | DWORD dwAlphaEdgeBlend; /* Alpha for edge blending */ |
| 714 | DWORD dwReserved; |
| 715 | DWORD dwAlphaDestConstBitDepth; /* Bit depth used to specify alpha constant for destination */ |
| 716 | union |
| 717 | { |
| 718 | DWORD dwAlphaDestConst; /* Constant to use as Alpha Channel */ |
| 719 | LPDIRECTDRAWSURFACE lpDDSAlphaDest; /* Surface to use as Alpha Channel */ |
| 720 | } z; |
| 721 | DWORD dwAlphaSrcConstBitDepth; /* Bit depth used to specify alpha constant for source */ |
| 722 | union |
| 723 | { |
| 724 | DWORD dwAlphaSrcConst; /* Constant to use as Alpha Channel */ |
| 725 | LPDIRECTDRAWSURFACE lpDDSAlphaSrc; /* Surface to use as Alpha Channel */ |
| 726 | } a; |
| 727 | union |
| 728 | { |
| 729 | DWORD dwFillColor; /* color in RGB or Palettized */ |
| 730 | DWORD dwFillDepth; /* depth value for z-buffer */ |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 731 | DWORD dwFillPixel; /* pixel val for RGBA or RGBZ */ |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 732 | LPDIRECTDRAWSURFACE lpDDSPattern; /* Surface to use as pattern */ |
| 733 | } b; |
| 734 | DDCOLORKEY ddckDestColorkey; /* DestColorkey override */ |
| 735 | DDCOLORKEY ddckSrcColorkey; /* SrcColorkey override */ |
| 736 | } DDBLTFX,*LPDDBLTFX; |
| 737 | |
| 738 | /* dwDDFX */ |
| 739 | /* arithmetic stretching along y axis */ |
| 740 | #define DDBLTFX_ARITHSTRETCHY 0x00000001 |
| 741 | /* mirror on y axis */ |
| 742 | #define DDBLTFX_MIRRORLEFTRIGHT 0x00000002 |
| 743 | /* mirror on x axis */ |
| 744 | #define DDBLTFX_MIRRORUPDOWN 0x00000004 |
| 745 | /* do not tear */ |
| 746 | #define DDBLTFX_NOTEARING 0x00000008 |
| 747 | /* 180 degrees clockwise rotation */ |
| 748 | #define DDBLTFX_ROTATE180 0x00000010 |
| 749 | /* 270 degrees clockwise rotation */ |
| 750 | #define DDBLTFX_ROTATE270 0x00000020 |
| 751 | /* 90 degrees clockwise rotation */ |
| 752 | #define DDBLTFX_ROTATE90 0x00000040 |
| 753 | /* dwZBufferLow and dwZBufferHigh specify limits to the copied Z values */ |
| 754 | #define DDBLTFX_ZBUFFERRANGE 0x00000080 |
| 755 | /* add dwZBufferBaseDest to every source z value before compare */ |
| 756 | #define DDBLTFX_ZBUFFERBASEDEST 0x00000100 |
| 757 | |
| 758 | typedef struct _DDOVERLAYFX |
| 759 | { |
| 760 | DWORD dwSize; /* size of structure */ |
| 761 | DWORD dwAlphaEdgeBlendBitDepth; /* Bit depth used to specify constant for alpha edge blend */ |
| 762 | DWORD dwAlphaEdgeBlend; /* Constant to use as alpha for edge blend */ |
| 763 | DWORD dwReserved; |
| 764 | DWORD dwAlphaDestConstBitDepth; /* Bit depth used to specify alpha constant for destination */ |
| 765 | union |
| 766 | { |
| 767 | DWORD dwAlphaDestConst; /* Constant to use as alpha channel for dest */ |
| 768 | LPDIRECTDRAWSURFACE lpDDSAlphaDest; /* Surface to use as alpha channel for dest */ |
| 769 | } x; |
| 770 | DWORD dwAlphaSrcConstBitDepth; /* Bit depth used to specify alpha constant for source */ |
| 771 | union |
| 772 | { |
| 773 | DWORD dwAlphaSrcConst; /* Constant to use as alpha channel for src */ |
| 774 | LPDIRECTDRAWSURFACE lpDDSAlphaSrc; /* Surface to use as alpha channel for src */ |
| 775 | } y; |
| 776 | DDCOLORKEY dckDestColorkey; /* DestColorkey override */ |
| 777 | DDCOLORKEY dckSrcColorkey; /* DestColorkey override */ |
| 778 | DWORD dwDDFX; /* Overlay FX */ |
| 779 | DWORD dwFlags; /* flags */ |
| 780 | } DDOVERLAYFX,*LPDDOVERLAYFX; |
| 781 | |
| 782 | typedef struct _DDBLTBATCH |
| 783 | { |
| 784 | LPRECT32 lprDest; |
| 785 | LPDIRECTDRAWSURFACE lpDDSSrc; |
| 786 | LPRECT32 lprSrc; |
| 787 | DWORD dwFlags; |
| 788 | LPDDBLTFX lpDDBltFx; |
| 789 | } DDBLTBATCH,*LPDDBLTBATCH; |
| 790 | |
| 791 | #define STDMETHOD(xfn) HRESULT (CALLBACK *fn##xfn) |
| 792 | #define STDMETHOD_(ret,xfn) ret (CALLBACK *fn##xfn) |
| 793 | #define PURE |
| 794 | #define FAR |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 795 | #define THIS_ THIS , |
| 796 | |
| 797 | #define THIS LPDIRECTDRAWPALETTE this |
| 798 | |
| 799 | typedef struct IDirectDrawPalette_VTable { |
| 800 | /*** IUnknown methods ***/ |
| 801 | STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; |
| 802 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
| 803 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
| 804 | /*** IDirectDrawPalette methods ***/ |
| 805 | STDMETHOD(GetCaps)(THIS_ LPDWORD) PURE; |
| 806 | STDMETHOD(GetEntries)(THIS_ DWORD,DWORD,DWORD,LPPALETTEENTRY) PURE; |
| 807 | STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, DWORD, LPPALETTEENTRY) PURE; |
| 808 | STDMETHOD(SetEntries)(THIS_ DWORD,DWORD,DWORD,LPPALETTEENTRY) PURE; |
| 809 | } *LPDIRECTDRAWPALETTE_VTABLE,IDirectDrawPalette_VTable; |
| 810 | |
| 811 | struct IDirectDrawPalette { |
| 812 | LPDIRECTDRAWPALETTE_VTABLE lpvtbl; |
| 813 | DWORD ref; |
| 814 | LPDIRECTDRAW ddraw; |
| 815 | Colormap cm; |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 816 | PALETTEENTRY palents[256]; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 817 | }; |
| 818 | #undef THIS |
| 819 | |
| 820 | #define THIS LPDIRECTDRAWCLIPPER this |
| 821 | typedef struct IDirectDrawClipper_VTable { |
| 822 | /*** IUnknown methods ***/ |
| 823 | STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; |
| 824 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
| 825 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
| 826 | /*** IDirectDrawClipper methods ***/ |
| 827 | STDMETHOD(GetClipList)(THIS_ LPRECT32, LPRGNDATA, LPDWORD) PURE; |
| 828 | STDMETHOD(GetHWnd)(THIS_ HWND32 FAR *) PURE; |
| 829 | STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, DWORD) PURE; |
| 830 | STDMETHOD(IsClipListChanged)(THIS_ BOOL32 FAR *) PURE; |
| 831 | STDMETHOD(SetClipList)(THIS_ LPRGNDATA,DWORD) PURE; |
| 832 | STDMETHOD(SetHWnd)(THIS_ DWORD, HWND32 ) PURE; |
| 833 | } *LPDIRECTDRAWCLIPPER_VTABLE,IDirectDrawClipper_VTable; |
| 834 | |
| 835 | struct IDirectDrawClipper { |
| 836 | LPDIRECTDRAWCLIPPER_VTABLE lpvtbl; |
| 837 | DWORD ref; |
| 838 | }; |
| 839 | #undef THIS |
| 840 | |
| 841 | #define THIS LPDIRECTDRAW this |
| 842 | typedef struct IDirectDraw_VTable { |
| 843 | /*** IUnknown methods ***/ |
| 844 | STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; |
| 845 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
| 846 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
| 847 | /*** IDirectDraw methods ***/ |
| 848 | STDMETHOD(Compact)(THIS) PURE; |
| 849 | STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE; |
| 850 | STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE; |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 851 | STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC, LPDIRECTDRAWSURFACE FAR *, |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 852 | IUnknown FAR *) PURE; |
| 853 | STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE, LPDIRECTDRAWSURFACE |
| 854 | FAR * ) PURE; |
| 855 | STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC, LPVOID, LPDDENUMMODESCALLBACK ) PURE; |
| 856 | STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC, LPVOID,LPDDENUMSURFACESCALLBACK ) PURE; |
| 857 | STDMETHOD(FlipToGDISurface)(THIS) PURE; |
| 858 | STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE; |
| 859 | STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC) PURE; |
| 860 | STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE; |
| 861 | STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE FAR *) PURE; |
| 862 | STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE; |
| 863 | STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE; |
| 864 | STDMETHOD(GetVerticalBlankStatus)(THIS_ BOOL32* ) PURE; |
| 865 | STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE; |
| 866 | STDMETHOD(RestoreDisplayMode)(THIS) PURE; |
| 867 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND32, DWORD) PURE; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 868 | STDMETHOD(SetDisplayMode)(THIS_ DWORD , DWORD ,DWORD ) PURE; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 869 | STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE32 ) PURE; |
| 870 | } *LPDIRECTDRAW_VTABLE,IDirectDraw_VTable; |
| 871 | |
| 872 | struct _directdrawdata { |
| 873 | DWORD depth; |
| 874 | DWORD vp_width,vp_height; /* viewport dimension */ |
| 875 | DWORD height,width; /* SetDisplayMode */ |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 876 | DWORD fb_width,fb_height,fb_banksize,fb_memsize; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 877 | HWND32 mainwindow; |
| 878 | void *fb_addr; |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 879 | unsigned int vpmask; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 880 | }; |
| 881 | |
| 882 | |
| 883 | struct IDirectDraw { |
| 884 | LPDIRECTDRAW_VTABLE lpvtbl; |
| 885 | DWORD ref; |
| 886 | struct _directdrawdata d; |
| 887 | }; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 888 | #undef THIS |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 889 | |
| 890 | /* flags for Lock() */ |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 891 | #define DDLOCK_SURFACEMEMORYPTR 0x00000000 |
| 892 | #define DDLOCK_WAIT 0x00000001 |
| 893 | #define DDLOCK_EVENT 0x00000002 |
| 894 | #define DDLOCK_READONLY 0x00000010 |
| 895 | #define DDLOCK_WRITEONLY 0x00000020 |
| 896 | #define DDLOCK_NOSYSLOCK 0x00000800 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 897 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 898 | |
| 899 | #define THIS LPDIRECTDRAW2 this |
| 900 | typedef struct IDirectDraw2_VTable |
| 901 | { |
| 902 | /*** IUnknown methods ***/ |
| 903 | STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; |
| 904 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
| 905 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
| 906 | /*** IDirectDraw methods ***/ |
| 907 | STDMETHOD(Compact)(THIS) PURE; |
| 908 | STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE; |
| 909 | STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE; |
| 910 | STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC, LPDIRECTDRAWSURFACE FAR *, |
| 911 | IUnknown FAR *) PURE; |
| 912 | STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE, LPDIRECTDRAWSURFACE |
| 913 | FAR * ) PURE; |
| 914 | STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC, LPVOID, LPDDENUMMODESCALLBACK ) PURE; |
| 915 | STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC, LPVOID,LPDDENUMSURFACESCALLBACK ) PURE; |
| 916 | STDMETHOD(FlipToGDISurface)(THIS) PURE; |
| 917 | STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE; |
| 918 | STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC) PURE; |
| 919 | STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE; |
| 920 | STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE FAR *) PURE; |
| 921 | STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE; |
| 922 | STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE; |
| 923 | STDMETHOD(GetVerticalBlankStatus)(THIS_ BOOL32* ) PURE; |
| 924 | STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE; |
| 925 | STDMETHOD(RestoreDisplayMode)(THIS) PURE; |
| 926 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND32, DWORD) PURE; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 927 | STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD, DWORD, DWORD, DWORD) PURE; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 928 | STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE32 ) PURE; |
| 929 | /*** Added in the v2 interface ***/ |
| 930 | STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS, LPDWORD, LPDWORD) PURE; |
| 931 | } IDirectDraw2_VTable,*LPDIRECTDRAW2_VTABLE; |
| 932 | /* MUST HAVE THE SAME LAYOUT AS struct IDirectDraw */ |
| 933 | |
| 934 | struct IDirectDraw2 { |
| 935 | LPDIRECTDRAW2_VTABLE lpvtbl; |
| 936 | DWORD ref; |
| 937 | struct _directdrawdata d; |
| 938 | }; |
| 939 | #undef THIS |
| 940 | |
| 941 | #define THIS LPDIRECTDRAWSURFACE this |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 942 | struct _directdrawsurface { |
| 943 | LPVOID surface; |
| 944 | LPDIRECTDRAWPALETTE palette; |
| 945 | DWORD fb_height,lpitch,width,height; |
| 946 | LPDIRECTDRAW ddraw; |
| 947 | LPDIRECTDRAWSURFACE backbuffer; |
| 948 | }; |
| 949 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 950 | typedef struct IDirectDrawSurface_VTable { |
| 951 | /*** IUnknown methods ***/ |
| 952 | STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; |
| 953 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
| 954 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
| 955 | /*** IDirectDrawSurface methods ***/ |
| 956 | STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE) PURE; |
| 957 | STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT32) PURE; |
| 958 | STDMETHOD(Blt)(THIS_ LPRECT32,LPDIRECTDRAWSURFACE, LPRECT32,DWORD, LPDDBLTFX) PURE; |
| 959 | STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; |
| 960 | STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE, LPRECT32,DWORD) PURE; |
| 961 | STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE) PURE; |
| 962 | STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE; STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE; |
| 963 | STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE; |
| 964 | STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE FAR *) PURE; |
| 965 | STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; |
| 966 | STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE; |
| 967 | STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; |
| 968 | STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; |
| 969 | STDMETHOD(GetDC)(THIS_ HDC32 FAR *) PURE; |
| 970 | STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; |
| 971 | STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; |
| 972 | STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; |
| 973 | STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; |
| 974 | STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE; |
| 975 | STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE; |
| 976 | STDMETHOD(IsLost)(THIS) PURE; |
| 977 | STDMETHOD(Lock)(THIS_ LPRECT32,LPDDSURFACEDESC,DWORD flags,HANDLE32) PURE; |
| 978 | STDMETHOD(ReleaseDC)(THIS_ HDC32) PURE; |
| 979 | STDMETHOD(Restore)(THIS) PURE; |
| 980 | STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; |
| 981 | STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; |
| 982 | STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; |
| 983 | STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; |
| 984 | STDMETHOD(Unlock)(THIS_ LPVOID) PURE; |
| 985 | STDMETHOD(UpdateOverlay)(THIS_ LPRECT32, LPDIRECTDRAWSURFACE,LPRECT32,DWORD, LPDDOVERLAYFX) PURE; |
| 986 | STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; |
| 987 | STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE) PURE; |
| 988 | } *LPDIRECTDRAWSURFACE_VTABLE,IDirectDrawSurface_VTable; |
| 989 | |
| 990 | struct IDirectDrawSurface { |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 991 | LPDIRECTDRAWSURFACE_VTABLE lpvtbl; |
| 992 | DWORD ref; |
| 993 | struct _directdrawsurface s; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 994 | }; |
| 995 | #undef THIS |
| 996 | #define THIS LPDIRECTDRAWSURFACE2 this |
| 997 | |
| 998 | typedef struct IDirectDrawSurface2_VTable { |
| 999 | /*** IUnknown methods ***/ |
| 1000 | STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; |
| 1001 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
| 1002 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
| 1003 | /*** IDirectDrawSurface methods ***/ |
| 1004 | STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE2) PURE; |
| 1005 | STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT32) PURE; |
| 1006 | STDMETHOD(Blt)(THIS_ LPRECT32,LPDIRECTDRAWSURFACE2, LPRECT32,DWORD, LPDDBLTFX) PURE; |
| 1007 | STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; |
| 1008 | STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE2, LPRECT32,DWORD) PURE; |
| 1009 | STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE2) PURE; |
| 1010 | STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE; STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE; |
| 1011 | STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE2, DWORD) PURE; |
| 1012 | STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE2 FAR *) PURE; |
| 1013 | STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; |
| 1014 | STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE; |
| 1015 | STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; |
| 1016 | STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; |
| 1017 | STDMETHOD(GetDC)(THIS_ HDC32 FAR *) PURE; |
| 1018 | STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; |
| 1019 | STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; |
| 1020 | STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; |
| 1021 | STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; |
| 1022 | STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE; |
| 1023 | STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE; |
| 1024 | STDMETHOD(IsLost)(THIS) PURE; |
| 1025 | STDMETHOD(Lock)(THIS_ LPRECT32,LPDDSURFACEDESC,DWORD,HANDLE32) PURE; |
| 1026 | STDMETHOD(ReleaseDC)(THIS_ HDC32) PURE; |
| 1027 | STDMETHOD(Restore)(THIS) PURE; |
| 1028 | STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; |
| 1029 | STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; |
| 1030 | STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; |
| 1031 | STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; |
| 1032 | STDMETHOD(Unlock)(THIS_ LPVOID) PURE; |
| 1033 | STDMETHOD(UpdateOverlay)(THIS_ LPRECT32, LPDIRECTDRAWSURFACE2,LPRECT32,DWORD, LPDDOVERLAYFX) PURE; |
| 1034 | STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; |
| 1035 | STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE2) PURE; |
| 1036 | /*** Added in the v2 interface ***/ |
| 1037 | STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE; |
| 1038 | STDMETHOD(PageLock)(THIS_ DWORD) PURE; |
| 1039 | STDMETHOD(PageUnlock)(THIS_ DWORD) PURE; |
| 1040 | } *LPDIRECTDRAWSURFACE2_VTABLE,IDirectDrawSurface2_VTable; |
| 1041 | |
| 1042 | struct IDirectDrawSurface2 { |
| 1043 | LPDIRECTDRAWSURFACE2_VTABLE lpvtbl; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 1044 | DWORD ref; |
| 1045 | struct _directdrawsurface s; |
| 1046 | }; |
| 1047 | #undef THIS |
| 1048 | #define THIS LPDIRECTDRAWSURFACE3 this |
| 1049 | |
| 1050 | typedef struct IDirectDrawSurface3_VTable { |
| 1051 | /*** IUnknown methods ***/ |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 1052 | /*00*/STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; |
| 1053 | /*04*/STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
| 1054 | /*08*/STDMETHOD_(ULONG,Release) (THIS) PURE; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 1055 | /*** IDirectDrawSurface methods ***/ |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 1056 | /*0c*/STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE3) PURE; |
| 1057 | /*10*/STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT32) PURE; |
| 1058 | /*14*/STDMETHOD(Blt)(THIS_ LPRECT32,LPDIRECTDRAWSURFACE3, LPRECT32,DWORD, LPDDBLTFX) PURE; |
| 1059 | /*18*/STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; |
| 1060 | /*1c*/STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE3, LPRECT32,DWORD) PURE; |
| 1061 | /*20*/STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE3) PURE; |
| 1062 | /*24*/STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE; |
| 1063 | /*28*/STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE; |
| 1064 | /*2c*/STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE3, DWORD) PURE; |
| 1065 | /*30*/STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE3 FAR *) PURE; |
| 1066 | /*34*/STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; |
| 1067 | /*38*/STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE; |
| 1068 | /*3c*/STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; |
| 1069 | /*40*/STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; |
| 1070 | /*44*/STDMETHOD(GetDC)(THIS_ HDC32 FAR *) PURE; |
| 1071 | /*48*/STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; |
| 1072 | /*4c*/STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; |
| 1073 | /*50*/STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; |
| 1074 | /*54*/STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; |
| 1075 | /*58*/STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE; |
| 1076 | /*5c*/STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE; |
| 1077 | /*60*/STDMETHOD(IsLost)(THIS) PURE; |
| 1078 | /*64*/STDMETHOD(Lock)(THIS_ LPRECT32,LPDDSURFACEDESC,DWORD,HANDLE32) PURE; |
| 1079 | /*68*/STDMETHOD(ReleaseDC)(THIS_ HDC32) PURE; |
| 1080 | /*6c*/STDMETHOD(Restore)(THIS) PURE; |
| 1081 | /*70*/STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; |
| 1082 | /*74*/STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; |
| 1083 | /*78*/STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; |
| 1084 | /*7c*/STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; |
| 1085 | /*80*/STDMETHOD(Unlock)(THIS_ LPVOID) PURE; |
| 1086 | /*84*/STDMETHOD(UpdateOverlay)(THIS_ LPRECT32, LPDIRECTDRAWSURFACE3,LPRECT32,DWORD, LPDDOVERLAYFX) PURE; |
| 1087 | /*88*/STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; |
| 1088 | /*8c*/STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE3) PURE; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 1089 | /*** Added in the v2 interface ***/ |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 1090 | /*90*/STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE; |
| 1091 | /*94*/STDMETHOD(PageLock)(THIS_ DWORD) PURE; |
| 1092 | /*98*/STDMETHOD(PageUnlock)(THIS_ DWORD) PURE; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 1093 | /*** Added in the V3 interface ***/ |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 1094 | /*9c*/STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC, DWORD) PURE; |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 1095 | } *LPDIRECTDRAWSURFACE3_VTABLE,IDirectDrawSurface3_VTable; |
| 1096 | |
| 1097 | struct IDirectDrawSurface3 { |
| 1098 | LPDIRECTDRAWSURFACE3_VTABLE lpvtbl; |
| 1099 | DWORD ref; |
| 1100 | struct _directdrawsurface s; |
| 1101 | }; |
| 1102 | #undef THIS |
| 1103 | |
| 1104 | #define THIS LPDIRECTDRAWCOLORCONTROL this |
| 1105 | typedef struct IDirectDrawColorControl_VTable { |
| 1106 | /*** IUnknown methods ***/ |
| 1107 | STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; |
| 1108 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; |
| 1109 | STDMETHOD_(ULONG,Release) (THIS) PURE; |
| 1110 | /*** IDirectDrawColorControl methods ***/ |
| 1111 | STDMETHOD(GetColorControls)(THIS_ LPDDCOLORCONTROL) PURE; |
| 1112 | STDMETHOD(SetColorControls)(THIS_ LPDDCOLORCONTROL) PURE; |
| 1113 | } IDirectDrawColorControl_VTable,*LPDIRECTDRAWCOLORCONTROL_VTABLE; |
| 1114 | |
| 1115 | struct IDirectDrawColorControl { |
| 1116 | LPDIRECTDRAWCOLORCONTROL_VTABLE lpvtbl; |
| 1117 | DWORD ref; |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 1118 | }; |
| 1119 | #undef THIS |
| 1120 | |
| 1121 | #undef THIS_ |
| 1122 | #undef PURE |
| 1123 | #undef FAR |
| 1124 | #undef STDMETHOD |
| 1125 | #undef STDMETHOD_ |
| 1126 | |
| 1127 | extern HRESULT WINAPI DirectDrawCreate( LPGUID lpGUID,LPDIRECTDRAW *lplpDD,LPUNKNOWN pUnkOuter ); |
| 1128 | #endif |