[4133] | 1 | /* $Id: ddraw.h,v 1.5 2000-08-31 12:46:04 sandervl Exp $ */
|
---|
[4] | 2 |
|
---|
| 3 | #ifndef __WINE_DDRAW_H
|
---|
[213] | 4 | #define __WINE_DDRAW_H
|
---|
[4] | 5 |
|
---|
[21485] | 6 | #include "winbase.h" /* needed for winnt.h ... */
|
---|
[213] | 7 | #include "winnt.h" /* LARGE_INTEGER ... */
|
---|
| 8 | #include "wingdi.h" /* PALETTE stuff ... */
|
---|
[4133] | 9 | #ifndef __WINE_OBJBASE_H
|
---|
[21479] | 10 | #include "wine/obj_base.h"
|
---|
[4133] | 11 | #endif
|
---|
[4] | 12 |
|
---|
[213] | 13 | #ifndef DIRECTDRAW_VERSION
|
---|
| 14 | #define DIRECTDRAW_VERSION 0x0600
|
---|
| 15 | #endif /* DIRECTDRAW_VERSION */
|
---|
[4] | 16 |
|
---|
[21521] | 17 | #ifdef __cplusplus
|
---|
| 18 | extern "C" {
|
---|
| 19 | #endif
|
---|
| 20 |
|
---|
[4] | 21 | /*****************************************************************************
|
---|
| 22 | * Predeclare the interfaces
|
---|
| 23 | */
|
---|
[213] | 24 | DEFINE_GUID( CLSID_DirectDraw, 0xD7B70EE0,0x4340,0x11CF,0xB0,0x63,0x00,0x20,0xAF,0xC2,0xCD,0x35 );
|
---|
| 25 | DEFINE_GUID( CLSID_DirectDrawClipper, 0x593817A0,0x7DB3,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xb9,0x33,0x56 );
|
---|
| 26 | DEFINE_GUID( IID_IDirectDraw, 0x6C14DB80,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
|
---|
| 27 | DEFINE_GUID( IID_IDirectDraw2, 0xB3A6F3E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56 );
|
---|
[4] | 28 | DEFINE_GUID( IID_IDirectDraw4, 0x9c59509a,0x39bd,0x11d1,0x8c,0x4a,0x00,0xc0,0x4f,0xd9,0x30,0xc5 );
|
---|
[213] | 29 | DEFINE_GUID( IID_IDirectDrawSurface, 0x6C14DB81,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
|
---|
| 30 | DEFINE_GUID( IID_IDirectDrawSurface2, 0x57805885,0x6eec,0x11cf,0x94,0x41,0xa8,0x23,0x03,0xc1,0x0e,0x27 );
|
---|
| 31 | DEFINE_GUID( IID_IDirectDrawSurface3, 0xDA044E00,0x69B2,0x11D0,0xA1,0xD5,0x00,0xAA,0x00,0xB8,0xDF,0xBB );
|
---|
[4] | 32 | DEFINE_GUID( IID_IDirectDrawSurface4, 0x0B2B8630,0xAD35,0x11D0,0x8E,0xA6,0x00,0x60,0x97,0x97,0xEA,0x5B );
|
---|
[213] | 33 | DEFINE_GUID( IID_IDirectDrawPalette, 0x6C14DB84,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
|
---|
| 34 | DEFINE_GUID( IID_IDirectDrawClipper, 0x6C14DB85,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
|
---|
[4] | 35 | DEFINE_GUID( IID_IDirectDrawColorControl,0x4B9F0EE0,0x0D7E,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8 );
|
---|
[213] | 36 | DEFINE_GUID( IID_IDirectDrawGammaControl, 0x69C11C3E,0xB46B,0x11D1,0xAD,0x7A,0x00,0xC0,0x4F,0xC2,0x9B,0x4E );
|
---|
[4] | 37 |
|
---|
| 38 | typedef struct IDirectDraw IDirectDraw,*LPDIRECTDRAW;
|
---|
| 39 | typedef struct IDirectDraw2 IDirectDraw2,*LPDIRECTDRAW2;
|
---|
| 40 | typedef struct IDirectDraw4 IDirectDraw4,*LPDIRECTDRAW4;
|
---|
| 41 | typedef struct IDirectDrawClipper IDirectDrawClipper,*LPDIRECTDRAWCLIPPER;
|
---|
| 42 | typedef struct IDirectDrawPalette IDirectDrawPalette,*LPDIRECTDRAWPALETTE;
|
---|
| 43 | typedef struct IDirectDrawSurface IDirectDrawSurface,*LPDIRECTDRAWSURFACE;
|
---|
| 44 | typedef struct IDirectDrawSurface2 IDirectDrawSurface2,*LPDIRECTDRAWSURFACE2;
|
---|
| 45 | typedef struct IDirectDrawSurface3 IDirectDrawSurface3,*LPDIRECTDRAWSURFACE3;
|
---|
| 46 | typedef struct IDirectDrawSurface4 IDirectDrawSurface4,*LPDIRECTDRAWSURFACE4;
|
---|
| 47 | typedef struct IDirectDrawColorControl IDirectDrawColorControl,*LPDIRECTDRAWCOLORCONTROL;
|
---|
[213] | 48 | typedef struct IDirectDrawGammaControl IDirectDrawGammaControl,*LPDIRECTDRAWGAMMACONTROL;
|
---|
[4] | 49 |
|
---|
| 50 |
|
---|
[213] | 51 | #define DDENUMRET_CANCEL 0
|
---|
| 52 | #define DDENUMRET_OK 1
|
---|
[4] | 53 |
|
---|
[213] | 54 | #define DD_OK 0
|
---|
[4] | 55 |
|
---|
[213] | 56 | //
|
---|
| 57 | // Create an HRESULT value from component pieces
|
---|
| 58 | //
|
---|
[4] | 59 |
|
---|
[213] | 60 | #define MAKE_HRESULT(sev,fac,code) \
|
---|
| 61 | ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
|
---|
| 62 |
|
---|
| 63 | #define _FACDD 0x876
|
---|
[4] | 64 | #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
|
---|
| 65 |
|
---|
[213] | 66 | #define DDERR_ALREADYINITIALIZED MAKE_DDHRESULT( 5 )
|
---|
| 67 | #define DDERR_CANNOTATTACHSURFACE MAKE_DDHRESULT( 10 )
|
---|
| 68 | #define DDERR_CANNOTDETACHSURFACE MAKE_DDHRESULT( 20 )
|
---|
| 69 | #define DDERR_CURRENTLYNOTAVAIL MAKE_DDHRESULT( 40 )
|
---|
| 70 | #define DDERR_EXCEPTION MAKE_DDHRESULT( 55 )
|
---|
| 71 | #define DDERR_GENERIC E_FAIL
|
---|
| 72 | #define DDERR_HEIGHTALIGN MAKE_DDHRESULT( 90 )
|
---|
| 73 | #define DDERR_INCOMPATIBLEPRIMARY MAKE_DDHRESULT( 95 )
|
---|
| 74 | #define DDERR_INVALIDCAPS MAKE_DDHRESULT( 100 )
|
---|
| 75 | #define DDERR_INVALIDCLIPLIST MAKE_DDHRESULT( 110 )
|
---|
| 76 | #define DDERR_INVALIDMODE MAKE_DDHRESULT( 120 )
|
---|
| 77 | #define DDERR_INVALIDOBJECT MAKE_DDHRESULT( 130 )
|
---|
| 78 | #define DDERR_INVALIDPARAMS E_INVALIDARG
|
---|
| 79 | #define DDERR_INVALIDPIXELFORMAT MAKE_DDHRESULT( 145 )
|
---|
| 80 | #define DDERR_INVALIDRECT MAKE_DDHRESULT( 150 )
|
---|
| 81 | #define DDERR_LOCKEDSURFACES MAKE_DDHRESULT( 160 )
|
---|
| 82 | #define DDERR_NO3D MAKE_DDHRESULT( 170 )
|
---|
| 83 | #define DDERR_NOALPHAHW MAKE_DDHRESULT( 180 )
|
---|
| 84 | #define DDERR_NOCLIPLIST MAKE_DDHRESULT( 205 )
|
---|
| 85 | #define DDERR_NOCOLORCONVHW MAKE_DDHRESULT( 210 )
|
---|
| 86 | #define DDERR_NOCOOPERATIVELEVELSET MAKE_DDHRESULT( 212 )
|
---|
| 87 | #define DDERR_NOCOLORKEY MAKE_DDHRESULT( 215 )
|
---|
| 88 | #define DDERR_NOCOLORKEYHW MAKE_DDHRESULT( 220 )
|
---|
| 89 | #define DDERR_NODIRECTDRAWSUPPORT MAKE_DDHRESULT( 222 )
|
---|
| 90 | #define DDERR_NOEXCLUSIVEMODE MAKE_DDHRESULT( 225 )
|
---|
| 91 | #define DDERR_NOFLIPHW MAKE_DDHRESULT( 230 )
|
---|
| 92 | #define DDERR_NOGDI MAKE_DDHRESULT( 240 )
|
---|
| 93 | #define DDERR_NOMIRRORHW MAKE_DDHRESULT( 250 )
|
---|
| 94 | #define DDERR_NOTFOUND MAKE_DDHRESULT( 255 )
|
---|
| 95 | #define DDERR_NOOVERLAYHW MAKE_DDHRESULT( 260 )
|
---|
| 96 | #define DDERR_NORASTEROPHW MAKE_DDHRESULT( 280 )
|
---|
| 97 | #define DDERR_NOROTATIONHW MAKE_DDHRESULT( 290 )
|
---|
| 98 | #define DDERR_NOSTRETCHHW MAKE_DDHRESULT( 310 )
|
---|
| 99 | #define DDERR_NOT4BITCOLOR MAKE_DDHRESULT( 316 )
|
---|
| 100 | #define DDERR_NOT4BITCOLORINDEX MAKE_DDHRESULT( 317 )
|
---|
| 101 | #define DDERR_NOT8BITCOLOR MAKE_DDHRESULT( 320 )
|
---|
| 102 | #define DDERR_NOTEXTUREHW MAKE_DDHRESULT( 330 )
|
---|
| 103 | #define DDERR_NOVSYNCHW MAKE_DDHRESULT( 335 )
|
---|
| 104 | #define DDERR_NOZBUFFERHW MAKE_DDHRESULT( 340 )
|
---|
| 105 | #define DDERR_NOZOVERLAYHW MAKE_DDHRESULT( 350 )
|
---|
| 106 | #define DDERR_OUTOFCAPS MAKE_DDHRESULT( 360 )
|
---|
| 107 | #define DDERR_OUTOFMEMORY E_OUTOFMEMORY
|
---|
| 108 | #define DDERR_OUTOFVIDEOMEMORY MAKE_DDHRESULT( 380 )
|
---|
| 109 | #define DDERR_OVERLAYCANTCLIP MAKE_DDHRESULT( 382 )
|
---|
| 110 | #define DDERR_OVERLAYCOLORKEYONLYONEACTIVE MAKE_DDHRESULT( 384 )
|
---|
| 111 | #define DDERR_PALETTEBUSY MAKE_DDHRESULT( 387 )
|
---|
| 112 | #define DDERR_COLORKEYNOTSET MAKE_DDHRESULT( 400 )
|
---|
| 113 | #define DDERR_SURFACEALREADYATTACHED MAKE_DDHRESULT( 410 )
|
---|
| 114 | #define DDERR_SURFACEALREADYDEPENDENT MAKE_DDHRESULT( 420 )
|
---|
| 115 | #define DDERR_SURFACEBUSY MAKE_DDHRESULT( 430 )
|
---|
| 116 | #define DDERR_CANTLOCKSURFACE MAKE_DDHRESULT( 435 )
|
---|
| 117 | #define DDERR_SURFACEISOBSCURED MAKE_DDHRESULT( 440 )
|
---|
| 118 | #define DDERR_SURFACELOST MAKE_DDHRESULT( 450 )
|
---|
| 119 | #define DDERR_SURFACENOTATTACHED MAKE_DDHRESULT( 460 )
|
---|
| 120 | #define DDERR_TOOBIGHEIGHT MAKE_DDHRESULT( 470 )
|
---|
| 121 | #define DDERR_TOOBIGSIZE MAKE_DDHRESULT( 480 )
|
---|
| 122 | #define DDERR_TOOBIGWIDTH MAKE_DDHRESULT( 490 )
|
---|
| 123 | #define DDERR_UNSUPPORTED E_NOTIMPL
|
---|
| 124 | #define DDERR_UNSUPPORTEDFORMAT MAKE_DDHRESULT( 510 )
|
---|
| 125 | #define DDERR_UNSUPPORTEDMASK MAKE_DDHRESULT( 520 )
|
---|
| 126 | #define DDERR_INVALIDSTREAM MAKE_DDHRESULT( 521 )
|
---|
| 127 | #define DDERR_VERTICALBLANKINPROGRESS MAKE_DDHRESULT( 537 )
|
---|
| 128 | #define DDERR_WASSTILLDRAWING MAKE_DDHRESULT( 540 )
|
---|
| 129 | #define DDERR_XALIGN MAKE_DDHRESULT( 560 )
|
---|
| 130 | #define DDERR_INVALIDDIRECTDRAWGUID MAKE_DDHRESULT( 561 )
|
---|
| 131 | #define DDERR_DIRECTDRAWALREADYCREATED MAKE_DDHRESULT( 562 )
|
---|
| 132 | #define DDERR_NODIRECTDRAWHW MAKE_DDHRESULT( 563 )
|
---|
| 133 | #define DDERR_PRIMARYSURFACEALREADYEXISTS MAKE_DDHRESULT( 564 )
|
---|
| 134 | #define DDERR_NOEMULATION MAKE_DDHRESULT( 565 )
|
---|
| 135 | #define DDERR_REGIONTOOSMALL MAKE_DDHRESULT( 566 )
|
---|
| 136 | #define DDERR_CLIPPERISUSINGHWND MAKE_DDHRESULT( 567 )
|
---|
| 137 | #define DDERR_NOCLIPPERATTACHED MAKE_DDHRESULT( 568 )
|
---|
| 138 | #define DDERR_NOHWND MAKE_DDHRESULT( 569 )
|
---|
| 139 | #define DDERR_HWNDSUBCLASSED MAKE_DDHRESULT( 570 )
|
---|
| 140 | #define DDERR_HWNDALREADYSET MAKE_DDHRESULT( 571 )
|
---|
| 141 | #define DDERR_NOPALETTEATTACHED MAKE_DDHRESULT( 572 )
|
---|
| 142 | #define DDERR_NOPALETTEHW MAKE_DDHRESULT( 573 )
|
---|
| 143 | #define DDERR_BLTFASTCANTCLIP MAKE_DDHRESULT( 574 )
|
---|
| 144 | #define DDERR_NOBLTHW MAKE_DDHRESULT( 575 )
|
---|
| 145 | #define DDERR_NODDROPSHW MAKE_DDHRESULT( 576 )
|
---|
| 146 | #define DDERR_OVERLAYNOTVISIBLE MAKE_DDHRESULT( 577 )
|
---|
| 147 | #define DDERR_NOOVERLAYDEST MAKE_DDHRESULT( 578 )
|
---|
| 148 | #define DDERR_INVALIDPOSITION MAKE_DDHRESULT( 579 )
|
---|
| 149 | #define DDERR_NOTAOVERLAYSURFACE MAKE_DDHRESULT( 580 )
|
---|
| 150 | #define DDERR_EXCLUSIVEMODEALREADYSET MAKE_DDHRESULT( 581 )
|
---|
| 151 | #define DDERR_NOTFLIPPABLE MAKE_DDHRESULT( 582 )
|
---|
| 152 | #define DDERR_CANTDUPLICATE MAKE_DDHRESULT( 583 )
|
---|
| 153 | #define DDERR_NOTLOCKED MAKE_DDHRESULT( 584 )
|
---|
| 154 | #define DDERR_CANTCREATEDC MAKE_DDHRESULT( 585 )
|
---|
| 155 | #define DDERR_NODC MAKE_DDHRESULT( 586 )
|
---|
| 156 | #define DDERR_WRONGMODE MAKE_DDHRESULT( 587 )
|
---|
| 157 | #define DDERR_IMPLICITLYCREATED MAKE_DDHRESULT( 588 )
|
---|
| 158 | #define DDERR_NOTPALETTIZED MAKE_DDHRESULT( 589 )
|
---|
| 159 | #define DDERR_UNSUPPORTEDMODE MAKE_DDHRESULT( 590 )
|
---|
| 160 | #define DDERR_NOMIPMAPHW MAKE_DDHRESULT( 591 )
|
---|
| 161 | #define DDERR_INVALIDSURFACETYPE MAKE_DDHRESULT( 592 )
|
---|
| 162 | #define DDERR_NOOPTIMIZEHW MAKE_DDHRESULT( 600 )
|
---|
| 163 | #define DDERR_NOTLOADED MAKE_DDHRESULT( 601 )
|
---|
| 164 | #define DDERR_NOFOCUSWINDOW MAKE_DDHRESULT( 602 )
|
---|
| 165 | #define DDERR_DCALREADYCREATED MAKE_DDHRESULT( 620 )
|
---|
| 166 | #define DDERR_NONONLOCALVIDMEM MAKE_DDHRESULT( 630 )
|
---|
| 167 | #define DDERR_CANTPAGELOCK MAKE_DDHRESULT( 640 )
|
---|
| 168 | #define DDERR_CANTPAGEUNLOCK MAKE_DDHRESULT( 660 )
|
---|
| 169 | #define DDERR_NOTPAGELOCKED MAKE_DDHRESULT( 680 )
|
---|
| 170 | #define DDERR_MOREDATA MAKE_DDHRESULT( 690 )
|
---|
| 171 | #define DDERR_EXPIRED MAKE_DDHRESULT( 691 )
|
---|
| 172 | #define DDERR_VIDEONOTACTIVE MAKE_DDHRESULT( 695 )
|
---|
| 173 | #define DDERR_DEVICEDOESNTOWNSURFACE MAKE_DDHRESULT( 699 )
|
---|
| 174 | #define DDERR_NOTINITIALIZED CO_E_NOTINITIALIZED
|
---|
[4] | 175 |
|
---|
[213] | 176 | /* DIRECTDRAWSURFACE SETPRIVATEDATA CONSTANTS */
|
---|
| 177 | #define DDSPD_IUNKNOWNPOINTER 0x00000001L
|
---|
| 178 | #define DDSPD_VOLATILE 0x00000002L
|
---|
| 179 |
|
---|
| 180 |
|
---|
[4] | 181 | /* dwFlags for Blt* */
|
---|
[213] | 182 | #define DDBLT_ALPHADEST 0x00000001
|
---|
| 183 | #define DDBLT_ALPHADESTCONSTOVERRIDE 0x00000002
|
---|
| 184 | #define DDBLT_ALPHADESTNEG 0x00000004
|
---|
| 185 | #define DDBLT_ALPHADESTSURFACEOVERRIDE 0x00000008
|
---|
| 186 | #define DDBLT_ALPHAEDGEBLEND 0x00000010
|
---|
| 187 | #define DDBLT_ALPHASRC 0x00000020
|
---|
| 188 | #define DDBLT_ALPHASRCCONSTOVERRIDE 0x00000040
|
---|
| 189 | #define DDBLT_ALPHASRCNEG 0x00000080
|
---|
| 190 | #define DDBLT_ALPHASRCSURFACEOVERRIDE 0x00000100
|
---|
| 191 | #define DDBLT_ASYNC 0x00000200
|
---|
| 192 | #define DDBLT_COLORFILL 0x00000400
|
---|
| 193 | #define DDBLT_DDFX 0x00000800
|
---|
| 194 | #define DDBLT_DDROPS 0x00001000
|
---|
| 195 | #define DDBLT_KEYDEST 0x00002000
|
---|
| 196 | #define DDBLT_KEYDESTOVERRIDE 0x00004000
|
---|
| 197 | #define DDBLT_KEYSRC 0x00008000
|
---|
| 198 | #define DDBLT_KEYSRCOVERRIDE 0x00010000
|
---|
| 199 | #define DDBLT_ROP 0x00020000
|
---|
| 200 | #define DDBLT_ROTATIONANGLE 0x00040000
|
---|
| 201 | #define DDBLT_ZBUFFER 0x00080000
|
---|
| 202 | #define DDBLT_ZBUFFERDESTCONSTOVERRIDE 0x00100000
|
---|
| 203 | #define DDBLT_ZBUFFERDESTOVERRIDE 0x00200000
|
---|
| 204 | #define DDBLT_ZBUFFERSRCCONSTOVERRIDE 0x00400000
|
---|
| 205 | #define DDBLT_ZBUFFERSRCOVERRIDE 0x00800000
|
---|
| 206 | #define DDBLT_WAIT 0x01000000
|
---|
| 207 | #define DDBLT_DEPTHFILL 0x02000000
|
---|
[4] | 208 |
|
---|
| 209 | /* dwTrans for BltFast */
|
---|
[213] | 210 | #define DDBLTFAST_NOCOLORKEY 0x00000000
|
---|
| 211 | #define DDBLTFAST_SRCCOLORKEY 0x00000001
|
---|
| 212 | #define DDBLTFAST_DESTCOLORKEY 0x00000002
|
---|
| 213 | #define DDBLTFAST_WAIT 0x00000010
|
---|
[4] | 214 |
|
---|
| 215 | /* dwFlags for Flip */
|
---|
[213] | 216 | #define DDFLIP_WAIT 0x00000001
|
---|
| 217 | #define DDFLIP_EVEN 0x00000002 /* only valid for overlay */
|
---|
| 218 | #define DDFLIP_ODD 0x00000004 /* only valid for overlay */
|
---|
[4] | 219 |
|
---|
| 220 | /* dwFlags for GetBltStatus */
|
---|
[213] | 221 | #define DDGBS_CANBLT 0x00000001
|
---|
| 222 | #define DDGBS_ISBLTDONE 0x00000002
|
---|
[4] | 223 |
|
---|
| 224 | /* DDSCAPS.dwCaps */
|
---|
| 225 | /* reserved1, was 3d capable */
|
---|
[4133] | 226 | #define DDSCAPS_3D 0x00000001
|
---|
[213] | 227 | #define DDSCAPS_RESERVED1 0x00000001
|
---|
[4] | 228 | /* surface contains alpha information */
|
---|
[213] | 229 | #define DDSCAPS_ALPHA 0x00000002
|
---|
[4] | 230 | /* this surface is a backbuffer */
|
---|
[213] | 231 | #define DDSCAPS_BACKBUFFER 0x00000004
|
---|
[4] | 232 | /* complex surface structure */
|
---|
[213] | 233 | #define DDSCAPS_COMPLEX 0x00000008
|
---|
[4] | 234 | /* part of surface flipping structure */
|
---|
[213] | 235 | #define DDSCAPS_FLIP 0x00000010
|
---|
[4] | 236 | /* this surface is the frontbuffer surface */
|
---|
[213] | 237 | #define DDSCAPS_FRONTBUFFER 0x00000020
|
---|
[4] | 238 | /* this is a plain offscreen surface */
|
---|
[213] | 239 | #define DDSCAPS_OFFSCREENPLAIN 0x00000040
|
---|
[4] | 240 | /* overlay */
|
---|
[213] | 241 | #define DDSCAPS_OVERLAY 0x00000080
|
---|
[4] | 242 | /* palette objects can be created and attached to us */
|
---|
[213] | 243 | #define DDSCAPS_PALETTE 0x00000100
|
---|
[4] | 244 | /* primary surface (the one the user looks at currently)(right eye)*/
|
---|
[213] | 245 | #define DDSCAPS_PRIMARYSURFACE 0x00000200
|
---|
[4] | 246 | /* primary surface for left eye */
|
---|
[213] | 247 | #define DDSCAPS_PRIMARYSURFACELEFT 0x00000400
|
---|
[4] | 248 | /* surface exists in systemmemory */
|
---|
[213] | 249 | #define DDSCAPS_SYSTEMMEMORY 0x00000800
|
---|
[4] | 250 | /* surface can be used as a texture */
|
---|
[213] | 251 | #define DDSCAPS_TEXTURE 0x00001000
|
---|
[4] | 252 | /* surface may be destination for 3d rendering */
|
---|
[213] | 253 | #define DDSCAPS_3DDEVICE 0x00002000
|
---|
[4] | 254 | /* surface exists in videomemory */
|
---|
[213] | 255 | #define DDSCAPS_VIDEOMEMORY 0x00004000
|
---|
[4] | 256 | /* surface changes immediately visible */
|
---|
[213] | 257 | #define DDSCAPS_VISIBLE 0x00008000
|
---|
[4] | 258 | /* write only surface */
|
---|
[213] | 259 | #define DDSCAPS_WRITEONLY 0x00010000
|
---|
[4] | 260 | /* zbuffer surface */
|
---|
[213] | 261 | #define DDSCAPS_ZBUFFER 0x00020000
|
---|
[4] | 262 | /* has its own DC */
|
---|
[213] | 263 | #define DDSCAPS_OWNDC 0x00040000
|
---|
[4] | 264 | /* surface should be able to receive live video */
|
---|
[213] | 265 | #define DDSCAPS_LIVEVIDEO 0x00080000
|
---|
[4] | 266 | /* should be able to have a hw codec decompress stuff into it */
|
---|
[213] | 267 | #define DDSCAPS_HWCODEC 0x00100000
|
---|
[4] | 268 | /* mode X (320x200 or 320x240) surface */
|
---|
[213] | 269 | #define DDSCAPS_MODEX 0x00200000
|
---|
[4] | 270 | /* one mipmap surface (1 level) */
|
---|
[213] | 271 | #define DDSCAPS_MIPMAP 0x00400000
|
---|
| 272 | #define DDSCAPS_RESERVED2 0x00800000
|
---|
[4] | 273 | /* memory allocation delayed until Load() */
|
---|
[213] | 274 | #define DDSCAPS_ALLOCONLOAD 0x04000000
|
---|
[4] | 275 | /* Indicates that the surface will recieve data from a video port */
|
---|
[213] | 276 | #define DDSCAPS_VIDEOPORT 0x08000000
|
---|
[4] | 277 | /* surface is in local videomemory */
|
---|
[213] | 278 | #define DDSCAPS_LOCALVIDMEM 0x10000000
|
---|
[4] | 279 | /* surface is in nonlocal videomemory */
|
---|
[213] | 280 | #define DDSCAPS_NONLOCALVIDMEM 0x20000000
|
---|
[4] | 281 | /* surface is a standard VGA mode surface (NOT ModeX) */
|
---|
[213] | 282 | #define DDSCAPS_STANDARDVGAMODE 0x40000000
|
---|
[4] | 283 | /* optimized? surface */
|
---|
[213] | 284 | #define DDSCAPS_OPTIMIZED 0x80000000
|
---|
[4] | 285 |
|
---|
[213] | 286 | typedef struct _DDSCAPS
|
---|
| 287 | {
|
---|
| 288 | DWORD dwCaps; /* capabilities of surface wanted */
|
---|
[4] | 289 | } DDSCAPS,*LPDDSCAPS;
|
---|
| 290 |
|
---|
[213] | 291 | #define DD_ROP_SPACE (256/32) /* space required to store ROP array */
|
---|
[4] | 292 |
|
---|
| 293 | typedef struct _DDCAPS_DX3
|
---|
| 294 | {
|
---|
[213] | 295 | DWORD dwSize; /* size of the DDDRIVERCAPS structure */
|
---|
| 296 | DWORD dwCaps; /* driver specific capabilities */
|
---|
| 297 | DWORD dwCaps2; /* more driver specific capabilites */
|
---|
| 298 | DWORD dwCKeyCaps; /* color key capabilities of the surface */
|
---|
| 299 | DWORD dwFXCaps; /* driver specific stretching and effects capabilites */
|
---|
| 300 | DWORD dwFXAlphaCaps; /* alpha driver specific capabilities */
|
---|
| 301 | DWORD dwPalCaps; /* palette capabilities */
|
---|
| 302 | DWORD dwSVCaps; /* stereo vision capabilities */
|
---|
| 303 | DWORD dwAlphaBltConstBitDepths; /* DDBD_2,4,8 */
|
---|
| 304 | DWORD dwAlphaBltPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
| 305 | DWORD dwAlphaBltSurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
| 306 | DWORD dwAlphaOverlayConstBitDepths; /* DDBD_2,4,8 */
|
---|
| 307 | DWORD dwAlphaOverlayPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
| 308 | DWORD dwAlphaOverlaySurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
| 309 | DWORD dwZBufferBitDepths; /* DDBD_8,16,24,32 */
|
---|
| 310 | DWORD dwVidMemTotal; /* total amount of video memory */
|
---|
| 311 | DWORD dwVidMemFree; /* amount of free video memory */
|
---|
| 312 | DWORD dwMaxVisibleOverlays; /* maximum number of visible overlays */
|
---|
| 313 | DWORD dwCurrVisibleOverlays; /* current number of visible overlays */
|
---|
| 314 | DWORD dwNumFourCCCodes; /* number of four cc codes */
|
---|
| 315 | DWORD dwAlignBoundarySrc; /* source rectangle alignment */
|
---|
| 316 | DWORD dwAlignSizeSrc; /* source rectangle byte size */
|
---|
| 317 | DWORD dwAlignBoundaryDest; /* dest rectangle alignment */
|
---|
| 318 | DWORD dwAlignSizeDest; /* dest rectangle byte size */
|
---|
| 319 | DWORD dwAlignStrideAlign; /* stride alignment */
|
---|
| 320 | DWORD dwRops[DD_ROP_SPACE]; /* ROPS supported */
|
---|
| 321 | DDSCAPS ddsCaps; /* DDSCAPS structure has all the general capabilities */
|
---|
| 322 | DWORD dwMinOverlayStretch; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 323 | DWORD dwMaxOverlayStretch; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 324 | DWORD dwMinLiveVideoStretch; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 325 | DWORD dwMaxLiveVideoStretch; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 326 | DWORD dwMinHwCodecStretch; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 327 | DWORD dwMaxHwCodecStretch; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 328 | DWORD dwReserved1;
|
---|
| 329 | DWORD dwReserved2;
|
---|
| 330 | DWORD dwReserved3;
|
---|
| 331 | DWORD dwSVBCaps; /* driver specific capabilities for System->Vmem blts */
|
---|
| 332 | DWORD dwSVBCKeyCaps; /* driver color key capabilities for System->Vmem blts */
|
---|
| 333 | DWORD dwSVBFXCaps; /* driver FX capabilities for System->Vmem blts */
|
---|
| 334 | DWORD dwSVBRops[DD_ROP_SPACE];/* ROPS supported for System->Vmem blts */
|
---|
| 335 | DWORD dwVSBCaps; /* driver specific capabilities for Vmem->System blts */
|
---|
| 336 | DWORD dwVSBCKeyCaps; /* driver color key capabilities for Vmem->System blts */
|
---|
| 337 | DWORD dwVSBFXCaps; /* driver FX capabilities for Vmem->System blts */
|
---|
| 338 | DWORD dwVSBRops[DD_ROP_SPACE];/* ROPS supported for Vmem->System blts */
|
---|
| 339 | DWORD dwSSBCaps; /* driver specific capabilities for System->System blts */
|
---|
| 340 | DWORD dwSSBCKeyCaps; /* driver color key capabilities for System->System blts */
|
---|
| 341 | DWORD dwSSBFXCaps; /* driver FX capabilities for System->System blts */
|
---|
| 342 | DWORD dwSSBRops[DD_ROP_SPACE];/* ROPS supported for System->System blts */
|
---|
| 343 | DWORD dwReserved4;
|
---|
| 344 | DWORD dwReserved5;
|
---|
| 345 | DWORD dwReserved6;
|
---|
[4] | 346 | } DDCAPS_DX3,*LPDDCAPS_DX3;
|
---|
| 347 |
|
---|
[213] | 348 | typedef struct _DDCAPS_DX5
|
---|
| 349 | {
|
---|
| 350 | /* 0*/ DWORD dwSize; /* size of the DDDRIVERCAPS structure */
|
---|
| 351 | /* 4*/ DWORD dwCaps; /* driver specific capabilities */
|
---|
| 352 | /* 8*/ DWORD dwCaps2; /* more driver specific capabilites */
|
---|
| 353 | /* c*/ DWORD dwCKeyCaps; /* color key capabilities of the surface */
|
---|
| 354 | /* 10*/ DWORD dwFXCaps; /* driver specific stretching and effects capabilites */
|
---|
| 355 | /* 14*/ DWORD dwFXAlphaCaps; /* alpha driver specific capabilities */
|
---|
| 356 | /* 18*/ DWORD dwPalCaps; /* palette capabilities */
|
---|
| 357 | /* 1c*/ DWORD dwSVCaps; /* stereo vision capabilities */
|
---|
| 358 | /* 20*/ DWORD dwAlphaBltConstBitDepths; /* DDBD_2,4,8 */
|
---|
| 359 | /* 24*/ DWORD dwAlphaBltPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
| 360 | /* 28*/ DWORD dwAlphaBltSurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
| 361 | /* 2c*/ DWORD dwAlphaOverlayConstBitDepths; /* DDBD_2,4,8 */
|
---|
| 362 | /* 30*/ DWORD dwAlphaOverlayPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
| 363 | /* 34*/ DWORD dwAlphaOverlaySurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
| 364 | /* 38*/ DWORD dwZBufferBitDepths; /* DDBD_8,16,24,32 */
|
---|
| 365 | /* 3c*/ DWORD dwVidMemTotal; /* total amount of video memory */
|
---|
| 366 | /* 40*/ DWORD dwVidMemFree; /* amount of free video memory */
|
---|
| 367 | /* 44*/ DWORD dwMaxVisibleOverlays; /* maximum number of visible overlays */
|
---|
| 368 | /* 48*/ DWORD dwCurrVisibleOverlays; /* current number of visible overlays */
|
---|
| 369 | /* 4c*/ DWORD dwNumFourCCCodes; /* number of four cc codes */
|
---|
| 370 | /* 50*/ DWORD dwAlignBoundarySrc; /* source rectangle alignment */
|
---|
| 371 | /* 54*/ DWORD dwAlignSizeSrc; /* source rectangle byte size */
|
---|
| 372 | /* 58*/ DWORD dwAlignBoundaryDest; /* dest rectangle alignment */
|
---|
| 373 | /* 5c*/ DWORD dwAlignSizeDest; /* dest rectangle byte size */
|
---|
| 374 | /* 60*/ DWORD dwAlignStrideAlign; /* stride alignment */
|
---|
| 375 | /* 64*/ DWORD dwRops[DD_ROP_SPACE]; /* ROPS supported */
|
---|
| 376 | /* 84*/ DDSCAPS ddsCaps; /* DDSCAPS structure has all the general capabilities */
|
---|
| 377 | /* 88*/ DWORD dwMinOverlayStretch; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 378 | /* 8c*/ DWORD dwMaxOverlayStretch; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 379 | /* 90*/ DWORD dwMinLiveVideoStretch; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 380 | /* 94*/ DWORD dwMaxLiveVideoStretch; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 381 | /* 98*/ DWORD dwMinHwCodecStretch; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 382 | /* 9c*/ DWORD dwMaxHwCodecStretch; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 383 | /* a0*/ DWORD dwReserved1; /* reserved */
|
---|
| 384 | /* a4*/ DWORD dwReserved2; /* reserved */
|
---|
| 385 | /* a8*/ DWORD dwReserved3; /* reserved */
|
---|
| 386 | /* ac*/ DWORD dwSVBCaps; /* driver specific capabilities for System->Vmem blts */
|
---|
| 387 | /* b0*/ DWORD dwSVBCKeyCaps; /* driver color key capabilities for System->Vmem blts */
|
---|
| 388 | /* b4*/ DWORD dwSVBFXCaps; /* driver FX capabilities for System->Vmem blts */
|
---|
| 389 | /* b8*/ DWORD dwSVBRops[DD_ROP_SPACE]; /* ROPS supported for System->Vmem blts */
|
---|
| 390 | /* d8*/ DWORD dwVSBCaps; /* driver specific capabilities for Vmem->System blts */
|
---|
| 391 | /* dc*/ DWORD dwVSBCKeyCaps; /* driver color key capabilities for Vmem->System blts */
|
---|
| 392 | /* e0*/ DWORD dwVSBFXCaps; /* driver FX capabilities for Vmem->System blts */
|
---|
| 393 | /* e4*/ DWORD dwVSBRops[DD_ROP_SPACE]; /* ROPS supported for Vmem->System blts */
|
---|
| 394 | /*104*/ DWORD dwSSBCaps; /* driver specific capabilities for System->System blts */
|
---|
| 395 | /*108*/ DWORD dwSSBCKeyCaps; /* driver color key capabilities for System->System blts */
|
---|
| 396 | /*10c*/ DWORD dwSSBFXCaps; /* driver FX capabilities for System->System blts */
|
---|
| 397 | /*110*/ DWORD dwSSBRops[DD_ROP_SPACE]; /* ROPS supported for System->System blts */
|
---|
| 398 | /* Members added for DX5: */
|
---|
| 399 | /*130*/ DWORD dwMaxVideoPorts; /* maximum number of usable video ports */
|
---|
| 400 | /*134*/ DWORD dwCurrVideoPorts; /* current number of video ports used */
|
---|
| 401 | /*138*/ DWORD dwSVBCaps2; /* more driver specific capabilities for System->Vmem blts */
|
---|
| 402 | /*13c*/ DWORD dwNLVBCaps; /* driver specific capabilities for non-local->local vidmem blts */
|
---|
| 403 | /*140*/ DWORD dwNLVBCaps2; /* more driver specific capabilities non-local->local vidmem blts */
|
---|
| 404 | /*144*/ DWORD dwNLVBCKeyCaps; /* driver color key capabilities for non-local->local vidmem blts */
|
---|
| 405 | /*148*/ DWORD dwNLVBFXCaps; /* driver FX capabilities for non-local->local blts */
|
---|
| 406 | /*14c*/ DWORD dwNLVBRops[DD_ROP_SPACE]; /* ROPS supported for non-local->local blts */
|
---|
| 407 | } DDCAPS_DX5, *LPDDCAPS_DX5;
|
---|
| 408 |
|
---|
| 409 |
|
---|
[586] | 410 |
|
---|
| 411 | #define DDSCAPS2_HARDWAREDEINTERLACE 0x00000002L
|
---|
| 412 | #define DDSCAPS2_HINTDYNAMIC 0x00000004L
|
---|
| 413 | #define DDSCAPS2_HINTSTATIC 0x00000008L
|
---|
| 414 | #define DDSCAPS2_TEXTUREMANAGE 0x00000010L
|
---|
| 415 | #define DDSCAPS2_RESERVED1 0x00000020L
|
---|
| 416 | #define DDSCAPS2_RESERVED2 0x00000040L
|
---|
| 417 | #define DDSCAPS2_OPAQUE 0x00000080L
|
---|
| 418 | #define DDSCAPS2_HINTANTIALIASING 0x00000100L
|
---|
| 419 |
|
---|
[213] | 420 | typedef struct _DDSCAPS2
|
---|
| 421 | {
|
---|
| 422 | DWORD dwCaps; // capabilities of surface wanted
|
---|
| 423 | DWORD dwCaps2;
|
---|
| 424 | DWORD dwCaps3;
|
---|
| 425 | DWORD dwCaps4;
|
---|
| 426 | } DDSCAPS2,* LPDDSCAPS2;
|
---|
| 427 |
|
---|
| 428 |
|
---|
[4] | 429 | typedef struct _DDCAPS
|
---|
| 430 | {
|
---|
[213] | 431 | /* 0*/ DWORD dwSize; /* size of the DDDRIVERCAPS structure */
|
---|
| 432 | /* 4*/ DWORD dwCaps; /* driver specific capabilities */
|
---|
| 433 | /* 8*/ DWORD dwCaps2; /* more driver specific capabilites */
|
---|
| 434 | /* c*/ DWORD dwCKeyCaps; /* color key capabilities of the surface */
|
---|
| 435 | /* 10*/ DWORD dwFXCaps; /* driver specific stretching and effects capabilites */
|
---|
| 436 | /* 14*/ DWORD dwFXAlphaCaps; /* alpha driver specific capabilities */
|
---|
| 437 | /* 18*/ DWORD dwPalCaps; /* palette capabilities */
|
---|
| 438 | /* 1c*/ DWORD dwSVCaps; /* stereo vision capabilities */
|
---|
| 439 | /* 20*/ DWORD dwAlphaBltConstBitDepths; /* DDBD_2,4,8 */
|
---|
| 440 | /* 24*/ DWORD dwAlphaBltPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
| 441 | /* 28*/ DWORD dwAlphaBltSurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
| 442 | /* 2c*/ DWORD dwAlphaOverlayConstBitDepths; /* DDBD_2,4,8 */
|
---|
| 443 | /* 30*/ DWORD dwAlphaOverlayPixelBitDepths; /* DDBD_1,2,4,8 */
|
---|
| 444 | /* 34*/ DWORD dwAlphaOverlaySurfaceBitDepths; /* DDBD_1,2,4,8 */
|
---|
| 445 | /* 38*/ DWORD dwZBufferBitDepths; /* DDBD_8,16,24,32 */
|
---|
| 446 | /* 3c*/ DWORD dwVidMemTotal; /* total amount of video memory */
|
---|
| 447 | /* 40*/ DWORD dwVidMemFree; /* amount of free video memory */
|
---|
| 448 | /* 44*/ DWORD dwMaxVisibleOverlays; /* maximum number of visible overlays */
|
---|
| 449 | /* 48*/ DWORD dwCurrVisibleOverlays; /* current number of visible overlays */
|
---|
| 450 | /* 4c*/ DWORD dwNumFourCCCodes; /* number of four cc codes */
|
---|
| 451 | /* 50*/ DWORD dwAlignBoundarySrc; /* source rectangle alignment */
|
---|
| 452 | /* 54*/ DWORD dwAlignSizeSrc; /* source rectangle byte size */
|
---|
| 453 | /* 58*/ DWORD dwAlignBoundaryDest; /* dest rectangle alignment */
|
---|
| 454 | /* 5c*/ DWORD dwAlignSizeDest; /* dest rectangle byte size */
|
---|
| 455 | /* 60*/ DWORD dwAlignStrideAlign; /* stride alignment */
|
---|
| 456 | /* 64*/ DWORD dwRops[DD_ROP_SPACE]; /* ROPS supported */
|
---|
| 457 | #if DIRECTDRAW_VERSION < 0x0600
|
---|
| 458 | /* 84*/ DDSCAPS ddsCaps; /* DDSCAPS structure has all the general capabilities */
|
---|
| 459 | #else
|
---|
| 460 | /* 84*/ DDSCAPS ddsOldCaps; /* DDSCAPS structure has all the general capabilities */
|
---|
| 461 | #endif
|
---|
| 462 | /* 88*/ DWORD dwMinOverlayStretch; /* minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 463 | /* 8c*/ DWORD dwMaxOverlayStretch; /* maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 464 | /* 90*/ DWORD dwMinLiveVideoStretch; /* minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 465 | /* 94*/ DWORD dwMaxLiveVideoStretch; /* maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 466 | /* 98*/ DWORD dwMinHwCodecStretch; /* minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
| 467 | /* 9c*/ DWORD dwMaxHwCodecStretch; /* maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 */
|
---|
[4] | 468 | /* a0*/ DWORD dwReserved1;
|
---|
| 469 | /* a4*/ DWORD dwReserved2;
|
---|
| 470 | /* a8*/ DWORD dwReserved3;
|
---|
[213] | 471 | /* ac*/ DWORD dwSVBCaps; /* driver specific capabilities for System->Vmem blts */
|
---|
| 472 | /* b0*/ DWORD dwSVBCKeyCaps; /* driver color key capabilities for System->Vmem blts */
|
---|
| 473 | /* b4*/ DWORD dwSVBFXCaps; /* driver FX capabilities for System->Vmem blts */
|
---|
[4] | 474 | /* b8*/ DWORD dwSVBRops[DD_ROP_SPACE];/* ROPS supported for System->Vmem blts */
|
---|
[213] | 475 | /* d8*/ DWORD dwVSBCaps; /* driver specific capabilities for Vmem->System blts */
|
---|
| 476 | /* dc*/ DWORD dwVSBCKeyCaps; /* driver color key capabilities for Vmem->System blts */
|
---|
| 477 | /* e0*/ DWORD dwVSBFXCaps; /* driver FX capabilities for Vmem->System blts */
|
---|
[4] | 478 | /* e4*/ DWORD dwVSBRops[DD_ROP_SPACE];/* ROPS supported for Vmem->System blts */
|
---|
[213] | 479 | /*104*/ DWORD dwSSBCaps; /* driver specific capabilities for System->System blts */
|
---|
| 480 | /*108*/ DWORD dwSSBCKeyCaps; /* driver color key capabilities for System->System blts */
|
---|
| 481 | /*10c*/ DWORD dwSSBFXCaps; /* driver FX capabilities for System->System blts */
|
---|
[4] | 482 | /*110*/ DWORD dwSSBRops[DD_ROP_SPACE];/* ROPS supported for System->System blts */
|
---|
[213] | 483 | #if DIRECTDRAW_VERSION >= 0x0500
|
---|
| 484 | /*130*/ DWORD dwMaxVideoPorts; /* maximum number of usable video ports */
|
---|
| 485 | /*134*/ DWORD dwCurrVideoPorts;/* current number of video ports used */
|
---|
| 486 | /*138*/ DWORD dwSVBCaps2; /* more driver specific capabilities for System->Vmem blts */
|
---|
| 487 | /*13c*/ DWORD dwNLVBCaps; /* driver specific capabilities for non-local->local vidmem blts */
|
---|
| 488 | /*140*/ DWORD dwNLVBCaps2; /* more driver specific capabilities non-local->local vidmem blts */
|
---|
| 489 | /*144*/ DWORD dwNLVBCKeyCaps; /* driver color key capabilities for non-local->local vidmem blts */
|
---|
| 490 | /*148*/ DWORD dwNLVBFXCaps; /* driver FX capabilities for non-local->local blts */
|
---|
| 491 | /*14c*/ DWORD dwNLVBRops[DD_ROP_SPACE];/* ROPS supported for non-local->local blts */
|
---|
| 492 | #if DIRECTDRAW_VERSION >= 0x0600
|
---|
| 493 | /*16c*/ DDSCAPS2 ddsCaps; /* Surface Caps */
|
---|
| 494 | #endif
|
---|
[4] | 495 | #else /* DIRECTDRAW_VERSION >= 0x0500 */
|
---|
[213] | 496 | /*130*/ DWORD dwReserved4;
|
---|
| 497 | /*134*/ DWORD dwReserved5;
|
---|
| 498 | /*138*/ DWORD dwReserved6;
|
---|
[4] | 499 | #endif /* DIRECTDRAW_VERSION >= 0x0500 */
|
---|
| 500 | } DDCAPS,*LPDDCAPS;
|
---|
| 501 |
|
---|
[213] | 502 | #if DIRECTDRAW_VERSION == 0x0600
|
---|
| 503 | typedef DDCAPS DDCAPS_DX6,*LPDDCAPS_DX6;
|
---|
| 504 | #endif
|
---|
[4] | 505 |
|
---|
| 506 | /* DDCAPS.dwCaps */
|
---|
[213] | 507 | #define DDCAPS_3D 0x00000001
|
---|
| 508 | #define DDCAPS_ALIGNBOUNDARYDEST 0x00000002
|
---|
| 509 | #define DDCAPS_ALIGNSIZEDEST 0x00000004
|
---|
| 510 | #define DDCAPS_ALIGNBOUNDARYSRC 0x00000008
|
---|
| 511 | #define DDCAPS_ALIGNSIZESRC 0x00000010
|
---|
| 512 | #define DDCAPS_ALIGNSTRIDE 0x00000020
|
---|
| 513 | #define DDCAPS_BLT 0x00000040
|
---|
| 514 | #define DDCAPS_BLTQUEUE 0x00000080
|
---|
| 515 | #define DDCAPS_BLTFOURCC 0x00000100
|
---|
| 516 | #define DDCAPS_BLTSTRETCH 0x00000200
|
---|
| 517 | #define DDCAPS_GDI 0x00000400
|
---|
| 518 | #define DDCAPS_OVERLAY 0x00000800
|
---|
| 519 | #define DDCAPS_OVERLAYCANTCLIP 0x00001000
|
---|
| 520 | #define DDCAPS_OVERLAYFOURCC 0x00002000
|
---|
| 521 | #define DDCAPS_OVERLAYSTRETCH 0x00004000
|
---|
| 522 | #define DDCAPS_PALETTE 0x00008000
|
---|
| 523 | #define DDCAPS_PALETTEVSYNC 0x00010000
|
---|
| 524 | #define DDCAPS_READSCANLINE 0x00020000
|
---|
| 525 | #define DDCAPS_STEREOVIEW 0x00040000
|
---|
| 526 | #define DDCAPS_VBI 0x00080000
|
---|
| 527 | #define DDCAPS_ZBLTS 0x00100000
|
---|
| 528 | #define DDCAPS_ZOVERLAYS 0x00200000
|
---|
| 529 | #define DDCAPS_COLORKEY 0x00400000
|
---|
| 530 | #define DDCAPS_ALPHA 0x00800000
|
---|
| 531 | #define DDCAPS_COLORKEYHWASSIST 0x01000000
|
---|
| 532 | #define DDCAPS_NOHARDWARE 0x02000000
|
---|
| 533 | #define DDCAPS_BLTCOLORFILL 0x04000000
|
---|
| 534 | #define DDCAPS_BANKSWITCHED 0x08000000
|
---|
| 535 | #define DDCAPS_BLTDEPTHFILL 0x10000000
|
---|
| 536 | #define DDCAPS_CANCLIP 0x20000000
|
---|
| 537 | #define DDCAPS_CANCLIPSTRETCHED 0x40000000
|
---|
| 538 | #define DDCAPS_CANBLTSYSMEM 0x80000000
|
---|
[4] | 539 |
|
---|
| 540 | /* DDCAPS.dwCaps2 */
|
---|
[213] | 541 | #define DDCAPS2_CERTIFIED 0x00000001
|
---|
| 542 | #define DDCAPS2_NO2DDURING3DSCENE 0x00000002
|
---|
| 543 | #define DDCAPS2_VIDEOPORT 0x00000004
|
---|
| 544 | #define DDCAPS2_AUTOFLIPOVERLAY 0x00000008
|
---|
| 545 | #define DDCAPS2_CANBOBINTERLEAVED 0x00000010
|
---|
| 546 | #define DDCAPS2_CANBOBNONINTERLEAVED 0x00000020
|
---|
| 547 | #define DDCAPS2_COLORCONTROLOVERLAY 0x00000040
|
---|
| 548 | #define DDCAPS2_COLORCONTROLPRIMARY 0x00000080
|
---|
| 549 | #define DDCAPS2_CANDROPZ16BIT 0x00000100
|
---|
| 550 | #define DDCAPS2_NONLOCALVIDMEM 0x00000200
|
---|
| 551 | #define DDCAPS2_NONLOCALVIDMEMCAPS 0x00000400
|
---|
| 552 | #define DDCAPS2_NOPAGELOCKREQUIRED 0x00000800
|
---|
| 553 | #define DDCAPS2_WIDESURFACES 0x00001000
|
---|
| 554 | #define DDCAPS2_CANFLIPODDEVEN 0x00002000
|
---|
| 555 | #define DDCAPS2_CANBOBHARDWARE 0x00004000
|
---|
| 556 | #define DDCAPS2_COPYFOURCC 0x00008000
|
---|
| 557 | #define DDCAPS2_PRIMARYGAMMA 0x00020000
|
---|
| 558 | #define DDCAPS2_CANRENDERWINDOWED 0x00080000
|
---|
| 559 | #define DDCAPS2_CANCALIBRATEGAMMA 0x00100000
|
---|
| 560 | #define DDCAPS2_FLIPINTERVAL 0x00200000
|
---|
| 561 | #define DDCAPS2_FLIPNOVSYNC 0x00400000
|
---|
[4] | 562 |
|
---|
| 563 |
|
---|
[213] | 564 |
|
---|
| 565 | /* Generic pixel format with 8-bit RGB and alpha components */
|
---|
| 566 |
|
---|
| 567 | typedef struct _DDRGBA
|
---|
| 568 | {
|
---|
| 569 | BYTE red;
|
---|
| 570 | BYTE green;
|
---|
| 571 | BYTE blue;
|
---|
| 572 | BYTE alpha;
|
---|
| 573 | } DDRGBA, *LPDDRGBA;
|
---|
| 574 |
|
---|
[4] | 575 | /* Set/Get Colour Key Flags */
|
---|
| 576 | #define DDCKEY_COLORSPACE 0x00000001 /* Struct is single colour space */
|
---|
| 577 | #define DDCKEY_DESTBLT 0x00000002 /* To be used as dest for blt */
|
---|
| 578 | #define DDCKEY_DESTOVERLAY 0x00000004 /* To be used as dest for CK overlays */
|
---|
| 579 | #define DDCKEY_SRCBLT 0x00000008 /* To be used as src for blt */
|
---|
| 580 | #define DDCKEY_SRCOVERLAY 0x00000010 /* To be used as src for CK overlays */
|
---|
| 581 |
|
---|
| 582 | typedef struct _DDCOLORKEY
|
---|
| 583 | {
|
---|
[213] | 584 | DWORD dwColorSpaceLowValue;/* low boundary of color space that is to
|
---|
| 585 | * be treated as Color Key, inclusive
|
---|
| 586 | */
|
---|
| 587 | DWORD dwColorSpaceHighValue;/* high boundary of color space that is
|
---|
| 588 | * to be treated as Color Key, inclusive
|
---|
| 589 | */
|
---|
[4] | 590 | } DDCOLORKEY,*LPDDCOLORKEY;
|
---|
| 591 |
|
---|
| 592 | /* ddCKEYCAPS bits */
|
---|
[213] | 593 | #define DDCKEYCAPS_DESTBLT 0x00000001
|
---|
| 594 | #define DDCKEYCAPS_DESTBLTCLRSPACE 0x00000002
|
---|
| 595 | #define DDCKEYCAPS_DESTBLTCLRSPACEYUV 0x00000004
|
---|
| 596 | #define DDCKEYCAPS_DESTBLTYUV 0x00000008
|
---|
| 597 | #define DDCKEYCAPS_DESTOVERLAY 0x00000010
|
---|
| 598 | #define DDCKEYCAPS_DESTOVERLAYCLRSPACE 0x00000020
|
---|
| 599 | #define DDCKEYCAPS_DESTOVERLAYCLRSPACEYUV 0x00000040
|
---|
| 600 | #define DDCKEYCAPS_DESTOVERLAYONEACTIVE 0x00000080
|
---|
| 601 | #define DDCKEYCAPS_DESTOVERLAYYUV 0x00000100
|
---|
| 602 | #define DDCKEYCAPS_SRCBLT 0x00000200
|
---|
| 603 | #define DDCKEYCAPS_SRCBLTCLRSPACE 0x00000400
|
---|
| 604 | #define DDCKEYCAPS_SRCBLTCLRSPACEYUV 0x00000800
|
---|
| 605 | #define DDCKEYCAPS_SRCBLTYUV 0x00001000
|
---|
| 606 | #define DDCKEYCAPS_SRCOVERLAY 0x00002000
|
---|
| 607 | #define DDCKEYCAPS_SRCOVERLAYCLRSPACE 0x00004000
|
---|
| 608 | #define DDCKEYCAPS_SRCOVERLAYCLRSPACEYUV 0x00008000
|
---|
| 609 | #define DDCKEYCAPS_SRCOVERLAYONEACTIVE 0x00010000
|
---|
| 610 | #define DDCKEYCAPS_SRCOVERLAYYUV 0x00020000
|
---|
| 611 | #define DDCKEYCAPS_NOCOSTOVERLAY 0x00040000
|
---|
[4] | 612 |
|
---|
[213] | 613 | #ifndef MAKEFOURCC
|
---|
| 614 | #define MAKEFOURCC(ch0, ch1, ch2, ch3) \
|
---|
| 615 | ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
|
---|
| 616 | ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
|
---|
| 617 | #endif //defined(MAKEFOURCC)
|
---|
| 618 |
|
---|
| 619 | // FOURCC codes for DX compressed-texture pixel formats
|
---|
| 620 |
|
---|
| 621 | #define FOURCC_DXT1 (MAKEFOURCC('D','X','T','1'))
|
---|
| 622 | #define FOURCC_DXT2 (MAKEFOURCC('D','X','T','2'))
|
---|
| 623 | #define FOURCC_DXT3 (MAKEFOURCC('D','X','T','3'))
|
---|
| 624 | #define FOURCC_DXT4 (MAKEFOURCC('D','X','T','4'))
|
---|
| 625 | #define FOURCC_DXT5 (MAKEFOURCC('D','X','T','5'))
|
---|
| 626 |
|
---|
| 627 | typedef struct _DDPIXELFORMAT
|
---|
| 628 | {
|
---|
| 629 | DWORD dwSize; /* 0: size of structure */
|
---|
| 630 | DWORD dwFlags; /* 4: pixel format flags */
|
---|
| 631 | DWORD dwFourCC; /* 8: (FOURCC code) */
|
---|
| 632 | union
|
---|
| 633 | {
|
---|
| 634 | DWORD dwRGBBitCount; /* C: how many bits per pixel */
|
---|
| 635 | DWORD dwYUVBitCount; /* C: how many bits per pixel */
|
---|
| 636 | DWORD dwZBufferBitDepth; /* C: how many bits for z buffers */
|
---|
| 637 | DWORD dwAlphaBitDepth; /* C: how many bits for alpha channels*/
|
---|
| 638 | };
|
---|
| 639 | union
|
---|
| 640 | {
|
---|
| 641 | DWORD dwRBitMask; /* 10: mask for red bit*/
|
---|
| 642 | DWORD dwYBitMask; /* 10: mask for Y bits*/
|
---|
| 643 | };
|
---|
| 644 | union
|
---|
| 645 | {
|
---|
| 646 | DWORD dwGBitMask; /* 14: mask for green bits*/
|
---|
| 647 | DWORD dwUBitMask; /* 14: mask for U bits*/
|
---|
| 648 | };
|
---|
| 649 | union
|
---|
| 650 | {
|
---|
| 651 | DWORD dwBBitMask; /* 18: mask for blue bits*/
|
---|
| 652 | DWORD dwVBitMask; /* 18: mask for V bits*/
|
---|
| 653 | };
|
---|
| 654 | union
|
---|
| 655 | {
|
---|
| 656 | DWORD dwRGBAlphaBitMask; /* 1C: mask for alpha channel */
|
---|
| 657 | DWORD dwYUVAlphaBitMask; /* 1C: mask for alpha channel */
|
---|
| 658 | DWORD dwRGBZBitMask; /* 1C: mask for Z channel */
|
---|
| 659 | DWORD dwYUVZBitMask; /* 1C: mask for Z channel */
|
---|
| 660 | };
|
---|
| 661 | /* 20: next structure */
|
---|
[4] | 662 | } DDPIXELFORMAT,*LPDDPIXELFORMAT;
|
---|
| 663 |
|
---|
| 664 | /* DDCAPS.dwFXCaps */
|
---|
[213] | 665 | #define DDFXCAPS_BLTARITHSTRETCHY 0x00000020
|
---|
| 666 | #define DDFXCAPS_BLTARITHSTRETCHYN 0x00000010
|
---|
| 667 | #define DDFXCAPS_BLTMIRRORLEFTRIGHT 0x00000040
|
---|
| 668 | #define DDFXCAPS_BLTMIRRORUPDOWN 0x00000080
|
---|
| 669 | #define DDFXCAPS_BLTROTATION 0x00000100
|
---|
| 670 | #define DDFXCAPS_BLTROTATION90 0x00000200
|
---|
| 671 | #define DDFXCAPS_BLTSHRINKX 0x00000400
|
---|
| 672 | #define DDFXCAPS_BLTSHRINKXN 0x00000800
|
---|
| 673 | #define DDFXCAPS_BLTSHRINKY 0x00001000
|
---|
| 674 | #define DDFXCAPS_BLTSHRINKYN 0x00002000
|
---|
| 675 | #define DDFXCAPS_BLTSTRETCHX 0x00004000
|
---|
| 676 | #define DDFXCAPS_BLTSTRETCHXN 0x00008000
|
---|
| 677 | #define DDFXCAPS_BLTSTRETCHY 0x00010000
|
---|
| 678 | #define DDFXCAPS_BLTSTRETCHYN 0x00020000
|
---|
| 679 | #define DDFXCAPS_OVERLAYARITHSTRETCHY 0x00040000
|
---|
| 680 | #define DDFXCAPS_OVERLAYARITHSTRETCHYN 0x00000008
|
---|
| 681 | #define DDFXCAPS_OVERLAYSHRINKX 0x00080000
|
---|
| 682 | #define DDFXCAPS_OVERLAYSHRINKXN 0x00100000
|
---|
| 683 | #define DDFXCAPS_OVERLAYSHRINKY 0x00200000
|
---|
| 684 | #define DDFXCAPS_OVERLAYSHRINKYN 0x00400000
|
---|
| 685 | #define DDFXCAPS_OVERLAYSTRETCHX 0x00800000
|
---|
| 686 | #define DDFXCAPS_OVERLAYSTRETCHXN 0x01000000
|
---|
| 687 | #define DDFXCAPS_OVERLAYSTRETCHY 0x02000000
|
---|
| 688 | #define DDFXCAPS_OVERLAYSTRETCHYN 0x04000000
|
---|
| 689 | #define DDFXCAPS_OVERLAYMIRRORLEFTRIGHT 0x08000000
|
---|
| 690 | #define DDFXCAPS_OVERLAYMIRRORUPDOWN 0x10000000
|
---|
[4] | 691 |
|
---|
| 692 | /* DDCAPS.dwFXAlphaCaps */
|
---|
[213] | 693 | #define DDFXALPHACAPS_BLTALPHAEDGEBLEND 0x00000001
|
---|
| 694 | #define DDFXALPHACAPS_BLTALPHAPIXELS 0x00000002
|
---|
| 695 | #define DDFXALPHACAPS_BLTALPHAPIXELSNEG 0x00000004
|
---|
| 696 | #define DDFXALPHACAPS_BLTALPHASURFACES 0x00000008
|
---|
| 697 | #define DDFXALPHACAPS_BLTALPHASURFACESNEG 0x00000010
|
---|
| 698 | #define DDFXALPHACAPS_OVERLAYALPHAEDGEBLEND 0x00000020
|
---|
| 699 | #define DDFXALPHACAPS_OVERLAYALPHAPIXELS 0x00000040
|
---|
| 700 | #define DDFXALPHACAPS_OVERLAYALPHAPIXELSNEG 0x00000080
|
---|
| 701 | #define DDFXALPHACAPS_OVERLAYALPHASURFACES 0x00000100
|
---|
| 702 | #define DDFXALPHACAPS_OVERLAYALPHASURFACESNEG 0x00000200
|
---|
[4] | 703 |
|
---|
| 704 | /* DDCAPS.dwPalCaps */
|
---|
[213] | 705 | #define DDPCAPS_4BIT 0x00000001
|
---|
| 706 | #define DDPCAPS_8BITENTRIES 0x00000002
|
---|
| 707 | #define DDPCAPS_8BIT 0x00000004
|
---|
| 708 | #define DDPCAPS_INITIALIZE 0x00000008
|
---|
| 709 | #define DDPCAPS_PRIMARYSURFACE 0x00000010
|
---|
| 710 | #define DDPCAPS_PRIMARYSURFACELEFT 0x00000020
|
---|
| 711 | #define DDPCAPS_ALLOW256 0x00000040
|
---|
| 712 | #define DDPCAPS_VSYNC 0x00000080
|
---|
| 713 | #define DDPCAPS_1BIT 0x00000100
|
---|
| 714 | #define DDPCAPS_2BIT 0x00000200
|
---|
[4] | 715 | #define DDPCAPS_ALPHA 0x00000400
|
---|
| 716 |
|
---|
| 717 | /* DDCAPS.dwSVCaps */
|
---|
[213] | 718 | #define DDSVCAPS_ENIGMA 0x00000001l
|
---|
| 719 | #define DDSVCAPS_FLICKER 0x00000002l
|
---|
| 720 | #define DDSVCAPS_REDBLUE 0x00000004l
|
---|
| 721 | #define DDSVCAPS_SPLIT 0x00000008l
|
---|
[4] | 722 |
|
---|
| 723 | /* BitDepths */
|
---|
[213] | 724 | #define DDBD_1 0x00004000
|
---|
| 725 | #define DDBD_2 0x00002000
|
---|
| 726 | #define DDBD_4 0x00001000
|
---|
| 727 | #define DDBD_8 0x00000800
|
---|
| 728 | #define DDBD_16 0x00000400
|
---|
| 729 | #define DDBD_24 0x00000200
|
---|
| 730 | #define DDBD_32 0x00000100
|
---|
[4] | 731 |
|
---|
| 732 | /* DDOVERLAYFX.dwDDFX */
|
---|
[213] | 733 | #define DDOVERFX_ARITHSTRETCHY 0x00000001
|
---|
| 734 | #define DDOVERFX_MIRRORLEFTRIGHT 0x00000002
|
---|
| 735 | #define DDOVERFX_MIRRORUPDOWN 0x00000004
|
---|
[4] | 736 |
|
---|
[213] | 737 | /* DDSPRITEFX.dwDDFX */
|
---|
| 738 | #define DDSPRITEFX_AFFINETRANSFORM 0x00000001l
|
---|
| 739 | #define DDSPRITEFX_RGBASCALING 0x00000002l
|
---|
| 740 | #define DDSPRITEFX_DEGRADERGBASCALING 0x00000004l
|
---|
| 741 | #define DDSPRITEFX_BILINEARFILTER 0x00000008l
|
---|
| 742 | #define DDSPRITEFX_BLURFILTER 0x00000010l
|
---|
| 743 | #define DDSPRITEFX_FLATFILTER 0x00000020l
|
---|
| 744 | #define DDSPRITEFX_DEGRADEFILTER 0x00000040l
|
---|
| 745 |
|
---|
| 746 |
|
---|
| 747 | /* DIRECTDRAW WAITFORVERTICALBLANK FLAGS */
|
---|
| 748 | #define DDWAITVB_BLOCKBEGIN 0x00000001l
|
---|
| 749 | #define DDWAITVB_BLOCKBEGINEVENT 0x00000002l
|
---|
| 750 | #define DDWAITVB_BLOCKEND 0x00000004l
|
---|
| 751 |
|
---|
| 752 | /* DIRECTDRAW GETFLIPSTATUS FLAGS */
|
---|
| 753 | #define DDGFS_CANFLIP 0x00000001l
|
---|
| 754 | #define DDGFS_ISFLIPDONE 0x00000002l
|
---|
| 755 |
|
---|
| 756 |
|
---|
[4] | 757 | /* DDCOLORKEY.dwFlags */
|
---|
[213] | 758 | #define DDPF_ALPHAPIXELS 0x00000001
|
---|
| 759 | #define DDPF_ALPHA 0x00000002
|
---|
| 760 | #define DDPF_FOURCC 0x00000004
|
---|
| 761 | #define DDPF_PALETTEINDEXED4 0x00000008
|
---|
| 762 | #define DDPF_PALETTEINDEXEDTO8 0x00000010
|
---|
| 763 | #define DDPF_PALETTEINDEXED8 0x00000020
|
---|
| 764 | #define DDPF_RGB 0x00000040
|
---|
| 765 | #define DDPF_COMPRESSED 0x00000080
|
---|
| 766 | #define DDPF_RGBTOYUV 0x00000100
|
---|
| 767 | #define DDPF_YUV 0x00000200
|
---|
| 768 | #define DDPF_ZBUFFER 0x00000400
|
---|
| 769 | #define DDPF_PALETTEINDEXED1 0x00000800
|
---|
| 770 | #define DDPF_PALETTEINDEXED2 0x00001000
|
---|
| 771 | #define DDPF_ZPIXELS 0x00002000
|
---|
[4] | 772 |
|
---|
| 773 | /* SetCooperativeLevel dwFlags */
|
---|
[213] | 774 | #define DDSCL_FULLSCREEN 0x00000001
|
---|
| 775 | #define DDSCL_ALLOWREBOOT 0x00000002
|
---|
| 776 | #define DDSCL_NOWINDOWCHANGES 0x00000004
|
---|
| 777 | #define DDSCL_NORMAL 0x00000008
|
---|
| 778 | #define DDSCL_EXCLUSIVE 0x00000010
|
---|
| 779 | #define DDSCL_ALLOWMODEX 0x00000040
|
---|
| 780 | #define DDSCL_SETFOCUSWINDOW 0x00000080
|
---|
| 781 | #define DDSCL_SETDEVICEWINDOW 0x00000100
|
---|
| 782 | #define DDSCL_CREATEDEVICEWINDOW 0x00000200
|
---|
[4] | 783 |
|
---|
| 784 |
|
---|
| 785 | /* DDSURFACEDESC.dwFlags */
|
---|
[213] | 786 | #define DDSD_CAPS 0x00000001
|
---|
| 787 | #define DDSD_HEIGHT 0x00000002
|
---|
| 788 | #define DDSD_WIDTH 0x00000004
|
---|
| 789 | #define DDSD_PITCH 0x00000008
|
---|
| 790 | #define DDSD_BACKBUFFERCOUNT 0x00000020
|
---|
| 791 | #define DDSD_ZBUFFERBITDEPTH 0x00000040
|
---|
| 792 | #define DDSD_ALPHABITDEPTH 0x00000080
|
---|
| 793 | #define DDSD_LPSURFACE 0x00000800
|
---|
| 794 | #define DDSD_PIXELFORMAT 0x00001000
|
---|
| 795 | #define DDSD_CKDESTOVERLAY 0x00002000
|
---|
| 796 | #define DDSD_CKDESTBLT 0x00004000
|
---|
| 797 | #define DDSD_CKSRCOVERLAY 0x00008000
|
---|
| 798 | #define DDSD_CKSRCBLT 0x00010000
|
---|
| 799 | #define DDSD_MIPMAPCOUNT 0x00020000
|
---|
| 800 | #define DDSD_REFRESHRATE 0x00040000
|
---|
| 801 | #define DDSD_LINEARSIZE 0x00080000
|
---|
| 802 | #define DDSD_TEXTURESTAGE 0x00100000
|
---|
| 803 | #define DDSD_ALL 0x001ff9ee
|
---|
[4] | 804 |
|
---|
| 805 | /* EnumSurfaces flags */
|
---|
| 806 | #define DDENUMSURFACES_ALL 0x00000001
|
---|
| 807 | #define DDENUMSURFACES_MATCH 0x00000002
|
---|
| 808 | #define DDENUMSURFACES_NOMATCH 0x00000004
|
---|
| 809 | #define DDENUMSURFACES_CANBECREATED 0x00000008
|
---|
| 810 | #define DDENUMSURFACES_DOESEXIST 0x00000010
|
---|
| 811 |
|
---|
| 812 | /* SetDisplayMode flags */
|
---|
[213] | 813 | #define DDSDM_STANDARDVGAMODE 0x00000001
|
---|
[4] | 814 |
|
---|
| 815 | /* EnumDisplayModes flags */
|
---|
[213] | 816 | #define DDEDM_REFRESHRATES 0x00000001
|
---|
| 817 | #define DDEDM_STANDARDVGAMODES 0x00000002
|
---|
[4] | 818 |
|
---|
| 819 |
|
---|
| 820 | typedef struct _DDSURFACEDESC
|
---|
| 821 | {
|
---|
[213] | 822 | DWORD dwSize; /* 0: size of the DDSURFACEDESC structure*/
|
---|
| 823 | DWORD dwFlags; /* 4: determines what fields are valid*/
|
---|
| 824 | DWORD dwHeight; /* 8: height of surface to be created*/
|
---|
| 825 | DWORD dwWidth; /* C: width of input surface*/
|
---|
| 826 | LONG lPitch; /*10: distance to start of next line (return value only)*/
|
---|
| 827 | DWORD dwBackBufferCount;/* 14: number of back buffers requested*/
|
---|
| 828 | union {
|
---|
| 829 | DWORD dwMipMapCount;/* 18:number of mip-map levels requested*/
|
---|
| 830 | DWORD dwZBufferBitDepth;/*18: depth of Z buffer requested*/
|
---|
| 831 | DWORD dwRefreshRate;/* 18:refresh rate (used when display mode is described)*/
|
---|
| 832 | } ;
|
---|
| 833 | DWORD dwAlphaBitDepth;/* 1C:depth of alpha buffer requested*/
|
---|
| 834 | DWORD dwReserved; /* 20:reserved*/
|
---|
| 835 | union {
|
---|
| 836 | LPVOID lpSurface; /* 24:pointer to the associated surface memory*/
|
---|
| 837 | DWORD dwLinearSize; /* 24:Formless late-allocated optimized surface size*/
|
---|
| 838 | } ;
|
---|
| 839 | DDCOLORKEY ddckCKDestOverlay;/* 28: CK for dest overlay use*/
|
---|
| 840 | DDCOLORKEY ddckCKDestBlt; /* 30: CK for destination blt use*/
|
---|
| 841 | DDCOLORKEY ddckCKSrcOverlay;/* 38: CK for source overlay use*/
|
---|
| 842 | DDCOLORKEY ddckCKSrcBlt; /* 40: CK for source blt use*/
|
---|
| 843 | DDPIXELFORMAT ddpfPixelFormat;/* 48: pixel format description of the surface*/
|
---|
| 844 | DDSCAPS ddsCaps; /* 68: direct draw surface caps */
|
---|
[4] | 845 | } DDSURFACEDESC,*LPDDSURFACEDESC;
|
---|
| 846 |
|
---|
[213] | 847 |
|
---|
| 848 | typedef struct _DDSURFACEDESC2
|
---|
| 849 | {
|
---|
| 850 | DWORD dwSize;
|
---|
| 851 | DWORD dwFlags;
|
---|
| 852 | DWORD dwHeight;
|
---|
| 853 | DWORD dwWidth;
|
---|
| 854 | union
|
---|
| 855 | {
|
---|
| 856 | LONG lPitch;
|
---|
| 857 | DWORD dwLinearSize;
|
---|
| 858 | };
|
---|
| 859 | DWORD dwBackBufferCount;
|
---|
| 860 | union
|
---|
| 861 | {
|
---|
| 862 | DWORD dwMipMapCount;
|
---|
| 863 | DWORD dwRefreshRate;
|
---|
| 864 | };
|
---|
| 865 | DWORD dwAlphaBitDepth;
|
---|
| 866 | DWORD dwReserved;
|
---|
| 867 | LPVOID lpSurface;
|
---|
| 868 | DDCOLORKEY ddckCKDestOverlay;
|
---|
| 869 | DDCOLORKEY ddckCKDestBlt;
|
---|
| 870 | DDCOLORKEY ddckCKSrcOverlay;
|
---|
| 871 | DDCOLORKEY ddckCKSrcBlt;
|
---|
| 872 | DDPIXELFORMAT ddpfPixelFormat;
|
---|
| 873 | DDSCAPS2 ddsCaps;
|
---|
| 874 | DWORD dwTextureStage;
|
---|
| 875 | } DDSURFACEDESC2, *LPDDSURFACEDESC2;
|
---|
| 876 |
|
---|
| 877 |
|
---|
[4] | 878 | /* DDCOLORCONTROL.dwFlags */
|
---|
[213] | 879 | #define DDCOLOR_BRIGHTNESS 0x00000001
|
---|
| 880 | #define DDCOLOR_CONTRAST 0x00000002
|
---|
| 881 | #define DDCOLOR_HUE 0x00000004
|
---|
| 882 | #define DDCOLOR_SATURATION 0x00000008
|
---|
| 883 | #define DDCOLOR_SHARPNESS 0x00000010
|
---|
| 884 | #define DDCOLOR_GAMMA 0x00000020
|
---|
| 885 | #define DDCOLOR_COLORENABLE 0x00000040
|
---|
[4] | 886 |
|
---|
| 887 | typedef struct {
|
---|
[213] | 888 | DWORD dwSize;
|
---|
| 889 | DWORD dwFlags;
|
---|
| 890 | LONG lBrightness;
|
---|
| 891 | LONG lContrast;
|
---|
| 892 | LONG lHue;
|
---|
| 893 | LONG lSaturation;
|
---|
| 894 | LONG lSharpness;
|
---|
| 895 | LONG lGamma;
|
---|
| 896 | LONG lColorEnable;
|
---|
| 897 | DWORD dwReserved1;
|
---|
[4] | 898 | } DDCOLORCONTROL,*LPDDCOLORCONTROL;
|
---|
| 899 |
|
---|
[4133] | 900 | typedef DWORD (* CALLBACK LPCLIPPERCALLBACK)(LPDIRECTDRAWCLIPPER , HWND , DWORD , LPVOID );
|
---|
[213] | 901 | #ifdef STREAMING
|
---|
[4133] | 902 | typedef DWORD (* CALLBACK LPSURFACESTREAMINGCALLBACK)(DWORD);
|
---|
[213] | 903 | #endif
|
---|
| 904 |
|
---|
| 905 |
|
---|
[4133] | 906 | typedef BOOL (* CALLBACK LPDDENUMCALLBACKA)(GUID *, LPSTR, LPSTR, LPVOID);
|
---|
| 907 | typedef BOOL (* CALLBACK LPDDENUMCALLBACKW)(GUID *, LPWSTR, LPWSTR, LPVOID);
|
---|
[4] | 908 | DECL_WINELIB_TYPE_AW(LPDDENUMCALLBACK)
|
---|
| 909 |
|
---|
[4133] | 910 | typedef HRESULT (* CALLBACK LPDDENUMMODESCALLBACK)(LPDDSURFACEDESC, LPVOID);
|
---|
| 911 | typedef HRESULT (* CALLBACK LPDDENUMSURFACESCALLBACK)(LPDIRECTDRAWSURFACE, LPDDSURFACEDESC, LPVOID);
|
---|
| 912 | typedef HRESULT (* CALLBACK LPDDENUMMODESCALLBACK2)(LPDDSURFACEDESC2, LPVOID);
|
---|
| 913 | typedef HRESULT (* CALLBACK LPDDENUMSURFACESCALLBACK2)(LPDIRECTDRAWSURFACE4, LPDDSURFACEDESC2, LPVOID);
|
---|
[4] | 914 |
|
---|
[4133] | 915 | typedef BOOL (* CALLBACK LPDDENUMCALLBACKEXA)(GUID *, LPSTR, LPSTR, LPVOID, HMONITOR);
|
---|
| 916 | typedef BOOL (* CALLBACK LPDDENUMCALLBACKEXW)(GUID *, LPWSTR, LPWSTR, LPVOID, HMONITOR);
|
---|
[213] | 917 |
|
---|
[4] | 918 | DECL_WINELIB_TYPE_AW(LPDDENUMCALLBACKEX)
|
---|
| 919 |
|
---|
| 920 | HRESULT WINAPI DirectDrawEnumerateExA( LPDDENUMCALLBACKEXA lpCallback, LPVOID lpContext, DWORD dwFlags);
|
---|
| 921 | HRESULT WINAPI DirectDrawEnumerateExW( LPDDENUMCALLBACKEXW lpCallback, LPVOID lpContext, DWORD dwFlags);
|
---|
[4133] | 922 | #define DirectDrawEnumerateEx WINELIB_NAME_AW(DirectDrawEnumerateEx)
|
---|
| 923 |
|
---|
[213] | 924 | #ifndef SM_CMONITORS
|
---|
| 925 | #define HMONITOR HANDLE
|
---|
| 926 | #endif
|
---|
[4] | 927 |
|
---|
| 928 | /* flags for DirectDrawEnumerateEx */
|
---|
[213] | 929 | #define DDENUM_ATTACHEDSECONDARYDEVICES 0x00000001
|
---|
| 930 | #define DDENUM_DETACHEDSECONDARYDEVICES 0x00000002
|
---|
| 931 | #define DDENUM_NONDISPLAYDEVICES 0x00000004
|
---|
[4] | 932 |
|
---|
[213] | 933 | #define DDCREATE_HARDWAREONLY 0x00000001l
|
---|
| 934 | #define DDCREATE_EMULATIONONLY 0x00000002l
|
---|
| 935 |
|
---|
[4] | 936 | typedef struct _DDBLTFX
|
---|
| 937 | {
|
---|
[213] | 938 | DWORD dwSize; /* size of structure */
|
---|
| 939 | DWORD dwDDFX; /* FX operations */
|
---|
| 940 | DWORD dwROP; /* Win32 raster operations */
|
---|
| 941 | DWORD dwDDROP; /* Raster operations new for DirectDraw */
|
---|
| 942 | DWORD dwRotationAngle; /* Rotation angle for blt */
|
---|
| 943 | DWORD dwZBufferOpCode; /* ZBuffer compares */
|
---|
| 944 | DWORD dwZBufferLow; /* Low limit of Z buffer */
|
---|
| 945 | DWORD dwZBufferHigh; /* High limit of Z buffer */
|
---|
| 946 | DWORD dwZBufferBaseDest; /* Destination base value */
|
---|
| 947 | DWORD dwZDestConstBitDepth; /* Bit depth used to specify Z constant for destination */
|
---|
| 948 | union
|
---|
| 949 | {
|
---|
| 950 | DWORD dwZDestConst; /* Constant to use as Z buffer for dest */
|
---|
| 951 | LPDIRECTDRAWSURFACE lpDDSZBufferDest; /* Surface to use as Z buffer for dest */
|
---|
| 952 | };
|
---|
| 953 | DWORD dwZSrcConstBitDepth; /* Bit depth used to specify Z constant for source */
|
---|
| 954 | union
|
---|
| 955 | {
|
---|
| 956 | DWORD dwZSrcConst; /* Constant to use as Z buffer for src */
|
---|
| 957 | LPDIRECTDRAWSURFACE lpDDSZBufferSrc; /* Surface to use as Z buffer for src */
|
---|
| 958 | };
|
---|
| 959 | DWORD dwAlphaEdgeBlendBitDepth; /* Bit depth used to specify constant for alpha edge blend */
|
---|
| 960 | DWORD dwAlphaEdgeBlend; /* Alpha for edge blending */
|
---|
| 961 | DWORD dwReserved;
|
---|
| 962 | DWORD dwAlphaDestConstBitDepth; /* Bit depth used to specify alpha constant for destination */
|
---|
| 963 | union
|
---|
| 964 | {
|
---|
| 965 | DWORD dwAlphaDestConst; /* Constant to use as Alpha Channel */
|
---|
| 966 | LPDIRECTDRAWSURFACE lpDDSAlphaDest; /* Surface to use as Alpha Channel */
|
---|
| 967 | };
|
---|
| 968 | DWORD dwAlphaSrcConstBitDepth; /* Bit depth used to specify alpha constant for source */
|
---|
| 969 | union
|
---|
| 970 | {
|
---|
| 971 | DWORD dwAlphaSrcConst; /* Constant to use as Alpha Channel */
|
---|
| 972 | LPDIRECTDRAWSURFACE lpDDSAlphaSrc; /* Surface to use as Alpha Channel */
|
---|
| 973 | };
|
---|
| 974 | union
|
---|
| 975 | {
|
---|
| 976 | DWORD dwFillColor; /* color in RGB or Palettized */
|
---|
| 977 | DWORD dwFillDepth; /* depth value for z-buffer */
|
---|
| 978 | DWORD dwFillPixel; /* pixel val for RGBA or RGBZ */
|
---|
| 979 | LPDIRECTDRAWSURFACE lpDDSPattern; /* Surface to use as pattern */
|
---|
| 980 | };
|
---|
| 981 | DDCOLORKEY ddckDestColorkey; /* DestColorkey override */
|
---|
| 982 | DDCOLORKEY ddckSrcColorkey; /* SrcColorkey override */
|
---|
[4] | 983 | } DDBLTFX,*LPDDBLTFX;
|
---|
| 984 |
|
---|
| 985 | /* dwDDFX */
|
---|
| 986 | /* arithmetic stretching along y axis */
|
---|
[213] | 987 | #define DDBLTFX_ARITHSTRETCHY 0x00000001
|
---|
[4] | 988 | /* mirror on y axis */
|
---|
[213] | 989 | #define DDBLTFX_MIRRORLEFTRIGHT 0x00000002
|
---|
[4] | 990 | /* mirror on x axis */
|
---|
[213] | 991 | #define DDBLTFX_MIRRORUPDOWN 0x00000004
|
---|
[4] | 992 | /* do not tear */
|
---|
[213] | 993 | #define DDBLTFX_NOTEARING 0x00000008
|
---|
[4] | 994 | /* 180 degrees clockwise rotation */
|
---|
[213] | 995 | #define DDBLTFX_ROTATE180 0x00000010
|
---|
[4] | 996 | /* 270 degrees clockwise rotation */
|
---|
[213] | 997 | #define DDBLTFX_ROTATE270 0x00000020
|
---|
[4] | 998 | /* 90 degrees clockwise rotation */
|
---|
[213] | 999 | #define DDBLTFX_ROTATE90 0x00000040
|
---|
[4] | 1000 | /* dwZBufferLow and dwZBufferHigh specify limits to the copied Z values */
|
---|
[213] | 1001 | #define DDBLTFX_ZBUFFERRANGE 0x00000080
|
---|
[4] | 1002 | /* add dwZBufferBaseDest to every source z value before compare */
|
---|
[213] | 1003 | #define DDBLTFX_ZBUFFERBASEDEST 0x00000100
|
---|
[4] | 1004 |
|
---|
| 1005 | typedef struct _DDOVERLAYFX
|
---|
| 1006 | {
|
---|
[213] | 1007 | DWORD dwSize; /* size of structure */
|
---|
| 1008 | DWORD dwAlphaEdgeBlendBitDepth; /* Bit depth used to specify constant for alpha edge blend */
|
---|
| 1009 | DWORD dwAlphaEdgeBlend; /* Constant to use as alpha for edge blend */
|
---|
| 1010 | DWORD dwReserved;
|
---|
| 1011 | DWORD dwAlphaDestConstBitDepth; /* Bit depth used to specify alpha constant for destination */
|
---|
| 1012 | union
|
---|
| 1013 | {
|
---|
| 1014 | DWORD dwAlphaDestConst; /* Constant to use as alpha channel for dest */
|
---|
| 1015 | LPDIRECTDRAWSURFACE lpDDSAlphaDest; /* Surface to use as alpha channel for dest */
|
---|
| 1016 | };
|
---|
| 1017 | DWORD dwAlphaSrcConstBitDepth; /* Bit depth used to specify alpha constant for source */
|
---|
| 1018 | union
|
---|
| 1019 | {
|
---|
| 1020 | DWORD dwAlphaSrcConst; /* Constant to use as alpha channel for src */
|
---|
| 1021 | LPDIRECTDRAWSURFACE lpDDSAlphaSrc; /* Surface to use as alpha channel for src */
|
---|
| 1022 | };
|
---|
| 1023 | DDCOLORKEY dckDestColorkey; /* DestColorkey override */
|
---|
| 1024 | DDCOLORKEY dckSrcColorkey; /* DestColorkey override */
|
---|
| 1025 | DWORD dwDDFX; /* Overlay FX */
|
---|
| 1026 | DWORD dwFlags; /* flags */
|
---|
[4] | 1027 | } DDOVERLAYFX,*LPDDOVERLAYFX;
|
---|
| 1028 |
|
---|
[213] | 1029 |
|
---|
| 1030 | //
|
---|
| 1031 | // DDGAMMARAMP
|
---|
| 1032 | //
|
---|
| 1033 |
|
---|
| 1034 | typedef struct _DDGAMMARAMP
|
---|
| 1035 | {
|
---|
| 1036 | WORD red[256];
|
---|
| 1037 | WORD green[256];
|
---|
| 1038 | WORD blue[256];
|
---|
| 1039 | } DDGAMMARAMP,*LPDDGAMMARAMP;
|
---|
| 1040 |
|
---|
[4] | 1041 | typedef struct _DDBLTBATCH
|
---|
| 1042 | {
|
---|
[213] | 1043 | LPRECT lprDest;
|
---|
| 1044 | LPDIRECTDRAWSURFACE lpDDSSrc;
|
---|
| 1045 | LPRECT lprSrc;
|
---|
| 1046 | DWORD dwFlags;
|
---|
| 1047 | LPDDBLTFX lpDDBltFx;
|
---|
[4] | 1048 | } DDBLTBATCH,*LPDDBLTBATCH;
|
---|
| 1049 |
|
---|
| 1050 | #define MAX_DDDEVICEID_STRING 512
|
---|
| 1051 |
|
---|
[213] | 1052 | typedef struct tagDDDEVICEIDENTIFIER
|
---|
| 1053 | {
|
---|
[4] | 1054 | char szDriver[MAX_DDDEVICEID_STRING];
|
---|
| 1055 | char szDescription[MAX_DDDEVICEID_STRING];
|
---|
| 1056 | LARGE_INTEGER liDriverVersion;
|
---|
| 1057 | DWORD dwVendorId;
|
---|
| 1058 | DWORD dwDeviceId;
|
---|
| 1059 | DWORD dwSubSysId;
|
---|
| 1060 | DWORD dwRevision;
|
---|
| 1061 | GUID guidDeviceIdentifier;
|
---|
[213] | 1062 | } DDDEVICEIDENTIFIER, *LPDDDEVICEIDENTIFIER;
|
---|
[4] | 1063 |
|
---|
[213] | 1064 | #define DDGDI_GETHOSTIDENTIFIER 0x00000001L
|
---|
[4] | 1065 |
|
---|
| 1066 | /*****************************************************************************
|
---|
| 1067 | * IDirectDrawPalette interface
|
---|
| 1068 | */
|
---|
| 1069 | #define ICOM_INTERFACE IDirectDrawPalette
|
---|
| 1070 | #define IDirectDrawPalette_METHODS \
|
---|
| 1071 | ICOM_METHOD1(HRESULT,GetCaps, LPDWORD,lpdwCaps) \
|
---|
| 1072 | ICOM_METHOD4(HRESULT,GetEntries, DWORD,dwFlags, DWORD,dwBase, DWORD,dwNumEntries, LPPALETTEENTRY,lpEntries) \
|
---|
| 1073 | ICOM_METHOD3(HRESULT,Initialize, LPDIRECTDRAW,lpDD, DWORD,dwFlags, LPPALETTEENTRY,lpDDColorTable) \
|
---|
| 1074 | ICOM_METHOD4(HRESULT,SetEntries, DWORD,dwFlags, DWORD,dwStartingEntry, DWORD,dwCount, LPPALETTEENTRY,lpEntries)
|
---|
| 1075 | #define IDirectDrawPalette_IMETHODS \
|
---|
| 1076 | IUnknown_IMETHODS \
|
---|
| 1077 | IDirectDrawPalette_METHODS
|
---|
| 1078 | ICOM_DEFINE(IDirectDrawPalette,IUnknown)
|
---|
| 1079 | #undef ICOM_INTERFACE
|
---|
| 1080 |
|
---|
[213] | 1081 |
|
---|
[4] | 1082 | #ifdef ICOM_CINTERFACE
|
---|
[213] | 1083 | // IUnknown methods
|
---|
[4] | 1084 | #define IDirectDrawPalette_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
| 1085 | #define IDirectDrawPalette_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
| 1086 | #define IDirectDrawPalette_Release(p) ICOM_CALL (Release,p)
|
---|
[213] | 1087 | // IDirectDrawPalette methods
|
---|
[4] | 1088 | #define IDirectDrawPalette_GetCaps(p,a) ICOM_CALL1(GetCaps,p,a)
|
---|
| 1089 | #define IDirectDrawPalette_GetEntries(p,a,b,c,d) ICOM_CALL4(GetEntries,p,a,b,c,d)
|
---|
| 1090 | #define IDirectDrawPalette_Initialize(p,a,b,c) ICOM_CALL3(Initialize,p,a,b,c)
|
---|
| 1091 | #define IDirectDrawPalette_SetEntries(p,a,b,c,d) ICOM_CALL4(SetEntries,p,a,b,c,d)
|
---|
| 1092 | #endif
|
---|
| 1093 |
|
---|
| 1094 |
|
---|
| 1095 | /*****************************************************************************
|
---|
| 1096 | * IDirectDrawClipper interface
|
---|
| 1097 | */
|
---|
| 1098 | #define ICOM_INTERFACE IDirectDrawClipper
|
---|
| 1099 | #define IDirectDrawClipper_METHODS \
|
---|
| 1100 | ICOM_METHOD3(HRESULT,GetClipList, LPRECT,lpRect, LPRGNDATA,lpClipList, LPDWORD,lpdwSize) \
|
---|
| 1101 | ICOM_METHOD1(HRESULT,GetHWnd, HWND*,lphWnd) \
|
---|
| 1102 | ICOM_METHOD2(HRESULT,Initialize, LPDIRECTDRAW,lpDD, DWORD,dwFlags) \
|
---|
| 1103 | ICOM_METHOD1(HRESULT,IsClipListChanged, BOOL*,lpbChanged) \
|
---|
| 1104 | ICOM_METHOD2(HRESULT,SetClipList, LPRGNDATA,lpClipList, DWORD,dwFlags) \
|
---|
| 1105 | ICOM_METHOD2(HRESULT,SetHWnd, DWORD,dwFlags, HWND,hWnd)
|
---|
| 1106 | #define IDirectDrawClipper_IMETHODS \
|
---|
| 1107 | IUnknown_IMETHODS \
|
---|
| 1108 | IDirectDrawClipper_METHODS
|
---|
| 1109 | ICOM_DEFINE(IDirectDrawClipper,IUnknown)
|
---|
| 1110 | #undef ICOM_INTERFACE
|
---|
| 1111 |
|
---|
| 1112 | #ifdef ICOM_CINTERFACE
|
---|
| 1113 | /*** IUnknown methods ***/
|
---|
| 1114 | #define IDirectDrawClipper_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
| 1115 | #define IDirectDrawClipper_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
| 1116 | #define IDirectDrawClipper_Release(p) ICOM_CALL (Release,p)
|
---|
| 1117 | /*** IDirectDrawClipper methods ***/
|
---|
| 1118 | #define IDirectDrawClipper_GetClipList(p,a,b,c) ICOM_CALL3(GetClipList,p,a,b,c)
|
---|
| 1119 | #define IDirectDrawClipper_GetHWnd(p,a) ICOM_CALL1(GetHWnd,p,a)
|
---|
| 1120 | #define IDirectDrawClipper_Initialize(p,a,b) ICOM_CALL2(Initialize,p,a,b)
|
---|
| 1121 | #define IDirectDrawClipper_IsClipListChanged(p,a) ICOM_CALL1(IsClipListChanged,p,a)
|
---|
| 1122 | #define IDirectDrawClipper_SetClipList(p,a,b) ICOM_CALL2(SetClipList,p,a,b)
|
---|
| 1123 | #define IDirectDrawClipper_SetHWnd(p,a,b) ICOM_CALL2(SetHWnd,p,a,b)
|
---|
| 1124 | #endif
|
---|
| 1125 |
|
---|
| 1126 |
|
---|
| 1127 | /*****************************************************************************
|
---|
| 1128 | * IDirectDraw interface
|
---|
| 1129 | */
|
---|
[213] | 1130 | #define ICOM_INTERFACE VOID
|
---|
| 1131 | //#define ICOM_INTERFACE IDirectDraw
|
---|
[4] | 1132 | #define IDirectDraw_METHODS \
|
---|
| 1133 | ICOM_METHOD (HRESULT,Compact) \
|
---|
| 1134 | ICOM_METHOD3(HRESULT,CreateClipper, DWORD,dwFlags, LPDIRECTDRAWCLIPPER*,lplpDDClipper, IUnknown*,pUnkOuter) \
|
---|
| 1135 | ICOM_METHOD4(HRESULT,CreatePalette, DWORD,dwFlags, LPPALETTEENTRY,lpColorTable, LPDIRECTDRAWPALETTE*,lplpDDPalette, IUnknown*,pUnkOuter) \
|
---|
| 1136 | ICOM_METHOD3(HRESULT,CreateSurface, LPDDSURFACEDESC,lpDDSurfaceDesc, LPDIRECTDRAWSURFACE*,lplpDDSurface, IUnknown*,pUnkOuter) \
|
---|
| 1137 | ICOM_METHOD2(HRESULT,DuplicateSurface, LPDIRECTDRAWSURFACE,lpDDSurface, LPDIRECTDRAWSURFACE*,lplpDupDDSurface) \
|
---|
| 1138 | ICOM_METHOD4(HRESULT,EnumDisplayModes, DWORD,dwFlags, LPDDSURFACEDESC,lpDDSurfaceDesc, LPVOID,lpContext, LPDDENUMMODESCALLBACK,lpEnumModesCallback) \
|
---|
| 1139 | ICOM_METHOD4(HRESULT,EnumSurfaces, DWORD,dwFlags, LPDDSURFACEDESC,lpDDSD, LPVOID,lpContext, LPDDENUMSURFACESCALLBACK,lpEnumSurfacesCallback) \
|
---|
| 1140 | ICOM_METHOD (HRESULT,FlipToGDISurface) \
|
---|
| 1141 | ICOM_METHOD2(HRESULT,GetCaps, LPDDCAPS,lpDDDriverCaps, LPDDCAPS,lpDDHELCaps) \
|
---|
| 1142 | ICOM_METHOD1(HRESULT,GetDisplayMode, LPDDSURFACEDESC,lpDDSurfaceDesc) \
|
---|
| 1143 | ICOM_METHOD2(HRESULT,GetFourCCCodes, LPDWORD,lpNumCodes, LPDWORD,lpCodes) \
|
---|
| 1144 | ICOM_METHOD1(HRESULT,GetGDISurface, LPDIRECTDRAWSURFACE*,lplpGDIDDSurface) \
|
---|
| 1145 | ICOM_METHOD1(HRESULT,GetMonitorFrequency, LPDWORD,lpdwFrequency) \
|
---|
| 1146 | ICOM_METHOD1(HRESULT,GetScanLine, LPDWORD,lpdwScanLine) \
|
---|
| 1147 | ICOM_METHOD1(HRESULT,GetVerticalBlankStatus, BOOL*,lpbIsInVB) \
|
---|
| 1148 | ICOM_METHOD1(HRESULT,Initialize, GUID*,lpGUID) \
|
---|
| 1149 | ICOM_METHOD (HRESULT,RestoreDisplayMode) \
|
---|
| 1150 | ICOM_METHOD2(HRESULT,SetCooperativeLevel, HWND,hWnd, DWORD,dwFlags) \
|
---|
[213] | 1151 | ICOM_METHOD3(HRESULT,SetDisplayMode, DWORD,dwWidth, DWORD,dwHeight, DWORD,dwBPP) \
|
---|
[4] | 1152 | ICOM_METHOD2(HRESULT,WaitForVerticalBlank, DWORD,dwFlags, HANDLE,hEvent)
|
---|
| 1153 | #define IDirectDraw_IMETHODS \
|
---|
| 1154 | IUnknown_IMETHODS \
|
---|
| 1155 | IDirectDraw_METHODS
|
---|
| 1156 | ICOM_DEFINE(IDirectDraw,IUnknown)
|
---|
[213] | 1157 | //#undef ICOM_INTERFACE
|
---|
[4] | 1158 |
|
---|
[213] | 1159 |
|
---|
[4] | 1160 | #ifdef ICOM_CINTERFACE
|
---|
[213] | 1161 | /*** IUnknown methods ***/
|
---|
| 1162 | #define IDirectDraw_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
| 1163 | #define IDirectDraw_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
| 1164 | #define IDirectDraw_Release(p) ICOM_CALL (Release,p)
|
---|
| 1165 | /*** IDirectDraw methods ***/
|
---|
| 1166 | #define IDirectDraw_Compact(p) ICOM_CALL (Compact,p)
|
---|
| 1167 | #define IDirectDraw_CreateClipper(p,a,b,c) ICOM_CALL3(CreateClipper,p,a,b,c)
|
---|
| 1168 | #define IDirectDraw_CreatePalette(p,a,b,c,d) ICOM_CALL4(CreatePalette,p,a,b,c,d)
|
---|
| 1169 | #define IDirectDraw_CreateSurface(p,a,b,c) ICOM_CALL3(CreateSurface,p,a,b,c)
|
---|
| 1170 | #define IDirectDraw_DuplicateSurface(p,a,b) ICOM_CALL2(DuplicateSurface,p,a,b)
|
---|
| 1171 | #define IDirectDraw_EnumDisplayModes(p,a,b,c,d) ICOM_CALL4(EnumDisplayModes,p,a,b,c,d)
|
---|
| 1172 | #define IDirectDraw_EnumSurfaces(p,a,b,c,d) ICOM_CALL4(EnumSurfaces,p,a,b,c,d)
|
---|
| 1173 | #define IDirectDraw_FlipToGDISurface(p) ICOM_CALL (FlipToGDISurface,p)
|
---|
| 1174 | #define IDirectDraw_GetCaps(p,a,b) ICOM_CALL2(GetCaps,p,a,b)
|
---|
| 1175 | #define IDirectDraw_GetDisplayMode(p,a) ICOM_CALL1(GetDisplayMode,p,a)
|
---|
| 1176 | #define IDirectDraw_GetFourCCCodes(p,a,b) ICOM_CALL2(GetFourCCCodes,p,a,b)
|
---|
| 1177 | #define IDirectDraw_GetGDISurface(p,a) ICOM_CALL1(GetGDISurface,p,a)
|
---|
| 1178 | #define IDirectDraw_GetMonitorFrequency(p,a) ICOM_CALL1(GetMonitorFrequency,p,a)
|
---|
| 1179 | #define IDirectDraw_GetScanLine(p,a) ICOM_CALL1(GetScanLine,p,a)
|
---|
| 1180 | #define IDirectDraw_GetVerticalBlankStatus(p,a) ICOM_CALL1(GetVerticalBlankStatus,p,a)
|
---|
| 1181 | #define IDirectDraw_Initialize(p,a) ICOM_CALL1(Initialize,p,a)
|
---|
| 1182 | #define IDirectDraw_RestoreDisplayMode(p) ICOM_CALL (RestoreDisplayMode,p)
|
---|
| 1183 | #define IDirectDraw_SetCooperativeLevel(p,a,b) ICOM_CALL2(SetCooperativeLevel,p,a,b)
|
---|
| 1184 | #define IDirectDraw_SetDisplayMode(p,a,b,c) ICOM_CALL3(SetDisplayMode,p,a,b,c)
|
---|
| 1185 | #define IDirectDraw_WaitForVerticalBlank(p,a,b) ICOM_CALL2(WaitForVerticalBlank,p,a,b)
|
---|
[4] | 1186 | #endif
|
---|
| 1187 |
|
---|
| 1188 |
|
---|
| 1189 | /* flags for Lock() */
|
---|
[213] | 1190 | #define DDLOCK_SURFACEMEMORYPTR 0x00000000
|
---|
| 1191 | #define DDLOCK_WAIT 0x00000001
|
---|
| 1192 | #define DDLOCK_EVENT 0x00000002
|
---|
| 1193 | #define DDLOCK_READONLY 0x00000010
|
---|
| 1194 | #define DDLOCK_WRITEONLY 0x00000020
|
---|
| 1195 | #define DDLOCK_NOSYSLOCK 0x00000800
|
---|
[4] | 1196 |
|
---|
| 1197 |
|
---|
| 1198 | /*****************************************************************************
|
---|
| 1199 | * IDirectDraw2 interface
|
---|
| 1200 | */
|
---|
[213] | 1201 | /* Note: IDirectDraw2 cannot derive from IDirectDraw because the number of
|
---|
[4] | 1202 | * arguments of SetDisplayMode has changed !
|
---|
| 1203 | */
|
---|
[213] | 1204 | //#define ICOM_INTERFACE IDirectDraw2
|
---|
[4] | 1205 | #define IDirectDraw2_METHODS \
|
---|
| 1206 | ICOM_METHOD (HRESULT,Compact) \
|
---|
| 1207 | ICOM_METHOD3(HRESULT,CreateClipper, DWORD,dwFlags, LPDIRECTDRAWCLIPPER*,lplpDDClipper, IUnknown*,pUnkOuter) \
|
---|
| 1208 | ICOM_METHOD4(HRESULT,CreatePalette, DWORD,dwFlags, LPPALETTEENTRY,lpColorTable, LPDIRECTDRAWPALETTE*,lplpDDPalette, IUnknown*,pUnkOuter) \
|
---|
| 1209 | ICOM_METHOD3(HRESULT,CreateSurface, LPDDSURFACEDESC,lpDDSurfaceDesc, LPDIRECTDRAWSURFACE*,lplpDDSurface, IUnknown*,pUnkOuter) \
|
---|
| 1210 | ICOM_METHOD2(HRESULT,DuplicateSurface, LPDIRECTDRAWSURFACE,lpDDSurface, LPDIRECTDRAWSURFACE*,lplpDupDDSurface) \
|
---|
| 1211 | ICOM_METHOD4(HRESULT,EnumDisplayModes, DWORD,dwFlags, LPDDSURFACEDESC,lpDDSurfaceDesc, LPVOID,lpContext, LPDDENUMMODESCALLBACK,lpEnumModesCallback) \
|
---|
| 1212 | ICOM_METHOD4(HRESULT,EnumSurfaces, DWORD,dwFlags, LPDDSURFACEDESC,lpDDSD, LPVOID,lpContext, LPDDENUMSURFACESCALLBACK,lpEnumSurfacesCallback) \
|
---|
| 1213 | ICOM_METHOD (HRESULT,FlipToGDISurface) \
|
---|
| 1214 | ICOM_METHOD2(HRESULT,GetCaps, LPDDCAPS,lpDDDriverCaps, LPDDCAPS,lpDDHELCaps) \
|
---|
| 1215 | ICOM_METHOD1(HRESULT,GetDisplayMode, LPDDSURFACEDESC,lpDDSurfaceDesc) \
|
---|
| 1216 | ICOM_METHOD2(HRESULT,GetFourCCCodes, LPDWORD,lpNumCodes, LPDWORD,lpCodes) \
|
---|
| 1217 | ICOM_METHOD1(HRESULT,GetGDISurface, LPDIRECTDRAWSURFACE*,lplpGDIDDSurface) \
|
---|
| 1218 | ICOM_METHOD1(HRESULT,GetMonitorFrequency, LPDWORD,lpdwFrequency) \
|
---|
| 1219 | ICOM_METHOD1(HRESULT,GetScanLine, LPDWORD,lpdwScanLine) \
|
---|
| 1220 | ICOM_METHOD1(HRESULT,GetVerticalBlankStatus, BOOL*,lpbIsInVB) \
|
---|
| 1221 | ICOM_METHOD1(HRESULT,Initialize, GUID*,lpGUID) \
|
---|
| 1222 | ICOM_METHOD (HRESULT,RestoreDisplayMode) \
|
---|
| 1223 | ICOM_METHOD2(HRESULT,SetCooperativeLevel, HWND,hWnd, DWORD,dwFlags) \
|
---|
| 1224 | ICOM_METHOD5(HRESULT,SetDisplayMode, DWORD,dwWidth, DWORD,dwHeight, DWORD,dwBPP, DWORD,dwRefreshRate, DWORD,dwFlags) \
|
---|
| 1225 | ICOM_METHOD2(HRESULT,WaitForVerticalBlank, DWORD,dwFlags, HANDLE,hEvent) \
|
---|
| 1226 | /* added in v2 */ \
|
---|
| 1227 | ICOM_METHOD3(HRESULT,GetAvailableVidMem, LPDDSCAPS,lpDDCaps, LPDWORD,lpdwTotal, LPDWORD,lpdwFree)
|
---|
| 1228 | #define IDirectDraw2_IMETHODS \
|
---|
| 1229 | IUnknown_IMETHODS \
|
---|
| 1230 | IDirectDraw2_METHODS
|
---|
| 1231 | ICOM_DEFINE(IDirectDraw2,IUnknown)
|
---|
[213] | 1232 | //#undef ICOM_INTERFACE
|
---|
[4] | 1233 |
|
---|
| 1234 | #ifdef ICOM_CINTERFACE
|
---|
[213] | 1235 | /*** IUnknown methods ***/
|
---|
| 1236 | #define IDirectDraw2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
| 1237 | #define IDirectDraw2_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
| 1238 | #define IDirectDraw2_Release(p) ICOM_CALL (Release,p)
|
---|
| 1239 | /*** IDirectDraw methods ***/
|
---|
| 1240 | #define IDirectDraw2_Compact(p) ICOM_CALL (Compact,p)
|
---|
| 1241 | #define IDirectDraw2_CreateClipper(p,a,b,c) ICOM_CALL3(CreateClipper,p,a,b,c)
|
---|
| 1242 | #define IDirectDraw2_CreatePalette(p,a,b,c,d) ICOM_CALL4(CreatePalette,p,a,b,c,d)
|
---|
| 1243 | #define IDirectDraw2_CreateSurface(p,a,b,c) ICOM_CALL3(CreateSurface,p,a,b,c)
|
---|
| 1244 | #define IDirectDraw2_DuplicateSurface(p,a,b) ICOM_CALL2(DuplicateSurface,p,a,b)
|
---|
| 1245 | #define IDirectDraw2_EnumDisplayModes(p,a,b,c,d) ICOM_CALL4(EnumDisplayModes,p,a,b,c,d)
|
---|
| 1246 | #define IDirectDraw2_EnumSurfaces(p,a,b,c,d) ICOM_CALL4(EnumSurfaces,p,a,b,c,d)
|
---|
| 1247 | #define IDirectDraw2_FlipToGDISurface(p) ICOM_CALL (FlipToGDISurface,p)
|
---|
| 1248 | #define IDirectDraw2_GetCaps(p,a,b) ICOM_CALL2(GetCaps,p,a,b)
|
---|
| 1249 | #define IDirectDraw2_GetDisplayMode(p,a) ICOM_CALL1(GetDisplayMode,p,a)
|
---|
| 1250 | #define IDirectDraw2_GetFourCCCodes(p,a,b) ICOM_CALL2(GetFourCCCodes,p,a,b)
|
---|
| 1251 | #define IDirectDraw2_GetGDISurface(p,a) ICOM_CALL1(GetGDISurface,p,a)
|
---|
| 1252 | #define IDirectDraw2_GetMonitorFrequency(p,a) ICOM_CALL1(GetMonitorFrequency,p,a)
|
---|
| 1253 | #define IDirectDraw2_GetScanLine(p,a) ICOM_CALL1(GetScanLine,p,a)
|
---|
| 1254 | #define IDirectDraw2_GetVerticalBlankStatus(p,a) ICOM_CALL1(GetVerticalBlankStatus,p,a)
|
---|
| 1255 | #define IDirectDraw2_Initialize(p,a) ICOM_CALL1(Initialize,p,a)
|
---|
| 1256 | #define IDirectDraw2_RestoreDisplayMode(p) ICOM_CALL (RestoreDisplayMode,p)
|
---|
| 1257 | #define IDirectDraw2_SetCooperativeLevel(p,a,b) ICOM_CALL2(SetCooperativeLevel,p,a,b)
|
---|
| 1258 | #define IDirectDraw2_SetDisplayMode(p,a,b,c,d,e) ICOM_CALL5(SetDisplayMode,p,a,b,c,d,e)
|
---|
| 1259 | #define IDirectDraw2_WaitForVerticalBlank(p,a,b) ICOM_CALL2(WaitForVerticalBlank,p,a,b)
|
---|
| 1260 | /*** IDirectDraw2 methods ***/
|
---|
| 1261 | #define IDirectDraw2_GetAvailableVidMem(p,a,b,c) ICOM_CALL3(GetAvailableVidMem,p,a,b,c)
|
---|
[4] | 1262 | #endif
|
---|
| 1263 |
|
---|
| 1264 |
|
---|
| 1265 | /*****************************************************************************
|
---|
| 1266 | * IDirectDraw4 interface
|
---|
| 1267 | */
|
---|
[213] | 1268 | //#define ICOM_INTERFACE IDirectDraw4
|
---|
[4] | 1269 | #define IDirectDraw4_METHODS \
|
---|
[213] | 1270 | ICOM_METHOD (HRESULT,Compact) \
|
---|
| 1271 | ICOM_METHOD3(HRESULT,CreateClipper, DWORD,dwFlags, LPDIRECTDRAWCLIPPER*,lplpDDClipper, IUnknown*,pUnkOuter) \
|
---|
| 1272 | ICOM_METHOD4(HRESULT,CreatePalette, DWORD,dwFlags, LPPALETTEENTRY,lpColorTable, LPDIRECTDRAWPALETTE*,lplpDDPalette, IUnknown*,pUnkOuter) \
|
---|
| 1273 | ICOM_METHOD3(HRESULT,CreateSurface, LPDDSURFACEDESC2,lpDDSurfaceDesc, LPDIRECTDRAWSURFACE4*,lplpDDSurface, IUnknown*,pUnkOuter) \
|
---|
| 1274 | ICOM_METHOD2(HRESULT,DuplicateSurface, LPDIRECTDRAWSURFACE4,lpDDSurface, LPDIRECTDRAWSURFACE4*,lplpDupDDSurface) \
|
---|
| 1275 | ICOM_METHOD4(HRESULT,EnumDisplayModes, DWORD,dwFlags, LPDDSURFACEDESC2,lpDDSurfaceDesc, LPVOID,lpContext, LPDDENUMMODESCALLBACK2,lpEnumModesCallback) \
|
---|
| 1276 | ICOM_METHOD4(HRESULT,EnumSurfaces, DWORD,dwFlags, LPDDSURFACEDESC2,lpDDSD, LPVOID,lpContext, LPDDENUMSURFACESCALLBACK2,lpEnumSurfacesCallback) \
|
---|
| 1277 | ICOM_METHOD (HRESULT,FlipToGDISurface) \
|
---|
| 1278 | ICOM_METHOD2(HRESULT,GetCaps, LPDDCAPS,lpDDDriverCaps, LPDDCAPS,lpDDHELCaps) \
|
---|
| 1279 | ICOM_METHOD1(HRESULT,GetDisplayMode, LPDDSURFACEDESC2,lpDDSurfaceDesc) \
|
---|
| 1280 | ICOM_METHOD2(HRESULT,GetFourCCCodes, LPDWORD,lpNumCodes, LPDWORD,lpCodes) \
|
---|
| 1281 | ICOM_METHOD1(HRESULT,GetGDISurface, LPDIRECTDRAWSURFACE4*,lplpGDIDDSurface) \
|
---|
| 1282 | ICOM_METHOD1(HRESULT,GetMonitorFrequency, LPDWORD,lpdwFrequency) \
|
---|
| 1283 | ICOM_METHOD1(HRESULT,GetScanLine, LPDWORD,lpdwScanLine) \
|
---|
| 1284 | ICOM_METHOD1(HRESULT,GetVerticalBlankStatus, BOOL*,lpbIsInVB) \
|
---|
| 1285 | ICOM_METHOD1(HRESULT,Initialize, GUID*,lpGUID) \
|
---|
| 1286 | ICOM_METHOD (HRESULT,RestoreDisplayMode) \
|
---|
| 1287 | ICOM_METHOD2(HRESULT,SetCooperativeLevel, HWND,hWnd, DWORD,dwFlags) \
|
---|
| 1288 | ICOM_METHOD5(HRESULT,SetDisplayMode, DWORD,dwWidth, DWORD,dwHeight, DWORD,dwBPP, DWORD,dwRefreshRate, DWORD,dwFlags) \
|
---|
| 1289 | ICOM_METHOD2(HRESULT,WaitForVerticalBlank, DWORD,dwFlags, HANDLE,hEvent) \
|
---|
| 1290 | /* added in v2 */ \
|
---|
| 1291 | ICOM_METHOD3(HRESULT,GetAvailableVidMem, LPDDSCAPS2,lpDDCaps, LPDWORD,lpdwTotal, LPDWORD,lpdwFree)\
|
---|
| 1292 | /* Added with V */ \
|
---|
[280] | 1293 | ICOM_METHOD2(HRESULT,GetSurfaceFromDC, HDC,hDC, LPDIRECTDRAWSURFACE4*,lpSurface) \
|
---|
[4] | 1294 | ICOM_METHOD (HRESULT,RestoreAllSurfaces) \
|
---|
| 1295 | ICOM_METHOD (HRESULT,TestCooperativeLevel) \
|
---|
[280] | 1296 | ICOM_METHOD2(HRESULT,GetDeviceIdentifier, LPDDDEVICEIDENTIFIER, lpArg1, DWORD, dwArg2)
|
---|
[4] | 1297 | #define IDirectDraw4_IMETHODS \
|
---|
[213] | 1298 | IUnknown_IMETHODS \
|
---|
[4] | 1299 | IDirectDraw4_METHODS
|
---|
[213] | 1300 |
|
---|
| 1301 | ICOM_DEFINE(IDirectDraw4,IUnknown)
|
---|
[4] | 1302 | #undef ICOM_INTERFACE
|
---|
| 1303 |
|
---|
| 1304 | #ifdef ICOM_CINTERFACE
|
---|
[213] | 1305 | /*** IUnknown methods ***/
|
---|
| 1306 | #define IDirectDraw4_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
| 1307 | #define IDirectDraw4_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
| 1308 | #define IDirectDraw4_Release(p) ICOM_CALL (Release,p)
|
---|
| 1309 | /*** IDirectDraw methods ***/
|
---|
| 1310 | #define IDirectDraw4_Compact(p) ICOM_CALL (Compact,p)
|
---|
| 1311 | #define IDirectDraw4_CreateClipper(p,a,b,c) ICOM_CALL3(CreateClipper,p,a,b,c)
|
---|
| 1312 | #define IDirectDraw4_CreatePalette(p,a,b,c,d) ICOM_CALL4(CreatePalette,p,a,b,c,d)
|
---|
| 1313 | #define IDirectDraw4_CreateSurface(p,a,b,c) ICOM_CALL3(CreateSurface,p,a,b,c)
|
---|
| 1314 | #define IDirectDraw4_DuplicateSurface(p,a,b) ICOM_CALL2(DuplicateSurface,p,a,b)
|
---|
| 1315 | #define IDirectDraw4_EnumDisplayModes(p,a,b,c,d) ICOM_CALL4(EnumDisplayModes,p,a,b,c,d)
|
---|
| 1316 | #define IDirectDraw4_EnumSurfaces(p,a,b,c,d) ICOM_CALL4(EnumSurfaces,p,a,b,c,d)
|
---|
| 1317 | #define IDirectDraw4_FlipToGDISurface(p) ICOM_CALL (FlipToGDISurface,p)
|
---|
| 1318 | #define IDirectDraw4_GetCaps(p,a,b) ICOM_CALL2(GetCaps,p,a,b)
|
---|
| 1319 | #define IDirectDraw4_GetDisplayMode(p,a) ICOM_CALL1(GetDisplayMode,p,a)
|
---|
| 1320 | #define IDirectDraw4_GetFourCCCodes(p,a,b) ICOM_CALL2(GetFourCCCodes,p,a,b)
|
---|
| 1321 | #define IDirectDraw4_GetGDISurface(p,a) ICOM_CALL1(GetGDISurface,p,a)
|
---|
| 1322 | #define IDirectDraw4_GetMonitorFrequency(p,a) ICOM_CALL1(GetMonitorFrequency,p,a)
|
---|
| 1323 | #define IDirectDraw4_GetScanLine(p,a) ICOM_CALL1(GetScanLine,p,a)
|
---|
| 1324 | #define IDirectDraw4_GetVerticalBlankStatus(p,a) ICOM_CALL1(GetVerticalBlankStatus,p,a)
|
---|
| 1325 | #define IDirectDraw4_Initialize(p,a) ICOM_CALL1(Initialize,p,a)
|
---|
| 1326 | #define IDirectDraw4_RestoreDisplayMode(p) ICOM_CALL (RestoreDisplayMode,p)
|
---|
| 1327 | #define IDirectDraw4_SetCooperativeLevel(p,a,b) ICOM_CALL2(SetCooperativeLevel,p,a,b)
|
---|
| 1328 | #define IDirectDraw4_SetDisplayMode(p,a,b,c) ICOM_CALL3(SetDisplayMode,p,a,b,c)
|
---|
| 1329 | #define IDirectDraw4_WaitForVerticalBlank(p,a,b) ICOM_CALL2(WaitForVerticalBlank,p,a,b)
|
---|
| 1330 | /*** IDirectDraw2 methods ***/
|
---|
| 1331 | #define IDirectDraw4_GetAvailableVidMem(p,a,b,c) ICOM_CALL3(GetAvailableVidMem,p,a,b,c)
|
---|
| 1332 | /*** IDirectDraw4 methods ***/
|
---|
| 1333 | #define IDirectDraw4_GetSurfaceFromDC(p,a,b) ICOM_CALL2(GetSurfaceFromDC,p,a,b,c)
|
---|
| 1334 | #define IDirectDraw4_RestoreAllSurfaces(pc) ICOM_CALL (RestoreAllSurfaces,p)
|
---|
| 1335 | #define IDirectDraw4_TestCooperativeLevel(p) ICOM_CALL (TestCooperativeLevel,p)
|
---|
| 1336 | #define IDirectDraw4_GetDeviceIdentifier(p,a,b) ICOM_CALL2(GetDeviceIdentifier,p,a,b)
|
---|
[4] | 1337 | #endif
|
---|
| 1338 |
|
---|
| 1339 |
|
---|
| 1340 | /*****************************************************************************
|
---|
| 1341 | * IDirectDrawSurface interface
|
---|
| 1342 | */
|
---|
[213] | 1343 | //#define ICOM_INTERFACE IDirectDrawSurface
|
---|
| 1344 | #define ICOM_INTERFACE VOID
|
---|
[4] | 1345 | #define IDirectDrawSurface_METHODS \
|
---|
| 1346 | ICOM_METHOD1(HRESULT,AddAttachedSurface, LPDIRECTDRAWSURFACE,lpDDSAttachedSurface) \
|
---|
| 1347 | ICOM_METHOD1(HRESULT,AddOverlayDirtyRect, LPRECT,lpRect) \
|
---|
| 1348 | ICOM_METHOD5(HRESULT,Blt, LPRECT,lpDestRect, LPDIRECTDRAWSURFACE,lpDDSrcSurface, LPRECT,lpSrcRect, DWORD,dwFlags, LPDDBLTFX,lpDDBltFx) \
|
---|
| 1349 | ICOM_METHOD3(HRESULT,BltBatch, LPDDBLTBATCH,lpDDBltBatch, DWORD,dwCount, DWORD,dwFlags) \
|
---|
| 1350 | ICOM_METHOD5(HRESULT,BltFast, DWORD,dwX, DWORD,dwY, LPDIRECTDRAWSURFACE,lpDDSrcSurface, LPRECT,lpSrcRect, DWORD,dwTrans) \
|
---|
| 1351 | ICOM_METHOD2(HRESULT,DeleteAttachedSurface, DWORD,dwFlags, LPDIRECTDRAWSURFACE,lpDDSAttachedSurface) \
|
---|
| 1352 | ICOM_METHOD2(HRESULT,EnumAttachedSurfaces, LPVOID,lpContext, LPDDENUMSURFACESCALLBACK,lpEnumSurfacesCallback) \
|
---|
| 1353 | ICOM_METHOD3(HRESULT,EnumOverlayZOrders, DWORD,dwFlags, LPVOID,lpContext, LPDDENUMSURFACESCALLBACK,lpfnCallback) \
|
---|
| 1354 | ICOM_METHOD2(HRESULT,Flip, LPDIRECTDRAWSURFACE,lpDDSurfaceTargetOverride, DWORD,dwFlags) \
|
---|
| 1355 | ICOM_METHOD2(HRESULT,GetAttachedSurface, LPDDSCAPS,lpDDSCaps, LPDIRECTDRAWSURFACE*,lplpDDAttachedSurface) \
|
---|
| 1356 | ICOM_METHOD1(HRESULT,GetBltStatus, DWORD,dwFlags) \
|
---|
| 1357 | ICOM_METHOD1(HRESULT,GetCaps, LPDDSCAPS,lpDDSCaps) \
|
---|
| 1358 | ICOM_METHOD1(HRESULT,GetClipper, LPDIRECTDRAWCLIPPER*,lplpDDClipper) \
|
---|
| 1359 | ICOM_METHOD2(HRESULT,GetColorKey, DWORD,dwFlags, LPDDCOLORKEY,lpDDColorKey) \
|
---|
| 1360 | ICOM_METHOD1(HRESULT,GetDC, HDC*,lphDC) \
|
---|
| 1361 | ICOM_METHOD1(HRESULT,GetFlipStatus, DWORD,dwFlags) \
|
---|
| 1362 | ICOM_METHOD2(HRESULT,GetOverlayPosition, LPLONG,lplX, LPLONG,lplY) \
|
---|
| 1363 | ICOM_METHOD1(HRESULT,GetPalette, LPDIRECTDRAWPALETTE*,lplpDDPalette) \
|
---|
| 1364 | ICOM_METHOD1(HRESULT,GetPixelFormat, LPDDPIXELFORMAT,lpDDPixelFormat) \
|
---|
| 1365 | ICOM_METHOD1(HRESULT,GetSurfaceDesc, LPDDSURFACEDESC,lpDDSurfaceDesc) \
|
---|
| 1366 | ICOM_METHOD2(HRESULT,Initialize, LPDIRECTDRAW,lpDD, LPDDSURFACEDESC,lpDDSurfaceDesc) \
|
---|
| 1367 | ICOM_METHOD (HRESULT,IsLost) \
|
---|
| 1368 | ICOM_METHOD4(HRESULT,Lock, LPRECT,lpDestRect, LPDDSURFACEDESC,lpDDSurfaceDesc, DWORD,dwFlags, HANDLE,hEvent) \
|
---|
| 1369 | ICOM_METHOD1(HRESULT,ReleaseDC, HDC,hDC) \
|
---|
| 1370 | ICOM_METHOD (HRESULT,Restore) \
|
---|
| 1371 | ICOM_METHOD1(HRESULT,SetClipper, LPDIRECTDRAWCLIPPER,lpDDClipper) \
|
---|
| 1372 | ICOM_METHOD2(HRESULT,SetColorKey, DWORD,dwFlags, LPDDCOLORKEY,lpDDColorKey) \
|
---|
| 1373 | ICOM_METHOD2(HRESULT,SetOverlayPosition, LONG,lX, LONG,lY) \
|
---|
| 1374 | ICOM_METHOD1(HRESULT,SetPalette, LPDIRECTDRAWPALETTE,lpDDPalette) \
|
---|
| 1375 | ICOM_METHOD1(HRESULT,Unlock, LPVOID,lpSurfaceData) \
|
---|
| 1376 | ICOM_METHOD5(HRESULT,UpdateOverlay, LPRECT,lpSrcRect, LPDIRECTDRAWSURFACE,lpDDDestSurface, LPRECT,lpDestRect, DWORD,dwFlags, LPDDOVERLAYFX,lpDDOverlayFx) \
|
---|
| 1377 | ICOM_METHOD1(HRESULT,UpdateOverlayDisplay, DWORD,dwFlags) \
|
---|
| 1378 | ICOM_METHOD2(HRESULT,UpdateOverlayZOrder, DWORD,dwFlags, LPDIRECTDRAWSURFACE,lpDDSReference)
|
---|
| 1379 | #define IDirectDrawSurface_IMETHODS \
|
---|
| 1380 | IUnknown_IMETHODS \
|
---|
| 1381 | IDirectDrawSurface_METHODS
|
---|
| 1382 | ICOM_DEFINE(IDirectDrawSurface,IUnknown)
|
---|
[213] | 1383 | //#undef ICOM_INTERFACE
|
---|
[4] | 1384 |
|
---|
| 1385 | #ifdef ICOM_CINTERFACE
|
---|
[213] | 1386 | /*** IUnknown methods ***/
|
---|
| 1387 | #define IDirectDrawSurface_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
| 1388 | #define IDirectDrawSurface_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
| 1389 | #define IDirectDrawSurface_Release(p) ICOM_CALL (Release,p)
|
---|
| 1390 | /*** IDirectDrawSurface methods ***/
|
---|
| 1391 | #define IDirectDrawSurface_AddAttachedSurface(p,a) ICOM_CALL1(AddAttachedSurface,p,a)
|
---|
| 1392 | #define IDirectDrawSurface_AddOverlayDirtyRect(p,a) ICOM_CALL1(AddOverlayDirtyRect,p,a)
|
---|
| 1393 | #define IDirectDrawSurface_Blt(p,a,b,c,d,e) ICOM_CALL5(Blt,p,a,b,c,d,e)
|
---|
| 1394 | #define IDirectDrawSurface_BltBatch(p,a,b,c) ICOM_CALL3(BltBatch,p,a,b,c)
|
---|
| 1395 | #define IDirectDrawSurface_BltFast(p,a,b,c,d,e) ICOM_CALL5(BltFast,p,a,b,c,d,e)
|
---|
| 1396 | #define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) ICOM_CALL2(DeleteAttachedSurface,p,a,b)
|
---|
| 1397 | #define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) ICOM_CALL2(EnumAttachedSurfaces,p,a,b)
|
---|
| 1398 | #define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) ICOM_CALL3(EnumOverlayZOrders,p,a,b,c)
|
---|
| 1399 | #define IDirectDrawSurface_Flip(p,a,b) ICOM_CALL2(Flip,p,a,b)
|
---|
| 1400 | #define IDirectDrawSurface_GetAttachedSurface(p,a,b) ICOM_CALL2(GetAttachedSurface,p,a,b)
|
---|
| 1401 | #define IDirectDrawSurface_GetBltStatus(p,a) ICOM_CALL1(GetBltStatus,p,a)
|
---|
| 1402 | #define IDirectDrawSurface_GetCaps(p,a) ICOM_CALL1(GetCaps,p,a)
|
---|
| 1403 | #define IDirectDrawSurface_GetClipper(p,a) ICOM_CALL1(GetClipper,p,a)
|
---|
| 1404 | #define IDirectDrawSurface_GetColorKey(p,a,b) ICOM_CALL2(GetColorKey,p,a,b)
|
---|
| 1405 | #define IDirectDrawSurface_GetDC(p,a) ICOM_CALL1(GetDC,p,a)
|
---|
| 1406 | #define IDirectDrawSurface_GetFlipStatus(p,a) ICOM_CALL1(GetFlipStatus,p,a)
|
---|
| 1407 | #define IDirectDrawSurface_GetOverlayPosition(p,a,b) ICOM_CALL2(GetOverlayPosition,p,a,b)
|
---|
| 1408 | #define IDirectDrawSurface_GetPalette(p,a) ICOM_CALL1(GetPalette,p,a)
|
---|
| 1409 | #define IDirectDrawSurface_GetPixelFormat(p,a) ICOM_CALL1(GetPixelFormat,p,a)
|
---|
| 1410 | #define IDirectDrawSurface_GetSurfaceDesc(p,a) ICOM_CALL1(GetSurfaceDesc,p,a)
|
---|
| 1411 | #define IDirectDrawSurface_Initialize(p,a,b) ICOM_CALL2(Initialize,p,a,b)
|
---|
| 1412 | #define IDirectDrawSurface_IsLost(p) ICOM_CALL (IsLost,p)
|
---|
| 1413 | #define IDirectDrawSurface_Lock(p,a,b,c,d) ICOM_CALL4(Lock,p,a,b,c,d)
|
---|
| 1414 | #define IDirectDrawSurface_ReleaseDC(p,a) ICOM_CALL1(ReleaseDC,p,a)
|
---|
| 1415 | #define IDirectDrawSurface_Restore(p,a,b) ICOM_CALL (Restore,p,a,b)
|
---|
| 1416 | #define IDirectDrawSurface_SetClipper(p,a,b) ICOM_CALL1(SetClipper,p,a,b)
|
---|
| 1417 | #define IDirectDrawSurface_SetColorKey(p,a,b) ICOM_CALL2(SetColorKey,p,a,b)
|
---|
| 1418 | #define IDirectDrawSurface_SetOverlayPosition(p,a,b) ICOM_CALL2(SetOverlayPosition,p,a,b)
|
---|
| 1419 | #define IDirectDrawSurface_SetPalette(p,a) ICOM_CALL1(SetPalette,p,a)
|
---|
| 1420 | #define IDirectDrawSurface_Unlock(p,a) ICOM_CALL1(Unlock,p,a)
|
---|
| 1421 | #define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) ICOM_CALL5(UpdateOverlay,p,a,b,c,d,e)
|
---|
| 1422 | #define IDirectDrawSurface_UpdateOverlayDisplay(p,a) ICOM_CALL1(UpdateOverlayDisplay,p,a)
|
---|
| 1423 | #define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) ICOM_CALL2(UpdateOverlayZOrder,p,a,b)
|
---|
[4] | 1424 | #endif
|
---|
| 1425 |
|
---|
| 1426 |
|
---|
| 1427 | /*****************************************************************************
|
---|
| 1428 | * IDirectDrawSurface2 interface
|
---|
| 1429 | */
|
---|
[213] | 1430 | /* Cannot inherit from IDirectDrawSurface because the LPDIRECTDRAWSURFACE parameters
|
---|
[4] | 1431 | * have been converted to LPDIRECTDRAWSURFACE2.
|
---|
| 1432 | */
|
---|
[213] | 1433 | //#define ICOM_INTERFACE IDirectDrawSurface2
|
---|
[4] | 1434 | #define IDirectDrawSurface2_METHODS \
|
---|
| 1435 | ICOM_METHOD1(HRESULT,AddAttachedSurface, LPDIRECTDRAWSURFACE2,lpDDSAttachedSurface) \
|
---|
| 1436 | ICOM_METHOD1(HRESULT,AddOverlayDirtyRect, LPRECT,lpRect) \
|
---|
| 1437 | ICOM_METHOD5(HRESULT,Blt, LPRECT,lpDestRect, LPDIRECTDRAWSURFACE2,lpDDSrcSurface, LPRECT,lpSrcRect, DWORD,dwFlags, LPDDBLTFX,lpDDBltFx) \
|
---|
| 1438 | ICOM_METHOD3(HRESULT,BltBatch, LPDDBLTBATCH,lpDDBltBatch, DWORD,dwCount, DWORD,dwFlags) \
|
---|
| 1439 | ICOM_METHOD5(HRESULT,BltFast, DWORD,dwX, DWORD,dwY, LPDIRECTDRAWSURFACE2,lpDDSrcSurface, LPRECT,lpSrcRect, DWORD,dwTrans) \
|
---|
| 1440 | ICOM_METHOD2(HRESULT,DeleteAttachedSurface, DWORD,dwFlags, LPDIRECTDRAWSURFACE2,lpDDSAttachedSurface) \
|
---|
| 1441 | ICOM_METHOD2(HRESULT,EnumAttachedSurfaces, LPVOID,lpContext, LPDDENUMSURFACESCALLBACK,lpEnumSurfacesCallback) \
|
---|
| 1442 | ICOM_METHOD3(HRESULT,EnumOverlayZOrders, DWORD,dwFlags, LPVOID,lpContext, LPDDENUMSURFACESCALLBACK,lpfnCallback) \
|
---|
| 1443 | ICOM_METHOD2(HRESULT,Flip, LPDIRECTDRAWSURFACE2,lpDDSurfaceTargetOverride, DWORD,dwFlags) \
|
---|
| 1444 | ICOM_METHOD2(HRESULT,GetAttachedSurface, LPDDSCAPS,lpDDSCaps, LPDIRECTDRAWSURFACE2*,lplpDDAttachedSurface) \
|
---|
| 1445 | ICOM_METHOD1(HRESULT,GetBltStatus, DWORD,dwFlags) \
|
---|
| 1446 | ICOM_METHOD1(HRESULT,GetCaps, LPDDSCAPS,lpDDSCaps) \
|
---|
| 1447 | ICOM_METHOD1(HRESULT,GetClipper, LPDIRECTDRAWCLIPPER*,lplpDDClipper) \
|
---|
| 1448 | ICOM_METHOD2(HRESULT,GetColorKey, DWORD,dwFlags, LPDDCOLORKEY,lpDDColorKey) \
|
---|
| 1449 | ICOM_METHOD1(HRESULT,GetDC, HDC*,lphDC) \
|
---|
| 1450 | ICOM_METHOD1(HRESULT,GetFlipStatus, DWORD,dwFlags) \
|
---|
| 1451 | ICOM_METHOD2(HRESULT,GetOverlayPosition, LPLONG,lplX, LPLONG,lplY) \
|
---|
| 1452 | ICOM_METHOD1(HRESULT,GetPalette, LPDIRECTDRAWPALETTE*,lplpDDPalette) \
|
---|
| 1453 | ICOM_METHOD1(HRESULT,GetPixelFormat, LPDDPIXELFORMAT,lpDDPixelFormat) \
|
---|
| 1454 | ICOM_METHOD1(HRESULT,GetSurfaceDesc, LPDDSURFACEDESC,lpDDSurfaceDesc) \
|
---|
| 1455 | ICOM_METHOD2(HRESULT,Initialize, LPDIRECTDRAW,lpDD, LPDDSURFACEDESC,lpDDSurfaceDesc) \
|
---|
| 1456 | ICOM_METHOD (HRESULT,IsLost) \
|
---|
| 1457 | ICOM_METHOD4(HRESULT,Lock, LPRECT,lpDestRect, LPDDSURFACEDESC,lpDDSurfaceDesc, DWORD,dwFlags, HANDLE,hEvent) \
|
---|
| 1458 | ICOM_METHOD1(HRESULT,ReleaseDC, HDC,hDC) \
|
---|
| 1459 | ICOM_METHOD (HRESULT,Restore) \
|
---|
| 1460 | ICOM_METHOD1(HRESULT,SetClipper, LPDIRECTDRAWCLIPPER,lpDDClipper) \
|
---|
| 1461 | ICOM_METHOD2(HRESULT,SetColorKey, DWORD,dwFlags, LPDDCOLORKEY,lpDDColorKey) \
|
---|
| 1462 | ICOM_METHOD2(HRESULT,SetOverlayPosition, LONG,lX, LONG,lY) \
|
---|
| 1463 | ICOM_METHOD1(HRESULT,SetPalette, LPDIRECTDRAWPALETTE,lpDDPalette) \
|
---|
| 1464 | ICOM_METHOD1(HRESULT,Unlock, LPVOID,lpSurfaceData) \
|
---|
| 1465 | ICOM_METHOD5(HRESULT,UpdateOverlay, LPRECT,lpSrcRect, LPDIRECTDRAWSURFACE2,lpDDDestSurface, LPRECT,lpDestRect, DWORD,dwFlags, LPDDOVERLAYFX,lpDDOverlayFx) \
|
---|
| 1466 | ICOM_METHOD1(HRESULT,UpdateOverlayDisplay, DWORD,dwFlags) \
|
---|
| 1467 | ICOM_METHOD2(HRESULT,UpdateOverlayZOrder, DWORD,dwFlags, LPDIRECTDRAWSURFACE2,lpDDSReference) \
|
---|
| 1468 | /* added in v2 */ \
|
---|
| 1469 | ICOM_METHOD1(HRESULT,GetDDInterface, LPVOID*,lplpDD) \
|
---|
| 1470 | ICOM_METHOD1(HRESULT,PageLock, DWORD,dwFlags) \
|
---|
| 1471 | ICOM_METHOD1(HRESULT,PageUnlock, DWORD,dwFlags)
|
---|
| 1472 | #define IDirectDrawSurface2_IMETHODS \
|
---|
| 1473 | IUnknown_IMETHODS \
|
---|
| 1474 | IDirectDrawSurface2_METHODS
|
---|
| 1475 | ICOM_DEFINE(IDirectDrawSurface2,IUnknown)
|
---|
[213] | 1476 | //#undef ICOM_INTERFACE
|
---|
[4] | 1477 |
|
---|
| 1478 | #ifdef ICOM_CINTERFACE
|
---|
[213] | 1479 | /*** IUnknown methods ***/
|
---|
| 1480 | #define IDirectDrawSurface2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
| 1481 | #define IDirectDrawSurface2_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
| 1482 | #define IDirectDrawSurface2_Release(p) ICOM_CALL (Release,p)
|
---|
| 1483 | /*** IDirectDrawSurface methods (almost) ***/
|
---|
| 1484 | #define IDirectDrawSurface2_AddAttachedSurface(p,a) ICOM_CALL1(AddAttachedSurface,p,a)
|
---|
| 1485 | #define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) ICOM_CALL1(AddOverlayDirtyRect,p,a)
|
---|
| 1486 | #define IDirectDrawSurface2_Blt(p,a,b,c,d,e) ICOM_CALL5(Blt,p,a,b,c,d,e)
|
---|
| 1487 | #define IDirectDrawSurface2_BltBatch(p,a,b,c) ICOM_CALL3(BltBatch,p,a,b,c)
|
---|
| 1488 | #define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) ICOM_CALL5(BltFast,p,a,b,c,d,e)
|
---|
| 1489 | #define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) ICOM_CALL2(DeleteAttachedSurface,p,a,b)
|
---|
| 1490 | #define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) ICOM_CALL2(EnumAttachedSurfaces,p,a,b)
|
---|
| 1491 | #define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) ICOM_CALL3(EnumOverlayZOrders,p,a,b,c)
|
---|
| 1492 | #define IDirectDrawSurface2_Flip(p,a,b) ICOM_CALL2(Flip,p,a,b)
|
---|
| 1493 | #define IDirectDrawSurface2_GetAttachedSurface(p,a,b) ICOM_CALL2(GetAttachedSurface,p,a,b)
|
---|
| 1494 | #define IDirectDrawSurface2_GetBltStatus(p,a) ICOM_CALL1(GetBltStatus,p,a)
|
---|
| 1495 | #define IDirectDrawSurface2_GetCaps(p,a) ICOM_CALL1(GetCaps,p,a)
|
---|
| 1496 | #define IDirectDrawSurface2_GetClipper(p,a) ICOM_CALL1(GetClipper,p,a)
|
---|
| 1497 | #define IDirectDrawSurface2_GetColorKey(p,a,b) ICOM_CALL2(GetColorKey,p,a,b)
|
---|
| 1498 | #define IDirectDrawSurface2_GetDC(p,a) ICOM_CALL1(GetDC,p,a)
|
---|
| 1499 | #define IDirectDrawSurface2_GetFlipStatus(p,a) ICOM_CALL1(GetFlipStatus,p,a)
|
---|
| 1500 | #define IDirectDrawSurface2_GetOverlayPosition(p,a,b) ICOM_CALL2(GetOverlayPosition,p,a,b)
|
---|
| 1501 | #define IDirectDrawSurface2_GetPalette(p,a) ICOM_CALL1(GetPalette,p,a)
|
---|
| 1502 | #define IDirectDrawSurface2_GetPixelFormat(p,a) ICOM_CALL1(GetPixelFormat,p,a)
|
---|
| 1503 | #define IDirectDrawSurface2_GetSurfaceDesc(p,a) ICOM_CALL1(GetSurfaceDesc,p,a)
|
---|
| 1504 | #define IDirectDrawSurface2_Initialize(p,a,b) ICOM_CALL2(Initialize,p,a,b)
|
---|
| 1505 | #define IDirectDrawSurface2_IsLost(p) ICOM_CALL (IsLost,p)
|
---|
| 1506 | #define IDirectDrawSurface2_Lock(p,a,b,c,d) ICOM_CALL4(Lock,p,a,b,c,d)
|
---|
| 1507 | #define IDirectDrawSurface2_ReleaseDC(p,a) ICOM_CALL1(ReleaseDC,p,a)
|
---|
| 1508 | #define IDirectDrawSurface2_Restore(p,a,b) ICOM_CALL (Restore,p,a,b)
|
---|
| 1509 | #define IDirectDrawSurface2_SetClipper(p,a,b) ICOM_CALL1(SetClipper,p,a,b)
|
---|
| 1510 | #define IDirectDrawSurface2_SetColorKey(p,a,b) ICOM_CALL2(SetColorKey,p,a,b)
|
---|
| 1511 | #define IDirectDrawSurface2_SetOverlayPosition(p,a,b) ICOM_CALL2(SetOverlayPosition,p,a,b)
|
---|
| 1512 | #define IDirectDrawSurface2_SetPalette(p,a) ICOM_CALL1(SetPalette,p,a)
|
---|
| 1513 | #define IDirectDrawSurface2_Unlock(p,a) ICOM_CALL1(Unlock,p,a)
|
---|
| 1514 | #define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) ICOM_CALL5(UpdateOverlay,p,a,b,c,d,e)
|
---|
| 1515 | #define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) ICOM_CALL1(UpdateOverlayDisplay,p,a)
|
---|
| 1516 | #define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) ICOM_CALL2(UpdateOverlayZOrder,p,a,b)
|
---|
| 1517 | /*** IDirectDrawSurface2 methods ***/
|
---|
| 1518 | #define IDirectDrawSurface2_GetDDInterface(p,a) ICOM_CALL1(GetDDInterface,p,a)
|
---|
| 1519 | #define IDirectDrawSurface2_PageLock(p,a) ICOM_CALL1(PageLock,p,a)
|
---|
| 1520 | #define IDirectDrawSurface2_PageUnlock(p,a) ICOM_CALL1(PageUnlock,p,a)
|
---|
[4] | 1521 | #endif
|
---|
| 1522 |
|
---|
| 1523 |
|
---|
| 1524 | /*****************************************************************************
|
---|
| 1525 | * IDirectDrawSurface3 interface
|
---|
| 1526 | */
|
---|
[213] | 1527 | /* Cannot inherit from IDirectDrawSurface2 because the LPDIRECTDRAWSURFACE2 parameters
|
---|
[4] | 1528 | * have been converted to LPDIRECTDRAWSURFACE3.
|
---|
| 1529 | */
|
---|
[213] | 1530 | //#define ICOM_INTERFACE IDirectDrawSurface3
|
---|
[4] | 1531 | #define IDirectDrawSurface3_METHODS \
|
---|
| 1532 | ICOM_METHOD1(HRESULT,AddAttachedSurface, LPDIRECTDRAWSURFACE3,lpDDSAttachedSurface) \
|
---|
| 1533 | ICOM_METHOD1(HRESULT,AddOverlayDirtyRect, LPRECT,lpRect) \
|
---|
| 1534 | ICOM_METHOD5(HRESULT,Blt, LPRECT,lpDestRect, LPDIRECTDRAWSURFACE3,lpDDSrcSurface, LPRECT,lpSrcRect, DWORD,dwFlags, LPDDBLTFX,lpDDBltFx) \
|
---|
| 1535 | ICOM_METHOD3(HRESULT,BltBatch, LPDDBLTBATCH,lpDDBltBatch, DWORD,dwCount, DWORD,dwFlags) \
|
---|
| 1536 | ICOM_METHOD5(HRESULT,BltFast, DWORD,dwX, DWORD,dwY, LPDIRECTDRAWSURFACE3,lpDDSrcSurface, LPRECT,lpSrcRect, DWORD,dwTrans) \
|
---|
| 1537 | ICOM_METHOD2(HRESULT,DeleteAttachedSurface, DWORD,dwFlags, LPDIRECTDRAWSURFACE3,lpDDSAttachedSurface) \
|
---|
| 1538 | ICOM_METHOD2(HRESULT,EnumAttachedSurfaces, LPVOID,lpContext, LPDDENUMSURFACESCALLBACK,lpEnumSurfacesCallback) \
|
---|
| 1539 | ICOM_METHOD3(HRESULT,EnumOverlayZOrders, DWORD,dwFlags, LPVOID,lpContext, LPDDENUMSURFACESCALLBACK,lpfnCallback) \
|
---|
| 1540 | ICOM_METHOD2(HRESULT,Flip, LPDIRECTDRAWSURFACE3,lpDDSurfaceTargetOverride, DWORD,dwFlags) \
|
---|
| 1541 | ICOM_METHOD2(HRESULT,GetAttachedSurface, LPDDSCAPS,lpDDSCaps, LPDIRECTDRAWSURFACE3*,lplpDDAttachedSurface) \
|
---|
| 1542 | ICOM_METHOD1(HRESULT,GetBltStatus, DWORD,dwFlags) \
|
---|
| 1543 | ICOM_METHOD1(HRESULT,GetCaps, LPDDSCAPS,lpDDSCaps) \
|
---|
| 1544 | ICOM_METHOD1(HRESULT,GetClipper, LPDIRECTDRAWCLIPPER*,lplpDDClipper) \
|
---|
| 1545 | ICOM_METHOD2(HRESULT,GetColorKey, DWORD,dwFlags, LPDDCOLORKEY,lpDDColorKey) \
|
---|
| 1546 | ICOM_METHOD1(HRESULT,GetDC, HDC*,lphDC) \
|
---|
| 1547 | ICOM_METHOD1(HRESULT,GetFlipStatus, DWORD,dwFlags) \
|
---|
| 1548 | ICOM_METHOD2(HRESULT,GetOverlayPosition, LPLONG,lplX, LPLONG,lplY) \
|
---|
| 1549 | ICOM_METHOD1(HRESULT,GetPalette, LPDIRECTDRAWPALETTE*,lplpDDPalette) \
|
---|
| 1550 | ICOM_METHOD1(HRESULT,GetPixelFormat, LPDDPIXELFORMAT,lpDDPixelFormat) \
|
---|
| 1551 | ICOM_METHOD1(HRESULT,GetSurfaceDesc, LPDDSURFACEDESC,lpDDSurfaceDesc) \
|
---|
| 1552 | ICOM_METHOD2(HRESULT,Initialize, LPDIRECTDRAW,lpDD, LPDDSURFACEDESC,lpDDSurfaceDesc) \
|
---|
| 1553 | ICOM_METHOD (HRESULT,IsLost) \
|
---|
| 1554 | ICOM_METHOD4(HRESULT,Lock, LPRECT,lpDestRect, LPDDSURFACEDESC,lpDDSurfaceDesc, DWORD,dwFlags, HANDLE,hEvent) \
|
---|
| 1555 | ICOM_METHOD1(HRESULT,ReleaseDC, HDC,hDC) \
|
---|
| 1556 | ICOM_METHOD (HRESULT,Restore) \
|
---|
| 1557 | ICOM_METHOD1(HRESULT,SetClipper, LPDIRECTDRAWCLIPPER,lpDDClipper) \
|
---|
| 1558 | ICOM_METHOD2(HRESULT,SetColorKey, DWORD,dwFlags, LPDDCOLORKEY,lpDDColorKey) \
|
---|
| 1559 | ICOM_METHOD2(HRESULT,SetOverlayPosition, LONG,lX, LONG,lY) \
|
---|
| 1560 | ICOM_METHOD1(HRESULT,SetPalette, LPDIRECTDRAWPALETTE,lpDDPalette) \
|
---|
| 1561 | ICOM_METHOD1(HRESULT,Unlock, LPVOID,lpSurfaceData) \
|
---|
| 1562 | ICOM_METHOD5(HRESULT,UpdateOverlay, LPRECT,lpSrcRect, LPDIRECTDRAWSURFACE3,lpDDDestSurface, LPRECT,lpDestRect, DWORD,dwFlags, LPDDOVERLAYFX,lpDDOverlayFx) \
|
---|
| 1563 | ICOM_METHOD1(HRESULT,UpdateOverlayDisplay, DWORD,dwFlags) \
|
---|
| 1564 | ICOM_METHOD2(HRESULT,UpdateOverlayZOrder, DWORD,dwFlags, LPDIRECTDRAWSURFACE3,lpDDSReference) \
|
---|
| 1565 | /* added in v2 */ \
|
---|
| 1566 | ICOM_METHOD1(HRESULT,GetDDInterface, LPVOID*,lplpDD) \
|
---|
| 1567 | ICOM_METHOD1(HRESULT,PageLock, DWORD,dwFlags) \
|
---|
| 1568 | ICOM_METHOD1(HRESULT,PageUnlock, DWORD,dwFlags) \
|
---|
| 1569 | /* added in v3 */ \
|
---|
| 1570 | ICOM_METHOD2(HRESULT,SetSurfaceDesc, LPDDSURFACEDESC,lpDDSD, DWORD,dwFlags)
|
---|
| 1571 | #define IDirectDrawSurface3_IMETHODS \
|
---|
| 1572 | IUnknown_IMETHODS \
|
---|
| 1573 | IDirectDrawSurface3_METHODS
|
---|
| 1574 | ICOM_DEFINE(IDirectDrawSurface3,IUnknown)
|
---|
[213] | 1575 | //#undef ICOM_INTERFACE
|
---|
[4] | 1576 |
|
---|
| 1577 | #ifdef ICOM_CINTERFACE
|
---|
[213] | 1578 | /*** IUnknown methods ***/
|
---|
| 1579 | #define IDirectDrawSurface3_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
| 1580 | #define IDirectDrawSurface3_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
| 1581 | #define IDirectDrawSurface3_Release(p) ICOM_CALL (Release,p)
|
---|
| 1582 | /*** IDirectDrawSurface methods (almost) ***/
|
---|
| 1583 | #define IDirectDrawSurface3_AddAttachedSurface(p,a) ICOM_CALL1(AddAttachedSurface,p,a)
|
---|
| 1584 | #define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) ICOM_CALL1(AddOverlayDirtyRect,p,a)
|
---|
| 1585 | #define IDirectDrawSurface3_Blt(p,a,b,c,d,e) ICOM_CALL5(Blt,p,a,b,c,d,e)
|
---|
| 1586 | #define IDirectDrawSurface3_BltBatch(p,a,b,c) ICOM_CALL3(BltBatch,p,a,b,c)
|
---|
| 1587 | #define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) ICOM_CALL5(BltFast,p,a,b,c,d,e)
|
---|
| 1588 | #define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) ICOM_CALL2(DeleteAttachedSurface,p,a,b)
|
---|
| 1589 | #define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) ICOM_CALL2(EnumAttachedSurfaces,p,a,b)
|
---|
| 1590 | #define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) ICOM_CALL3(EnumOverlayZOrders,p,a,b,c)
|
---|
| 1591 | #define IDirectDrawSurface3_Flip(p,a,b) ICOM_CALL2(Flip,p,a,b)
|
---|
| 1592 | #define IDirectDrawSurface3_GetAttachedSurface(p,a,b) ICOM_CALL2(GetAttachedSurface,p,a,b)
|
---|
| 1593 | #define IDirectDrawSurface3_GetBltStatus(p,a) ICOM_CALL1(GetBltStatus,p,a)
|
---|
| 1594 | #define IDirectDrawSurface3_GetCaps(p,a) ICOM_CALL1(GetCaps,p,a)
|
---|
| 1595 | #define IDirectDrawSurface3_GetClipper(p,a) ICOM_CALL1(GetClipper,p,a)
|
---|
| 1596 | #define IDirectDrawSurface3_GetColorKey(p,a,b) ICOM_CALL2(GetColorKey,p,a,b)
|
---|
| 1597 | #define IDirectDrawSurface3_GetDC(p,a) ICOM_CALL1(GetDC,p,a)
|
---|
| 1598 | #define IDirectDrawSurface3_GetFlipStatus(p,a) ICOM_CALL1(GetFlipStatus,p,a)
|
---|
| 1599 | #define IDirectDrawSurface3_GetOverlayPosition(p,a,b) ICOM_CALL2(GetOverlayPosition,p,a,b)
|
---|
| 1600 | #define IDirectDrawSurface3_GetPalette(p,a) ICOM_CALL1(GetPalette,p,a)
|
---|
| 1601 | #define IDirectDrawSurface3_GetPixelFormat(p,a) ICOM_CALL1(GetPixelFormat,p,a)
|
---|
| 1602 | #define IDirectDrawSurface3_GetSurfaceDesc(p,a) ICOM_CALL1(GetSurfaceDesc,p,a)
|
---|
| 1603 | #define IDirectDrawSurface3_Initialize(p,a,b) ICOM_CALL2(Initialize,p,a,b)
|
---|
| 1604 | #define IDirectDrawSurface3_IsLost(p) ICOM_CALL (IsLost,p)
|
---|
| 1605 | #define IDirectDrawSurface3_Lock(p,a,b,c,d) ICOM_CALL4(Lock,p,a,b,c,d)
|
---|
| 1606 | #define IDirectDrawSurface3_ReleaseDC(p,a) ICOM_CALL1(ReleaseDC,p,a)
|
---|
| 1607 | #define IDirectDrawSurface3_Restore(p,a,b) ICOM_CALL (Restore,p,a,b)
|
---|
| 1608 | #define IDirectDrawSurface3_SetClipper(p,a,b) ICOM_CALL1(SetClipper,p,a,b)
|
---|
| 1609 | #define IDirectDrawSurface3_SetColorKey(p,a,b) ICOM_CALL2(SetColorKey,p,a,b)
|
---|
| 1610 | #define IDirectDrawSurface3_SetOverlayPosition(p,a,b) ICOM_CALL2(SetOverlayPosition,p,a,b)
|
---|
| 1611 | #define IDirectDrawSurface3_SetPalette(p,a) ICOM_CALL1(SetPalette,p,a)
|
---|
| 1612 | #define IDirectDrawSurface3_Unlock(p,a) ICOM_CALL1(Unlock,p,a)
|
---|
| 1613 | #define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) ICOM_CALL5(UpdateOverlay,p,a,b,c,d,e)
|
---|
| 1614 | #define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) ICOM_CALL1(UpdateOverlayDisplay,p,a)
|
---|
| 1615 | #define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) ICOM_CALL2(UpdateOverlayZOrder,p,a,b)
|
---|
| 1616 | /*** IDirectDrawSurface2 methods ***/
|
---|
| 1617 | #define IDirectDrawSurface3_GetDDInterface(p,a) ICOM_CALL1(GetDDInterface,p,a)
|
---|
| 1618 | #define IDirectDrawSurface3_PageLock(p,a) ICOM_CALL1(PageLock,p,a)
|
---|
| 1619 | #define IDirectDrawSurface3_PageUnlock(p,a) ICOM_CALL1(PageUnlock,p,a)
|
---|
| 1620 | /*** IDirectDrawSurface3 methods ***/
|
---|
| 1621 | #define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) ICOM_CALL2(SetSurfaceDesc,p,a,b)
|
---|
[4] | 1622 | #endif
|
---|
| 1623 |
|
---|
| 1624 |
|
---|
| 1625 | /*****************************************************************************
|
---|
| 1626 | * IDirectDrawSurface4 interface
|
---|
| 1627 | */
|
---|
[213] | 1628 | /* Cannot inherit from IDirectDrawSurface2 because the LPDIRECTDRAWSURFACE2 parameters
|
---|
[4] | 1629 | * have been converted to LPDIRECTDRAWSURFACE3.
|
---|
| 1630 | */
|
---|
[213] | 1631 | /* FIXME: I assumed IDirectDrawSurface4 does not inherit from IDirectDrawSurface3 but I
|
---|
| 1632 | * have actually not proof of that. Can someone check and remove this comment or patch
|
---|
[4] | 1633 | * accordingly ?
|
---|
| 1634 | */
|
---|
[213] | 1635 | //#define ICOM_INTERFACE IDirectDrawSurface4
|
---|
[4] | 1636 | #define IDirectDrawSurface4_METHODS \
|
---|
| 1637 | ICOM_METHOD1(HRESULT,AddAttachedSurface, LPDIRECTDRAWSURFACE4,lpDDSAttachedSurface) \
|
---|
| 1638 | ICOM_METHOD1(HRESULT,AddOverlayDirtyRect, LPRECT,lpRect) \
|
---|
| 1639 | ICOM_METHOD5(HRESULT,Blt, LPRECT,lpDestRect, LPDIRECTDRAWSURFACE4,lpDDSrcSurface, LPRECT,lpSrcRect, DWORD,dwFlags, LPDDBLTFX,lpDDBltFx) \
|
---|
| 1640 | ICOM_METHOD3(HRESULT,BltBatch, LPDDBLTBATCH,lpDDBltBatch, DWORD,dwCount, DWORD,dwFlags) \
|
---|
| 1641 | ICOM_METHOD5(HRESULT,BltFast, DWORD,dwX, DWORD,dwY, LPDIRECTDRAWSURFACE4,lpDDSrcSurface, LPRECT,lpSrcRect, DWORD,dwTrans) \
|
---|
| 1642 | ICOM_METHOD2(HRESULT,DeleteAttachedSurface, DWORD,dwFlags, LPDIRECTDRAWSURFACE4,lpDDSAttachedSurface) \
|
---|
[213] | 1643 | ICOM_METHOD2(HRESULT,EnumAttachedSurfaces, LPVOID,lpContext, LPDDENUMSURFACESCALLBACK2,lpEnumSurfacesCallback) \
|
---|
| 1644 | ICOM_METHOD3(HRESULT,EnumOverlayZOrders, DWORD,dwFlags, LPVOID,lpContext, LPDDENUMSURFACESCALLBACK2,lpfnCallback) \
|
---|
[4] | 1645 | ICOM_METHOD2(HRESULT,Flip, LPDIRECTDRAWSURFACE4,lpDDSurfaceTargetOverride, DWORD,dwFlags) \
|
---|
[213] | 1646 | ICOM_METHOD2(HRESULT,GetAttachedSurface, LPDDSCAPS2,lpDDSCaps, LPDIRECTDRAWSURFACE4*,lplpDDAttachedSurface) \
|
---|
[4] | 1647 | ICOM_METHOD1(HRESULT,GetBltStatus, DWORD,dwFlags) \
|
---|
[213] | 1648 | ICOM_METHOD1(HRESULT,GetCaps, LPDDSCAPS2,lpDDSCaps) \
|
---|
[4] | 1649 | ICOM_METHOD1(HRESULT,GetClipper, LPDIRECTDRAWCLIPPER*,lplpDDClipper) \
|
---|
| 1650 | ICOM_METHOD2(HRESULT,GetColorKey, DWORD,dwFlags, LPDDCOLORKEY,lpDDColorKey) \
|
---|
| 1651 | ICOM_METHOD1(HRESULT,GetDC, HDC*,lphDC) \
|
---|
| 1652 | ICOM_METHOD1(HRESULT,GetFlipStatus, DWORD,dwFlags) \
|
---|
| 1653 | ICOM_METHOD2(HRESULT,GetOverlayPosition, LPLONG,lplX, LPLONG,lplY) \
|
---|
| 1654 | ICOM_METHOD1(HRESULT,GetPalette, LPDIRECTDRAWPALETTE*,lplpDDPalette) \
|
---|
| 1655 | ICOM_METHOD1(HRESULT,GetPixelFormat, LPDDPIXELFORMAT,lpDDPixelFormat) \
|
---|
[213] | 1656 | ICOM_METHOD1(HRESULT,GetSurfaceDesc, LPDDSURFACEDESC2,lpDDSurfaceDesc) \
|
---|
| 1657 | ICOM_METHOD2(HRESULT,Initialize, LPDIRECTDRAW,lpDD, LPDDSURFACEDESC2,lpDDSurfaceDesc) \
|
---|
[4] | 1658 | ICOM_METHOD (HRESULT,IsLost) \
|
---|
[213] | 1659 | ICOM_METHOD4(HRESULT,Lock, LPRECT,lpDestRect, LPDDSURFACEDESC2,lpDDSurfaceDesc, DWORD,dwFlags, HANDLE,hEvent) \
|
---|
[4] | 1660 | ICOM_METHOD1(HRESULT,ReleaseDC, HDC,hDC) \
|
---|
| 1661 | ICOM_METHOD (HRESULT,Restore) \
|
---|
| 1662 | ICOM_METHOD1(HRESULT,SetClipper, LPDIRECTDRAWCLIPPER,lpDDClipper) \
|
---|
| 1663 | ICOM_METHOD2(HRESULT,SetColorKey, DWORD,dwFlags, LPDDCOLORKEY,lpDDColorKey) \
|
---|
| 1664 | ICOM_METHOD2(HRESULT,SetOverlayPosition, LONG,lX, LONG,lY) \
|
---|
| 1665 | ICOM_METHOD1(HRESULT,SetPalette, LPDIRECTDRAWPALETTE,lpDDPalette) \
|
---|
[213] | 1666 | ICOM_METHOD1(HRESULT,Unlock, LPRECT,lpSurfaceData) \
|
---|
[4] | 1667 | ICOM_METHOD5(HRESULT,UpdateOverlay, LPRECT,lpSrcRect, LPDIRECTDRAWSURFACE4,lpDDDestSurface, LPRECT,lpDestRect, DWORD,dwFlags, LPDDOVERLAYFX,lpDDOverlayFx) \
|
---|
| 1668 | ICOM_METHOD1(HRESULT,UpdateOverlayDisplay, DWORD,dwFlags) \
|
---|
| 1669 | ICOM_METHOD2(HRESULT,UpdateOverlayZOrder, DWORD,dwFlags, LPDIRECTDRAWSURFACE4,lpDDSReference) \
|
---|
| 1670 | /* added in v2 */ \
|
---|
| 1671 | ICOM_METHOD1(HRESULT,GetDDInterface, LPVOID*,lplpDD) \
|
---|
| 1672 | ICOM_METHOD1(HRESULT,PageLock, DWORD,dwFlags) \
|
---|
| 1673 | ICOM_METHOD1(HRESULT,PageUnlock, DWORD,dwFlags) \
|
---|
| 1674 | /* added in v3 */ \
|
---|
[213] | 1675 | ICOM_METHOD2(HRESULT,SetSurfaceDesc, LPDDSURFACEDESC2,lpDDSD, DWORD,dwFlags) \
|
---|
[4] | 1676 | /* added in v4 */ \
|
---|
[280] | 1677 | ICOM_METHOD4(HRESULT,SetPrivateData, REFGUID,arg1, LPVOID,arg2, DWORD,arg3, DWORD,arg4) \
|
---|
| 1678 | ICOM_METHOD3(HRESULT,GetPrivateData, REFGUID,arg1, LPVOID,arg2, LPDWORD,arg3) \
|
---|
| 1679 | ICOM_METHOD1(HRESULT,FreePrivateData, REFGUID,arg1) \
|
---|
| 1680 | ICOM_METHOD1(HRESULT,GetUniquenessValue, LPDWORD,arg1) \
|
---|
[4] | 1681 | ICOM_METHOD (HRESULT,ChangeUniquenessValue)
|
---|
| 1682 | #define IDirectDrawSurface4_IMETHODS \
|
---|
| 1683 | IUnknown_IMETHODS \
|
---|
| 1684 | IDirectDrawSurface4_METHODS
|
---|
| 1685 | ICOM_DEFINE(IDirectDrawSurface4,IUnknown)
|
---|
| 1686 | #undef ICOM_INTERFACE
|
---|
| 1687 |
|
---|
| 1688 | #ifdef ICOM_CINTERFACE
|
---|
[213] | 1689 | /*** IUnknown methods ***/
|
---|
| 1690 | #define IDirectDrawSurface4_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
| 1691 | #define IDirectDrawSurface4_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
| 1692 | #define IDirectDrawSurface4_Release(p) ICOM_CALL (Release,p)
|
---|
| 1693 | /*** IDirectDrawSurface (almost) methods ***/
|
---|
| 1694 | #define IDirectDrawSurface4_AddAttachedSurface(p,a) ICOM_CALL1(AddAttachedSurface,p,a)
|
---|
| 1695 | #define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) ICOM_CALL1(AddOverlayDirtyRect,p,a)
|
---|
| 1696 | #define IDirectDrawSurface4_Blt(p,a,b,c,d,e) ICOM_CALL5(Blt,p,a,b,c,d,e)
|
---|
| 1697 | #define IDirectDrawSurface4_BltBatch(p,a,b,c) ICOM_CALL3(BltBatch,p,a,b,c)
|
---|
| 1698 | #define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) ICOM_CALL5(BltFast,p,a,b,c,d,e)
|
---|
| 1699 | #define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) ICOM_CALL2(DeleteAttachedSurface,p,a,b)
|
---|
| 1700 | #define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) ICOM_CALL2(EnumAttachedSurfaces,p,a,b)
|
---|
| 1701 | #define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) ICOM_CALL3(EnumOverlayZOrders,p,a,b,c)
|
---|
| 1702 | #define IDirectDrawSurface4_Flip(p,a,b) ICOM_CALL2(Flip,p,a,b)
|
---|
| 1703 | #define IDirectDrawSurface4_GetAttachedSurface(p,a,b) ICOM_CALL2(GetAttachedSurface,p,a,b)
|
---|
| 1704 | #define IDirectDrawSurface4_GetBltStatus(p,a) ICOM_CALL1(GetBltStatus,p,a)
|
---|
| 1705 | #define IDirectDrawSurface4_GetCaps(p,a) ICOM_CALL1(GetCaps,p,a)
|
---|
| 1706 | #define IDirectDrawSurface4_GetClipper(p,a) ICOM_CALL1(GetClipper,p,a)
|
---|
| 1707 | #define IDirectDrawSurface4_GetColorKey(p,a,b) ICOM_CALL2(GetColorKey,p,a,b)
|
---|
| 1708 | #define IDirectDrawSurface4_GetDC(p,a) ICOM_CALL1(GetDC,p,a)
|
---|
| 1709 | #define IDirectDrawSurface4_GetFlipStatus(p,a) ICOM_CALL1(GetFlipStatus,p,a)
|
---|
| 1710 | #define IDirectDrawSurface4_GetOverlayPosition(p,a,b) ICOM_CALL2(GetOverlayPosition,p,a,b)
|
---|
| 1711 | #define IDirectDrawSurface4_GetPalette(p,a) ICOM_CALL1(GetPalette,p,a)
|
---|
| 1712 | #define IDirectDrawSurface4_GetPixelFormat(p,a) ICOM_CALL1(GetPixelFormat,p,a)
|
---|
| 1713 | #define IDirectDrawSurface4_GetSurfaceDesc(p,a) ICOM_CALL1(GetSurfaceDesc,p,a)
|
---|
| 1714 | #define IDirectDrawSurface4_Initialize(p,a,b) ICOM_CALL2(Initialize,p,a,b)
|
---|
| 1715 | #define IDirectDrawSurface4_IsLost(p) ICOM_CALL (IsLost,p)
|
---|
| 1716 | #define IDirectDrawSurface4_Lock(p,a,b,c,d) ICOM_CALL4(Lock,p,a,b,c,d)
|
---|
| 1717 | #define IDirectDrawSurface4_ReleaseDC(p,a) ICOM_CALL1(ReleaseDC,p,a)
|
---|
| 1718 | #define IDirectDrawSurface4_Restore(p,a,b) ICOM_CALL (Restore,p,a,b)
|
---|
| 1719 | #define IDirectDrawSurface4_SetClipper(p,a,b) ICOM_CALL1(SetClipper,p,a,b)
|
---|
| 1720 | #define IDirectDrawSurface4_SetColorKey(p,a,b) ICOM_CALL2(SetColorKey,p,a,b)
|
---|
| 1721 | #define IDirectDrawSurface4_SetOverlayPosition(p,a,b) ICOM_CALL2(SetOverlayPosition,p,a,b)
|
---|
| 1722 | #define IDirectDrawSurface4_SetPalette(p,a) ICOM_CALL1(SetPalette,p,a)
|
---|
| 1723 | #define IDirectDrawSurface4_Unlock(p,a) ICOM_CALL1(Unlock,p,a)
|
---|
| 1724 | #define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) ICOM_CALL5(UpdateOverlay,p,a,b,c,d,e)
|
---|
| 1725 | #define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) ICOM_CALL1(UpdateOverlayDisplay,p,a)
|
---|
| 1726 | #define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) ICOM_CALL2(UpdateOverlayZOrder,p,a,b)
|
---|
| 1727 | /*** IDirectDrawSurface2 methods ***/
|
---|
| 1728 | #define IDirectDrawSurface4_GetDDInterface(p,a) ICOM_CALL1(GetDDInterface,p,a)
|
---|
| 1729 | #define IDirectDrawSurface4_PageLock(p,a) ICOM_CALL1(PageLock,p,a)
|
---|
| 1730 | #define IDirectDrawSurface4_PageUnlock(p,a) ICOM_CALL1(PageUnlock,p,a)
|
---|
| 1731 | /*** IDirectDrawSurface3 methods ***/
|
---|
| 1732 | #define IDirectDrawSurface4_SetSurfaceDesc(p,a) ICOM_CALL(SetSurfaceDesc,p,a)
|
---|
| 1733 | /*** IDirectDrawSurface4 methods ***/
|
---|
| 1734 | #define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) ICOM_CALL4(SetPrivateData,p,a,b,c,d)
|
---|
| 1735 | #define IDirectDrawSurface4_GetPrivateData(p,a,b,c) ICOM_CALL3(GetPrivateData,p,a,b,c)
|
---|
| 1736 | #define IDirectDrawSurface4_FreePrivateData(p,a) ICOM_CALL1(FreePrivateData,p,a)
|
---|
| 1737 | #define IDirectDrawSurface4_GetUniquenessValue(p,a) ICOM_CALL1(GetUniquenessValue,p,a)
|
---|
| 1738 | #define IDirectDrawSurface4_ChangeUniquenessValue(p) ICOM_CALL (ChangeUniquenessValue,p)
|
---|
[4] | 1739 | #endif
|
---|
| 1740 |
|
---|
| 1741 |
|
---|
| 1742 | /*****************************************************************************
|
---|
| 1743 | * IDirectDrawColorControl interface
|
---|
| 1744 | */
|
---|
| 1745 | #define ICOM_INTERFACE IDirectDrawColorControl
|
---|
| 1746 | #define IDirectDrawColorControl_METHODS \
|
---|
| 1747 | ICOM_METHOD1(HRESULT,GetColorControls, LPDDCOLORCONTROL,lpColorControl) \
|
---|
| 1748 | ICOM_METHOD1(HRESULT,SetColorControls, LPDDCOLORCONTROL,lpColorControl)
|
---|
| 1749 | #define IDirectDrawColorControl_IMETHODS \
|
---|
| 1750 | IUnknown_IMETHODS \
|
---|
| 1751 | IDirectDrawColorControl_METHODS
|
---|
| 1752 | ICOM_DEFINE(IDirectDrawColorControl,IUnknown)
|
---|
| 1753 | #undef ICOM_INTERFACE
|
---|
| 1754 |
|
---|
| 1755 | #ifdef ICOM_CINTERFACE
|
---|
[213] | 1756 | /*** IUnknown methods ***/
|
---|
| 1757 | #define IDirectDrawColorControl_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
| 1758 | #define IDirectDrawColorControl_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
| 1759 | #define IDirectDrawColorControl_Release(p) ICOM_CALL (Release,p)
|
---|
| 1760 | /*** IDirectDrawColorControl methods ***/
|
---|
| 1761 | #define IDirectDrawColorControl_GetColorControls(p,a) ICOM_CALL(GetColorControls,p,a)
|
---|
| 1762 | #define IDirectDrawColorControl_SetColorControls(p,a) ICOM_CALL(SetColorControls,p,a)
|
---|
[4] | 1763 | #endif
|
---|
| 1764 |
|
---|
| 1765 |
|
---|
| 1766 | HRESULT WINAPI DirectDrawCreate(LPGUID,LPDIRECTDRAW*,LPUNKNOWN);
|
---|
| 1767 | HRESULT WINAPI DirectDrawEnumerateA(LPDDENUMCALLBACKA,LPVOID);
|
---|
| 1768 | HRESULT WINAPI DirectDrawEnumerateW(LPDDENUMCALLBACKW,LPVOID);
|
---|
| 1769 | #define DirectDrawEnumerate WINELIB_NAME_AW(DirectDrawEnumerate)
|
---|
| 1770 | HRESULT WINAPI DirectDrawCreateClipper(DWORD,LPDIRECTDRAWCLIPPER*,LPUNKNOWN);
|
---|
| 1771 |
|
---|
[21521] | 1772 | #ifdef __cplusplus
|
---|
| 1773 | }
|
---|
| 1774 | #endif
|
---|
| 1775 |
|
---|
[4] | 1776 | #endif /* __WINE_DDRAW_H */
|
---|
[213] | 1777 |
|
---|
[586] | 1778 |
|
---|