annotate lib/legacy_dx/ddraw.h @ 28:18f7a1b94448

Indoor::Load
author Nomad
date Tue, 16 Oct 2012 19:31:34 +0200
parents 8b8875f5b359
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 /*==========================================================================;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3 * Copyright (C) Microsoft Corporation. All Rights Reserved.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 * File: ddraw.h
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 * Content: DirectDraw include file
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 ***************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 #ifndef __DDRAW_INCLUDED__
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 #define __DDRAW_INCLUDED__
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 //Disable the nameless union warning when building internally
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 #undef ENABLE_NAMELESS_UNION_PRAGMA
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 #ifdef DIRECTX_REDIST
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 #define ENABLE_NAMELESS_UNION_PRAGMA
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 #ifdef ENABLE_NAMELESS_UNION_PRAGMA
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 #pragma warning(disable:4201)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 * If you wish an application built against the newest version of DirectDraw
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 * to run against an older DirectDraw run time then define DIRECTDRAW_VERSION
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 * to be the earlies version of DirectDraw you wish to run against. For,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 * example if you wish an application to run against a DX 3 runtime define
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 * DIRECTDRAW_VERSION to be 0x0300.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 #ifndef DIRECTDRAW_VERSION
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 #define DIRECTDRAW_VERSION 0x0700
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 #endif /* DIRECTDRAW_VERSION */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 #if defined( _WIN32 ) && !defined( _NO_COM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 #define COM_NO_WINDOWS_H
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 #include <objbase.h>
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 #define IUnknown void
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 #if !defined( NT_BUILD_ENVIRONMENT ) && !defined(WINNT)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 #define CO_E_NOTINITIALIZED 0x800401F0L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 #define _FACDD 0x876
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 #ifdef __cplusplus
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 extern "C" {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 //
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 // For compilers that don't support nameless unions, do a
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 //
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 // #define NONAMELESSUNION
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 //
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 // before #include <ddraw.h>
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 //
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 #ifndef DUMMYUNIONNAMEN
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 #if defined(__cplusplus) || !defined(NONAMELESSUNION)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 #define DUMMYUNIONNAMEN(n)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 #define DUMMYUNIONNAMEN(n) u##n
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 #ifndef MAKEFOURCC
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 #define MAKEFOURCC(ch0, ch1, ch2, ch3) \
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 #endif //defined(MAKEFOURCC)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 * FOURCC codes for DX compressed-texture pixel formats
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 #define FOURCC_DXT1 (MAKEFOURCC('D','X','T','1'))
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 #define FOURCC_DXT2 (MAKEFOURCC('D','X','T','2'))
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 #define FOURCC_DXT3 (MAKEFOURCC('D','X','T','3'))
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 #define FOURCC_DXT4 (MAKEFOURCC('D','X','T','4'))
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 #define FOURCC_DXT5 (MAKEFOURCC('D','X','T','5'))
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 * GUIDS used by DirectDraw objects
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 #if defined( _WIN32 ) && !defined( _NO_COM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 DEFINE_GUID( CLSID_DirectDraw, 0xD7B70EE0,0x4340,0x11CF,0xB0,0x63,0x00,0x20,0xAF,0xC2,0xCD,0x35 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 DEFINE_GUID( CLSID_DirectDraw7, 0x3c305196,0x50db,0x11d3,0x9c,0xfe,0x00,0xc0,0x4f,0xd9,0x30,0xc5 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 DEFINE_GUID( CLSID_DirectDrawClipper, 0x593817A0,0x7DB3,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xb9,0x33,0x56 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 DEFINE_GUID( IID_IDirectDraw, 0x6C14DB80,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 DEFINE_GUID( IID_IDirectDraw2, 0xB3A6F3E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 DEFINE_GUID( IID_IDirectDraw4, 0x9c59509a,0x39bd,0x11d1,0x8c,0x4a,0x00,0xc0,0x4f,0xd9,0x30,0xc5 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 DEFINE_GUID( IID_IDirectDraw7, 0x15e65ec0,0x3b9c,0x11d2,0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 DEFINE_GUID( IID_IDirectDrawSurface, 0x6C14DB81,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 DEFINE_GUID( IID_IDirectDrawSurface2, 0x57805885,0x6eec,0x11cf,0x94,0x41,0xa8,0x23,0x03,0xc1,0x0e,0x27 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 DEFINE_GUID( IID_IDirectDrawSurface3, 0xDA044E00,0x69B2,0x11D0,0xA1,0xD5,0x00,0xAA,0x00,0xB8,0xDF,0xBB );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 DEFINE_GUID( IID_IDirectDrawSurface4, 0x0B2B8630,0xAD35,0x11D0,0x8E,0xA6,0x00,0x60,0x97,0x97,0xEA,0x5B );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 DEFINE_GUID( IID_IDirectDrawSurface7, 0x06675a80,0x3b9b,0x11d2,0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 DEFINE_GUID( IID_IDirectDrawPalette, 0x6C14DB84,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 DEFINE_GUID( IID_IDirectDrawClipper, 0x6C14DB85,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 DEFINE_GUID( IID_IDirectDrawColorControl, 0x4B9F0EE0,0x0D7E,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8 );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 DEFINE_GUID( IID_IDirectDrawGammaControl, 0x69C11C3E,0xB46B,0x11D1,0xAD,0x7A,0x00,0xC0,0x4F,0xC2,0x9B,0x4E );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 /*============================================================================
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 * DirectDraw Structures
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 * Various structures used to invoke DirectDraw.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 *==========================================================================*/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 struct IDirectDraw;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 struct IDirectDrawSurface;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115 struct IDirectDrawPalette;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 struct IDirectDrawClipper;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 typedef struct IDirectDraw FAR *LPDIRECTDRAW;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 typedef struct IDirectDraw2 FAR *LPDIRECTDRAW2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 typedef struct IDirectDraw4 FAR *LPDIRECTDRAW4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 typedef struct IDirectDraw7 FAR *LPDIRECTDRAW7;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 typedef struct IDirectDrawSurface FAR *LPDIRECTDRAWSURFACE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 typedef struct IDirectDrawSurface2 FAR *LPDIRECTDRAWSURFACE2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 typedef struct IDirectDrawSurface3 FAR *LPDIRECTDRAWSURFACE3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 typedef struct IDirectDrawSurface4 FAR *LPDIRECTDRAWSURFACE4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 typedef struct IDirectDrawSurface7 FAR *LPDIRECTDRAWSURFACE7;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 typedef struct IDirectDrawPalette FAR *LPDIRECTDRAWPALETTE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128 typedef struct IDirectDrawClipper FAR *LPDIRECTDRAWCLIPPER;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129 typedef struct IDirectDrawColorControl FAR *LPDIRECTDRAWCOLORCONTROL;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130 typedef struct IDirectDrawGammaControl FAR *LPDIRECTDRAWGAMMACONTROL;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 typedef struct _DDFXROP FAR *LPDDFXROP;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 typedef struct _DDSURFACEDESC FAR *LPDDSURFACEDESC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134 typedef struct _DDSURFACEDESC2 FAR *LPDDSURFACEDESC2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 typedef struct _DDCOLORCONTROL FAR *LPDDCOLORCONTROL;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 * API's
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
140 #if (defined (WIN32) || defined( _WIN32 ) ) && !defined( _NO_COM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141 //#if defined( _WIN32 ) && !defined( _NO_ENUM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKA)(GUID FAR *, LPSTR, LPSTR, LPVOID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143 typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKW)(GUID FAR *, LPWSTR, LPWSTR, LPVOID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 extern HRESULT WINAPI DirectDrawEnumerateW( LPDDENUMCALLBACKW lpCallback, LPVOID lpContext );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 extern HRESULT WINAPI DirectDrawEnumerateA( LPDDENUMCALLBACKA lpCallback, LPVOID lpContext );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
147 * Protect against old SDKs
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149 #if !defined(HMONITOR_DECLARED) && (WINVER < 0x0500)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 #define HMONITOR_DECLARED
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 DECLARE_HANDLE(HMONITOR);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153 typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKEXA)(GUID FAR *, LPSTR, LPSTR, LPVOID, HMONITOR);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154 typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKEXW)(GUID FAR *, LPWSTR, LPWSTR, LPVOID, HMONITOR);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155 extern HRESULT WINAPI DirectDrawEnumerateExW( LPDDENUMCALLBACKEXW lpCallback, LPVOID lpContext, DWORD dwFlags);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156 extern HRESULT WINAPI DirectDrawEnumerateExA( LPDDENUMCALLBACKEXA lpCallback, LPVOID lpContext, DWORD dwFlags);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157 typedef HRESULT (WINAPI * LPDIRECTDRAWENUMERATEEXA)( LPDDENUMCALLBACKEXA lpCallback, LPVOID lpContext, DWORD dwFlags);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158 typedef HRESULT (WINAPI * LPDIRECTDRAWENUMERATEEXW)( LPDDENUMCALLBACKEXW lpCallback, LPVOID lpContext, DWORD dwFlags);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
160 #ifdef UNICODE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161 typedef LPDDENUMCALLBACKW LPDDENUMCALLBACK;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162 #define DirectDrawEnumerate DirectDrawEnumerateW
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
163 typedef LPDDENUMCALLBACKEXW LPDDENUMCALLBACKEX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 typedef LPDIRECTDRAWENUMERATEEXW LPDIRECTDRAWENUMERATEEX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165 #define DirectDrawEnumerateEx DirectDrawEnumerateExW
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167 typedef LPDDENUMCALLBACKA LPDDENUMCALLBACK;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168 #define DirectDrawEnumerate DirectDrawEnumerateA
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169 typedef LPDDENUMCALLBACKEXA LPDDENUMCALLBACKEX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170 typedef LPDIRECTDRAWENUMERATEEXA LPDIRECTDRAWENUMERATEEX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171 #define DirectDrawEnumerateEx DirectDrawEnumerateExA
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
173 extern HRESULT WINAPI DirectDrawCreate( GUID FAR *lpGUID, LPDIRECTDRAW FAR *lplpDD, IUnknown FAR *pUnkOuter );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
174 extern HRESULT WINAPI DirectDrawCreateEx( GUID FAR * lpGuid, LPVOID *lplpDD, REFIID iid,IUnknown FAR *pUnkOuter );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
175 extern HRESULT WINAPI DirectDrawCreateClipper( DWORD dwFlags, LPDIRECTDRAWCLIPPER FAR *lplpDDClipper, IUnknown FAR *pUnkOuter );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
176 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
177 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
178 * Flags for DirectDrawEnumerateEx
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
179 * DirectDrawEnumerateEx supercedes DirectDrawEnumerate. You must use GetProcAddress to
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
180 * obtain a function pointer (of type LPDIRECTDRAWENUMERATEEX) to DirectDrawEnumerateEx.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
181 * By default, only the primary display device is enumerated.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
182 * DirectDrawEnumerate is equivalent to DirectDrawEnumerate(,,DDENUM_NONDISPLAYDEVICES)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
183 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
184
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
185 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
186 * This flag causes enumeration of any GDI display devices which are part of
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
187 * the Windows Desktop
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
188 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
189 #define DDENUM_ATTACHEDSECONDARYDEVICES 0x00000001L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
190
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
191 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
192 * This flag causes enumeration of any GDI display devices which are not
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
193 * part of the Windows Desktop
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
194 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
195 #define DDENUM_DETACHEDSECONDARYDEVICES 0x00000002L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
196
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
197 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
198 * This flag causes enumeration of non-display devices
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
199 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
200 #define DDENUM_NONDISPLAYDEVICES 0x00000004L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
201
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
202
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
203 #define REGSTR_KEY_DDHW_DESCRIPTION "Description"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
204 #define REGSTR_KEY_DDHW_DRIVERNAME "DriverName"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
205 #define REGSTR_PATH_DDHW "Hardware\\DirectDrawDrivers"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
206
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
207 #define DDCREATE_HARDWAREONLY 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
208 #define DDCREATE_EMULATIONONLY 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
209
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
210 #if defined(WINNT) || !defined(WIN32)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
211 typedef long HRESULT;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
212 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
213
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
214 //#ifndef WINNT
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
215 typedef HRESULT (FAR PASCAL * LPDDENUMMODESCALLBACK)(LPDDSURFACEDESC, LPVOID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
216 typedef HRESULT (FAR PASCAL * LPDDENUMMODESCALLBACK2)(LPDDSURFACEDESC2, LPVOID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
217 typedef HRESULT (FAR PASCAL * LPDDENUMSURFACESCALLBACK)(LPDIRECTDRAWSURFACE, LPDDSURFACEDESC, LPVOID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
218 typedef HRESULT (FAR PASCAL * LPDDENUMSURFACESCALLBACK2)(LPDIRECTDRAWSURFACE4, LPDDSURFACEDESC2, LPVOID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
219 typedef HRESULT (FAR PASCAL * LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
220 //#endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
221
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
222 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
223 * Generic pixel format with 8-bit RGB and alpha components
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
224 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
225 typedef struct _DDARGB
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
226 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
227 BYTE blue;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
228 BYTE green;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
229 BYTE red;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
230 BYTE alpha;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
231 } DDARGB;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
232
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
233 typedef DDARGB FAR *LPDDARGB;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
234
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
235 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
236 * This version of the structure remains for backwards source compatibility.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
237 * The DDARGB structure is the one that should be used for all DirectDraw APIs.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
238 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
239 typedef struct _DDRGBA
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
240 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
241 BYTE red;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
242 BYTE green;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
243 BYTE blue;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
244 BYTE alpha;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
245 } DDRGBA;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
246
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
247 typedef DDRGBA FAR *LPDDRGBA;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
248
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
249
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
250 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
251 * DDCOLORKEY
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
252 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
253 typedef struct _DDCOLORKEY
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
254 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
255 DWORD dwColorSpaceLowValue; // low boundary of color space that is to
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
256 // be treated as Color Key, inclusive
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
257 DWORD dwColorSpaceHighValue; // high boundary of color space that is
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
258 // to be treated as Color Key, inclusive
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
259 } DDCOLORKEY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
260
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
261 typedef DDCOLORKEY FAR* LPDDCOLORKEY;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
262
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
263 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
264 * DDBLTFX
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
265 * Used to pass override information to the DIRECTDRAWSURFACE callback Blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
266 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
267 typedef struct _DDBLTFX
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
268 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
269 DWORD dwSize; // size of structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
270 DWORD dwDDFX; // FX operations
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
271 DWORD dwROP; // Win32 raster operations
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
272 DWORD dwDDROP; // Raster operations new for DirectDraw
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
273 DWORD dwRotationAngle; // Rotation angle for blt
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
274 DWORD dwZBufferOpCode; // ZBuffer compares
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
275 DWORD dwZBufferLow; // Low limit of Z buffer
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
276 DWORD dwZBufferHigh; // High limit of Z buffer
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
277 DWORD dwZBufferBaseDest; // Destination base value
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
278 DWORD dwZDestConstBitDepth; // Bit depth used to specify Z constant for destination
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
279 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
280 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
281 DWORD dwZDestConst; // Constant to use as Z buffer for dest
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
282 LPDIRECTDRAWSURFACE lpDDSZBufferDest; // Surface to use as Z buffer for dest
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
283 } DUMMYUNIONNAMEN(1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
284 DWORD dwZSrcConstBitDepth; // Bit depth used to specify Z constant for source
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
285 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
286 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
287 DWORD dwZSrcConst; // Constant to use as Z buffer for src
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
288 LPDIRECTDRAWSURFACE lpDDSZBufferSrc; // Surface to use as Z buffer for src
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
289 } DUMMYUNIONNAMEN(2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
290 DWORD dwAlphaEdgeBlendBitDepth; // Bit depth used to specify constant for alpha edge blend
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
291 DWORD dwAlphaEdgeBlend; // Alpha for edge blending
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
292 DWORD dwReserved;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
293 DWORD dwAlphaDestConstBitDepth; // Bit depth used to specify alpha constant for destination
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
294 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
295 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
296 DWORD dwAlphaDestConst; // Constant to use as Alpha Channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
297 LPDIRECTDRAWSURFACE lpDDSAlphaDest; // Surface to use as Alpha Channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
298 } DUMMYUNIONNAMEN(3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
299 DWORD dwAlphaSrcConstBitDepth; // Bit depth used to specify alpha constant for source
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
300 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
301 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
302 DWORD dwAlphaSrcConst; // Constant to use as Alpha Channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
303 LPDIRECTDRAWSURFACE lpDDSAlphaSrc; // Surface to use as Alpha Channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
304 } DUMMYUNIONNAMEN(4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
305 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
306 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
307 DWORD dwFillColor; // color in RGB or Palettized
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
308 DWORD dwFillDepth; // depth value for z-buffer
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
309 DWORD dwFillPixel; // pixel value for RGBA or RGBZ
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
310 LPDIRECTDRAWSURFACE lpDDSPattern; // Surface to use as pattern
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
311 } DUMMYUNIONNAMEN(5);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
312 DDCOLORKEY ddckDestColorkey; // DestColorkey override
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
313 DDCOLORKEY ddckSrcColorkey; // SrcColorkey override
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
314 } DDBLTFX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
315
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
316 typedef DDBLTFX FAR* LPDDBLTFX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
317
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
318
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
319
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
320 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
321 * DDSCAPS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
322 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
323 typedef struct _DDSCAPS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
324 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
325 DWORD dwCaps; // capabilities of surface wanted
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
326 } DDSCAPS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
327
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
328 typedef DDSCAPS FAR* LPDDSCAPS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
329
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
330
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
331 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
332 * DDOSCAPS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
333 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
334 typedef struct _DDOSCAPS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
335 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
336 DWORD dwCaps; // capabilities of surface wanted
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
337 } DDOSCAPS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
338
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
339 typedef DDOSCAPS FAR* LPDDOSCAPS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
340
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
341 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
342 * This structure is used internally by DirectDraw.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
343 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
344 typedef struct _DDSCAPSEX
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
345 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
346 DWORD dwCaps2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
347 DWORD dwCaps3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
348 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
349 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
350 DWORD dwCaps4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
351 DWORD dwVolumeDepth;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
352 } DUMMYUNIONNAMEN(1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
353 } DDSCAPSEX, FAR * LPDDSCAPSEX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
354
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
355 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
356 * DDSCAPS2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
357 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
358 typedef struct _DDSCAPS2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
359 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
360 DWORD dwCaps; // capabilities of surface wanted
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
361 DWORD dwCaps2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
362 DWORD dwCaps3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
363 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
364 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
365 DWORD dwCaps4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
366 DWORD dwVolumeDepth;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
367 } DUMMYUNIONNAMEN(1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
368 } DDSCAPS2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
369
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
370 typedef DDSCAPS2 FAR* LPDDSCAPS2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
371
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
372 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
373 * DDCAPS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
374 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
375 #define DD_ROP_SPACE (256/32) // space required to store ROP array
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
376 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
377 * NOTE: Our choosen structure number scheme is to append a single digit to
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
378 * the end of the structure giving the version that structure is associated
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
379 * with.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
380 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
381
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
382 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
383 * This structure represents the DDCAPS structure released in DirectDraw 1.0. It is used internally
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
384 * by DirectDraw to interpret caps passed into ddraw by drivers written prior to the release of DirectDraw 2.0.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
385 * New applications should use the DDCAPS structure defined below.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
386 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
387 typedef struct _DDCAPS_DX1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
388 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
389 DWORD dwSize; // size of the DDDRIVERCAPS structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
390 DWORD dwCaps; // driver specific capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
391 DWORD dwCaps2; // more driver specific capabilites
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
392 DWORD dwCKeyCaps; // color key capabilities of the surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
393 DWORD dwFXCaps; // driver specific stretching and effects capabilites
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
394 DWORD dwFXAlphaCaps; // alpha driver specific capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
395 DWORD dwPalCaps; // palette capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
396 DWORD dwSVCaps; // stereo vision capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
397 DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
398 DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
399 DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
400 DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
401 DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
402 DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
403 DWORD dwZBufferBitDepths; // DDBD_8,16,24,32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
404 DWORD dwVidMemTotal; // total amount of video memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
405 DWORD dwVidMemFree; // amount of free video memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
406 DWORD dwMaxVisibleOverlays; // maximum number of visible overlays
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
407 DWORD dwCurrVisibleOverlays; // current number of visible overlays
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
408 DWORD dwNumFourCCCodes; // number of four cc codes
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
409 DWORD dwAlignBoundarySrc; // source rectangle alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
410 DWORD dwAlignSizeSrc; // source rectangle byte size
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
411 DWORD dwAlignBoundaryDest; // dest rectangle alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
412 DWORD dwAlignSizeDest; // dest rectangle byte size
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
413 DWORD dwAlignStrideAlign; // stride alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
414 DWORD dwRops[DD_ROP_SPACE]; // ROPS supported
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
415 DDSCAPS ddsCaps; // DDSCAPS structure has all the general capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
416 DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
417 DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
418 DWORD dwMinLiveVideoStretch; // OBSOLETE! This field remains for compatability reasons only
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
419 DWORD dwMaxLiveVideoStretch; // OBSOLETE! This field remains for compatability reasons only
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
420 DWORD dwMinHwCodecStretch; // OBSOLETE! This field remains for compatability reasons only
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
421 DWORD dwMaxHwCodecStretch; // OBSOLETE! This field remains for compatability reasons only
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
422 DWORD dwReserved1; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
423 DWORD dwReserved2; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
424 DWORD dwReserved3; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
425 } DDCAPS_DX1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
426
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
427 typedef DDCAPS_DX1 FAR* LPDDCAPS_DX1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
428
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
429 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
430 * This structure is the DDCAPS structure as it was in version 2 and 3 of Direct X.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
431 * It is present for back compatability.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
432 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
433 typedef struct _DDCAPS_DX3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
434 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
435 DWORD dwSize; // size of the DDDRIVERCAPS structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
436 DWORD dwCaps; // driver specific capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
437 DWORD dwCaps2; // more driver specific capabilites
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
438 DWORD dwCKeyCaps; // color key capabilities of the surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
439 DWORD dwFXCaps; // driver specific stretching and effects capabilites
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
440 DWORD dwFXAlphaCaps; // alpha driver specific capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
441 DWORD dwPalCaps; // palette capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
442 DWORD dwSVCaps; // stereo vision capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
443 DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
444 DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
445 DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
446 DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
447 DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
448 DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
449 DWORD dwZBufferBitDepths; // DDBD_8,16,24,32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
450 DWORD dwVidMemTotal; // total amount of video memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
451 DWORD dwVidMemFree; // amount of free video memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
452 DWORD dwMaxVisibleOverlays; // maximum number of visible overlays
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
453 DWORD dwCurrVisibleOverlays; // current number of visible overlays
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
454 DWORD dwNumFourCCCodes; // number of four cc codes
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
455 DWORD dwAlignBoundarySrc; // source rectangle alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
456 DWORD dwAlignSizeSrc; // source rectangle byte size
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
457 DWORD dwAlignBoundaryDest; // dest rectangle alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
458 DWORD dwAlignSizeDest; // dest rectangle byte size
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
459 DWORD dwAlignStrideAlign; // stride alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
460 DWORD dwRops[DD_ROP_SPACE]; // ROPS supported
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
461 DDSCAPS ddsCaps; // DDSCAPS structure has all the general capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
462 DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
463 DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
464 DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
465 DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
466 DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
467 DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
468 DWORD dwReserved1; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
469 DWORD dwReserved2; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
470 DWORD dwReserved3; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
471 DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
472 DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
473 DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
474 DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
475 DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
476 DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
477 DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
478 DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
479 DWORD dwSSBCaps; // driver specific capabilities for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
480 DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
481 DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
482 DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
483 DWORD dwReserved4; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
484 DWORD dwReserved5; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
485 DWORD dwReserved6; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
486 } DDCAPS_DX3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
487 typedef DDCAPS_DX3 FAR* LPDDCAPS_DX3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
488
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
489 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
490 * This structure is the DDCAPS structure as it was in version 5 of Direct X.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
491 * It is present for back compatability.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
492 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
493 typedef struct _DDCAPS_DX5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
494 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
495 /* 0*/ DWORD dwSize; // size of the DDDRIVERCAPS structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
496 /* 4*/ DWORD dwCaps; // driver specific capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
497 /* 8*/ DWORD dwCaps2; // more driver specific capabilites
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
498 /* c*/ DWORD dwCKeyCaps; // color key capabilities of the surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
499 /* 10*/ DWORD dwFXCaps; // driver specific stretching and effects capabilites
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
500 /* 14*/ DWORD dwFXAlphaCaps; // alpha driver specific capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
501 /* 18*/ DWORD dwPalCaps; // palette capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
502 /* 1c*/ DWORD dwSVCaps; // stereo vision capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
503 /* 20*/ DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
504 /* 24*/ DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
505 /* 28*/ DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
506 /* 2c*/ DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
507 /* 30*/ DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
508 /* 34*/ DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
509 /* 38*/ DWORD dwZBufferBitDepths; // DDBD_8,16,24,32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
510 /* 3c*/ DWORD dwVidMemTotal; // total amount of video memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
511 /* 40*/ DWORD dwVidMemFree; // amount of free video memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
512 /* 44*/ DWORD dwMaxVisibleOverlays; // maximum number of visible overlays
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
513 /* 48*/ DWORD dwCurrVisibleOverlays; // current number of visible overlays
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
514 /* 4c*/ DWORD dwNumFourCCCodes; // number of four cc codes
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
515 /* 50*/ DWORD dwAlignBoundarySrc; // source rectangle alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
516 /* 54*/ DWORD dwAlignSizeSrc; // source rectangle byte size
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
517 /* 58*/ DWORD dwAlignBoundaryDest; // dest rectangle alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
518 /* 5c*/ DWORD dwAlignSizeDest; // dest rectangle byte size
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
519 /* 60*/ DWORD dwAlignStrideAlign; // stride alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
520 /* 64*/ DWORD dwRops[DD_ROP_SPACE]; // ROPS supported
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
521 /* 84*/ DDSCAPS ddsCaps; // DDSCAPS structure has all the general capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
522 /* 88*/ DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
523 /* 8c*/ DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
524 /* 90*/ DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
525 /* 94*/ DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
526 /* 98*/ DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
527 /* 9c*/ DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
528 /* a0*/ DWORD dwReserved1; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
529 /* a4*/ DWORD dwReserved2; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
530 /* a8*/ DWORD dwReserved3; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
531 /* ac*/ DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
532 /* b0*/ DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
533 /* b4*/ DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
534 /* b8*/ DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
535 /* d8*/ DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
536 /* dc*/ DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
537 /* e0*/ DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
538 /* e4*/ DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
539 /*104*/ DWORD dwSSBCaps; // driver specific capabilities for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
540 /*108*/ DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
541 /*10c*/ DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
542 /*110*/ DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
543 // Members added for DX5:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
544 /*130*/ DWORD dwMaxVideoPorts; // maximum number of usable video ports
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
545 /*134*/ DWORD dwCurrVideoPorts; // current number of video ports used
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
546 /*138*/ DWORD dwSVBCaps2; // more driver specific capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
547 /*13c*/ DWORD dwNLVBCaps; // driver specific capabilities for non-local->local vidmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
548 /*140*/ DWORD dwNLVBCaps2; // more driver specific capabilities non-local->local vidmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
549 /*144*/ DWORD dwNLVBCKeyCaps; // driver color key capabilities for non-local->local vidmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
550 /*148*/ DWORD dwNLVBFXCaps; // driver FX capabilities for non-local->local blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
551 /*14c*/ DWORD dwNLVBRops[DD_ROP_SPACE]; // ROPS supported for non-local->local blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
552 } DDCAPS_DX5;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
553 typedef DDCAPS_DX5 FAR* LPDDCAPS_DX5;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
554
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
555 typedef struct _DDCAPS_DX6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
556 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
557 /* 0*/ DWORD dwSize; // size of the DDDRIVERCAPS structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
558 /* 4*/ DWORD dwCaps; // driver specific capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
559 /* 8*/ DWORD dwCaps2; // more driver specific capabilites
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
560 /* c*/ DWORD dwCKeyCaps; // color key capabilities of the surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
561 /* 10*/ DWORD dwFXCaps; // driver specific stretching and effects capabilites
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
562 /* 14*/ DWORD dwFXAlphaCaps; // alpha caps
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
563 /* 18*/ DWORD dwPalCaps; // palette capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
564 /* 1c*/ DWORD dwSVCaps; // stereo vision capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
565 /* 20*/ DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
566 /* 24*/ DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
567 /* 28*/ DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
568 /* 2c*/ DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
569 /* 30*/ DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
570 /* 34*/ DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
571 /* 38*/ DWORD dwZBufferBitDepths; // DDBD_8,16,24,32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
572 /* 3c*/ DWORD dwVidMemTotal; // total amount of video memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
573 /* 40*/ DWORD dwVidMemFree; // amount of free video memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
574 /* 44*/ DWORD dwMaxVisibleOverlays; // maximum number of visible overlays
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
575 /* 48*/ DWORD dwCurrVisibleOverlays; // current number of visible overlays
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
576 /* 4c*/ DWORD dwNumFourCCCodes; // number of four cc codes
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
577 /* 50*/ DWORD dwAlignBoundarySrc; // source rectangle alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
578 /* 54*/ DWORD dwAlignSizeSrc; // source rectangle byte size
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
579 /* 58*/ DWORD dwAlignBoundaryDest; // dest rectangle alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
580 /* 5c*/ DWORD dwAlignSizeDest; // dest rectangle byte size
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
581 /* 60*/ DWORD dwAlignStrideAlign; // stride alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
582 /* 64*/ DWORD dwRops[DD_ROP_SPACE]; // ROPS supported
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
583 /* 84*/ DDSCAPS ddsOldCaps; // Was DDSCAPS ddsCaps. ddsCaps is of type DDSCAPS2 for DX6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
584 /* 88*/ DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
585 /* 8c*/ DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
586 /* 90*/ DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
587 /* 94*/ DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
588 /* 98*/ DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
589 /* 9c*/ DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
590 /* a0*/ DWORD dwReserved1; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
591 /* a4*/ DWORD dwReserved2; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
592 /* a8*/ DWORD dwReserved3; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
593 /* ac*/ DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
594 /* b0*/ DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
595 /* b4*/ DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
596 /* b8*/ DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
597 /* d8*/ DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
598 /* dc*/ DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
599 /* e0*/ DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
600 /* e4*/ DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
601 /*104*/ DWORD dwSSBCaps; // driver specific capabilities for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
602 /*108*/ DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
603 /*10c*/ DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
604 /*110*/ DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
605 /*130*/ DWORD dwMaxVideoPorts; // maximum number of usable video ports
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
606 /*134*/ DWORD dwCurrVideoPorts; // current number of video ports used
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
607 /*138*/ DWORD dwSVBCaps2; // more driver specific capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
608 /*13c*/ DWORD dwNLVBCaps; // driver specific capabilities for non-local->local vidmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
609 /*140*/ DWORD dwNLVBCaps2; // more driver specific capabilities non-local->local vidmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
610 /*144*/ DWORD dwNLVBCKeyCaps; // driver color key capabilities for non-local->local vidmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
611 /*148*/ DWORD dwNLVBFXCaps; // driver FX capabilities for non-local->local blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
612 /*14c*/ DWORD dwNLVBRops[DD_ROP_SPACE]; // ROPS supported for non-local->local blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
613 // Members added for DX6 release
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
614 /*16c*/ DDSCAPS2 ddsCaps; // Surface Caps
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
615 } DDCAPS_DX6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
616 typedef DDCAPS_DX6 FAR* LPDDCAPS_DX6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
617
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
618 typedef struct _DDCAPS_DX7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
619 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
620 /* 0*/ DWORD dwSize; // size of the DDDRIVERCAPS structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
621 /* 4*/ DWORD dwCaps; // driver specific capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
622 /* 8*/ DWORD dwCaps2; // more driver specific capabilites
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
623 /* c*/ DWORD dwCKeyCaps; // color key capabilities of the surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
624 /* 10*/ DWORD dwFXCaps; // driver specific stretching and effects capabilites
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
625 /* 14*/ DWORD dwFXAlphaCaps; // alpha driver specific capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
626 /* 18*/ DWORD dwPalCaps; // palette capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
627 /* 1c*/ DWORD dwSVCaps; // stereo vision capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
628 /* 20*/ DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
629 /* 24*/ DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
630 /* 28*/ DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
631 /* 2c*/ DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
632 /* 30*/ DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
633 /* 34*/ DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
634 /* 38*/ DWORD dwZBufferBitDepths; // DDBD_8,16,24,32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
635 /* 3c*/ DWORD dwVidMemTotal; // total amount of video memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
636 /* 40*/ DWORD dwVidMemFree; // amount of free video memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
637 /* 44*/ DWORD dwMaxVisibleOverlays; // maximum number of visible overlays
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
638 /* 48*/ DWORD dwCurrVisibleOverlays; // current number of visible overlays
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
639 /* 4c*/ DWORD dwNumFourCCCodes; // number of four cc codes
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
640 /* 50*/ DWORD dwAlignBoundarySrc; // source rectangle alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
641 /* 54*/ DWORD dwAlignSizeSrc; // source rectangle byte size
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
642 /* 58*/ DWORD dwAlignBoundaryDest; // dest rectangle alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
643 /* 5c*/ DWORD dwAlignSizeDest; // dest rectangle byte size
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
644 /* 60*/ DWORD dwAlignStrideAlign; // stride alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
645 /* 64*/ DWORD dwRops[DD_ROP_SPACE]; // ROPS supported
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
646 /* 84*/ DDSCAPS ddsOldCaps; // Was DDSCAPS ddsCaps. ddsCaps is of type DDSCAPS2 for DX6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
647 /* 88*/ DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
648 /* 8c*/ DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
649 /* 90*/ DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
650 /* 94*/ DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
651 /* 98*/ DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
652 /* 9c*/ DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
653 /* a0*/ DWORD dwReserved1; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
654 /* a4*/ DWORD dwReserved2; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
655 /* a8*/ DWORD dwReserved3; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
656 /* ac*/ DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
657 /* b0*/ DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
658 /* b4*/ DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
659 /* b8*/ DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
660 /* d8*/ DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
661 /* dc*/ DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
662 /* e0*/ DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
663 /* e4*/ DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
664 /*104*/ DWORD dwSSBCaps; // driver specific capabilities for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
665 /*108*/ DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
666 /*10c*/ DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
667 /*110*/ DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
668 /*130*/ DWORD dwMaxVideoPorts; // maximum number of usable video ports
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
669 /*134*/ DWORD dwCurrVideoPorts; // current number of video ports used
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
670 /*138*/ DWORD dwSVBCaps2; // more driver specific capabilities for System->Vmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
671 /*13c*/ DWORD dwNLVBCaps; // driver specific capabilities for non-local->local vidmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
672 /*140*/ DWORD dwNLVBCaps2; // more driver specific capabilities non-local->local vidmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
673 /*144*/ DWORD dwNLVBCKeyCaps; // driver color key capabilities for non-local->local vidmem blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
674 /*148*/ DWORD dwNLVBFXCaps; // driver FX capabilities for non-local->local blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
675 /*14c*/ DWORD dwNLVBRops[DD_ROP_SPACE]; // ROPS supported for non-local->local blts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
676 // Members added for DX6 release
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
677 /*16c*/ DDSCAPS2 ddsCaps; // Surface Caps
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
678 } DDCAPS_DX7;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
679 typedef DDCAPS_DX7 FAR* LPDDCAPS_DX7;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
680
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
681
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
682 #if DIRECTDRAW_VERSION <= 0x300
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
683 typedef DDCAPS_DX3 DDCAPS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
684 #elif DIRECTDRAW_VERSION <= 0x500
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
685 typedef DDCAPS_DX5 DDCAPS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
686 #elif DIRECTDRAW_VERSION <= 0x600
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
687 typedef DDCAPS_DX6 DDCAPS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
688 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
689 typedef DDCAPS_DX7 DDCAPS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
690 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
691
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
692 typedef DDCAPS FAR* LPDDCAPS;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
693
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
694
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
695
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
696 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
697 * DDPIXELFORMAT
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
698 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
699 typedef struct _DDPIXELFORMAT
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
700 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
701 DWORD dwSize; // size of structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
702 DWORD dwFlags; // pixel format flags
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
703 DWORD dwFourCC; // (FOURCC code)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
704 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
705 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
706 DWORD dwRGBBitCount; // how many bits per pixel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
707 DWORD dwYUVBitCount; // how many bits per pixel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
708 DWORD dwZBufferBitDepth; // how many total bits/pixel in z buffer (including any stencil bits)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
709 DWORD dwAlphaBitDepth; // how many bits for alpha channels
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
710 DWORD dwLuminanceBitCount; // how many bits per pixel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
711 DWORD dwBumpBitCount; // how many bits per "buxel", total
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
712 DWORD dwPrivateFormatBitCount;// Bits per pixel of private driver formats. Only valid in texture
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
713 // format list and if DDPF_D3DFORMAT is set
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
714 } DUMMYUNIONNAMEN(1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
715 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
716 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
717 DWORD dwRBitMask; // mask for red bit
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
718 DWORD dwYBitMask; // mask for Y bits
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
719 DWORD dwStencilBitDepth; // how many stencil bits (note: dwZBufferBitDepth-dwStencilBitDepth is total Z-only bits)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
720 DWORD dwLuminanceBitMask; // mask for luminance bits
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
721 DWORD dwBumpDuBitMask; // mask for bump map U delta bits
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
722 DWORD dwOperations; // DDPF_D3DFORMAT Operations
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
723 } DUMMYUNIONNAMEN(2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
724 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
725 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
726 DWORD dwGBitMask; // mask for green bits
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
727 DWORD dwUBitMask; // mask for U bits
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
728 DWORD dwZBitMask; // mask for Z bits
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
729 DWORD dwBumpDvBitMask; // mask for bump map V delta bits
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
730 struct
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
731 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
732 WORD wFlipMSTypes; // Multisample methods supported via flip for this D3DFORMAT
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
733 WORD wBltMSTypes; // Multisample methods supported via blt for this D3DFORMAT
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
734 } MultiSampleCaps;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
735
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
736 } DUMMYUNIONNAMEN(3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
737 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
738 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
739 DWORD dwBBitMask; // mask for blue bits
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
740 DWORD dwVBitMask; // mask for V bits
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
741 DWORD dwStencilBitMask; // mask for stencil bits
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
742 DWORD dwBumpLuminanceBitMask; // mask for luminance in bump map
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
743 } DUMMYUNIONNAMEN(4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
744 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
745 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
746 DWORD dwRGBAlphaBitMask; // mask for alpha channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
747 DWORD dwYUVAlphaBitMask; // mask for alpha channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
748 DWORD dwLuminanceAlphaBitMask;// mask for alpha channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
749 DWORD dwRGBZBitMask; // mask for Z channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
750 DWORD dwYUVZBitMask; // mask for Z channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
751 } DUMMYUNIONNAMEN(5);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
752 } DDPIXELFORMAT;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
753
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
754 typedef DDPIXELFORMAT FAR* LPDDPIXELFORMAT;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
755
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
756 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
757 * DDOVERLAYFX
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
758 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
759 typedef struct _DDOVERLAYFX
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
760 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
761 DWORD dwSize; // size of structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
762 DWORD dwAlphaEdgeBlendBitDepth; // Bit depth used to specify constant for alpha edge blend
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
763 DWORD dwAlphaEdgeBlend; // Constant to use as alpha for edge blend
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
764 DWORD dwReserved;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
765 DWORD dwAlphaDestConstBitDepth; // Bit depth used to specify alpha constant for destination
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
766 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
767 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
768 DWORD dwAlphaDestConst; // Constant to use as alpha channel for dest
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
769 LPDIRECTDRAWSURFACE lpDDSAlphaDest; // Surface to use as alpha channel for dest
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
770 } DUMMYUNIONNAMEN(1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
771 DWORD dwAlphaSrcConstBitDepth; // Bit depth used to specify alpha constant for source
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
772 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
773 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
774 DWORD dwAlphaSrcConst; // Constant to use as alpha channel for src
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
775 LPDIRECTDRAWSURFACE lpDDSAlphaSrc; // Surface to use as alpha channel for src
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
776 } DUMMYUNIONNAMEN(2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
777 DDCOLORKEY dckDestColorkey; // DestColorkey override
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
778 DDCOLORKEY dckSrcColorkey; // DestColorkey override
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
779 DWORD dwDDFX; // Overlay FX
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
780 DWORD dwFlags; // flags
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
781 } DDOVERLAYFX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
782
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
783 typedef DDOVERLAYFX FAR *LPDDOVERLAYFX;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
784
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
785
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
786 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
787 * DDBLTBATCH: BltBatch entry structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
788 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
789 typedef struct _DDBLTBATCH
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
790 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
791 LPRECT lprDest;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
792 LPDIRECTDRAWSURFACE lpDDSSrc;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
793 LPRECT lprSrc;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
794 DWORD dwFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
795 LPDDBLTFX lpDDBltFx;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
796 } DDBLTBATCH;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
797
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
798 typedef DDBLTBATCH FAR * LPDDBLTBATCH;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
799
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
800
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
801 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
802 * DDGAMMARAMP
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
803 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
804 typedef struct _DDGAMMARAMP
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
805 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
806 WORD red[256];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
807 WORD green[256];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
808 WORD blue[256];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
809 } DDGAMMARAMP;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
810 typedef DDGAMMARAMP FAR * LPDDGAMMARAMP;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
811
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
812 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
813 * This is the structure within which DirectDraw returns data about the current graphics driver and chipset
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
814 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
815
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
816 #define MAX_DDDEVICEID_STRING 512
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
817
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
818 typedef struct tagDDDEVICEIDENTIFIER
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
819 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
820 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
821 * These elements are for presentation to the user only. They should not be used to identify particular
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
822 * drivers, since this is unreliable and many different strings may be associated with the same
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
823 * device, and the same driver from different vendors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
824 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
825 char szDriver[MAX_DDDEVICEID_STRING];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
826 char szDescription[MAX_DDDEVICEID_STRING];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
827
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
828 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
829 * This element is the version of the DirectDraw/3D driver. It is legal to do <, > comparisons
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
830 * on the whole 64 bits. Caution should be exercised if you use this element to identify problematic
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
831 * drivers. It is recommended that guidDeviceIdentifier is used for this purpose.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
832 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
833 * This version has the form:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
834 * wProduct = HIWORD(liDriverVersion.HighPart)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
835 * wVersion = LOWORD(liDriverVersion.HighPart)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
836 * wSubVersion = HIWORD(liDriverVersion.LowPart)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
837 * wBuild = LOWORD(liDriverVersion.LowPart)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
838 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
839 #ifdef _WIN32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
840 LARGE_INTEGER liDriverVersion; /* Defined for applications and other 32 bit components */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
841 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
842 DWORD dwDriverVersionLowPart; /* Defined for 16 bit driver components */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
843 DWORD dwDriverVersionHighPart;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
844 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
845
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
846
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
847 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
848 * These elements can be used to identify particular chipsets. Use with extreme caution.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
849 * dwVendorId Identifies the manufacturer. May be zero if unknown.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
850 * dwDeviceId Identifies the type of chipset. May be zero if unknown.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
851 * dwSubSysId Identifies the subsystem, typically this means the particular board. May be zero if unknown.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
852 * dwRevision Identifies the revision level of the chipset. May be zero if unknown.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
853 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
854 DWORD dwVendorId;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
855 DWORD dwDeviceId;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
856 DWORD dwSubSysId;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
857 DWORD dwRevision;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
858
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
859 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
860 * This element can be used to check changes in driver/chipset. This GUID is a unique identifier for the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
861 * driver/chipset pair. Use this element if you wish to track changes to the driver/chipset in order to
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
862 * reprofile the graphics subsystem.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
863 * This element can also be used to identify particular problematic drivers.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
864 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
865 GUID guidDeviceIdentifier;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
866 } DDDEVICEIDENTIFIER, * LPDDDEVICEIDENTIFIER;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
867
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
868 typedef struct tagDDDEVICEIDENTIFIER2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
869 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
870 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
871 * These elements are for presentation to the user only. They should not be used to identify particular
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
872 * drivers, since this is unreliable and many different strings may be associated with the same
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
873 * device, and the same driver from different vendors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
874 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
875 char szDriver[MAX_DDDEVICEID_STRING];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
876 char szDescription[MAX_DDDEVICEID_STRING];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
877
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
878 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
879 * This element is the version of the DirectDraw/3D driver. It is legal to do <, > comparisons
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
880 * on the whole 64 bits. Caution should be exercised if you use this element to identify problematic
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
881 * drivers. It is recommended that guidDeviceIdentifier is used for this purpose.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
882 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
883 * This version has the form:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
884 * wProduct = HIWORD(liDriverVersion.HighPart)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
885 * wVersion = LOWORD(liDriverVersion.HighPart)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
886 * wSubVersion = HIWORD(liDriverVersion.LowPart)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
887 * wBuild = LOWORD(liDriverVersion.LowPart)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
888 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
889 #ifdef _WIN32
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
890 LARGE_INTEGER liDriverVersion; /* Defined for applications and other 32 bit components */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
891 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
892 DWORD dwDriverVersionLowPart; /* Defined for 16 bit driver components */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
893 DWORD dwDriverVersionHighPart;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
894 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
895
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
896
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
897 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
898 * These elements can be used to identify particular chipsets. Use with extreme caution.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
899 * dwVendorId Identifies the manufacturer. May be zero if unknown.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
900 * dwDeviceId Identifies the type of chipset. May be zero if unknown.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
901 * dwSubSysId Identifies the subsystem, typically this means the particular board. May be zero if unknown.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
902 * dwRevision Identifies the revision level of the chipset. May be zero if unknown.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
903 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
904 DWORD dwVendorId;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
905 DWORD dwDeviceId;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
906 DWORD dwSubSysId;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
907 DWORD dwRevision;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
908
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
909 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
910 * This element can be used to check changes in driver/chipset. This GUID is a unique identifier for the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
911 * driver/chipset pair. Use this element if you wish to track changes to the driver/chipset in order to
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
912 * reprofile the graphics subsystem.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
913 * This element can also be used to identify particular problematic drivers.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
914 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
915 GUID guidDeviceIdentifier;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
916
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
917 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
918 * This element is used to determine the Windows Hardware Quality Lab (WHQL)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
919 * certification level for this driver/device pair.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
920 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
921 DWORD dwWHQLLevel;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
922
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
923 } DDDEVICEIDENTIFIER2, * LPDDDEVICEIDENTIFIER2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
924
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
925 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
926 * Flags for the IDirectDraw4::GetDeviceIdentifier method
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
927 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
928
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
929 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
930 * This flag causes GetDeviceIdentifier to return information about the host (typically 2D) adapter in a system equipped
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
931 * with a stacked secondary 3D adapter. Such an adapter appears to the application as if it were part of the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
932 * host adapter, but is typically physcially located on a separate card. The stacked secondary's information is
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
933 * returned when GetDeviceIdentifier's dwFlags field is zero, since this most accurately reflects the qualities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
934 * of the DirectDraw object involved.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
935 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
936 #define DDGDI_GETHOSTIDENTIFIER 0x00000001L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
937
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
938 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
939 * Macros for interpretting DDEVICEIDENTIFIER2.dwWHQLLevel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
940 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
941 #define GET_WHQL_YEAR( dwWHQLLevel ) \
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
942 ( (dwWHQLLevel) / 0x10000 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
943 #define GET_WHQL_MONTH( dwWHQLLevel ) \
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
944 ( ( (dwWHQLLevel) / 0x100 ) & 0x00ff )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
945 #define GET_WHQL_DAY( dwWHQLLevel ) \
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
946 ( (dwWHQLLevel) & 0xff )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
947
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
948
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
949 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
950 * callbacks
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
951 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
952 typedef DWORD (FAR PASCAL *LPCLIPPERCALLBACK)(LPDIRECTDRAWCLIPPER lpDDClipper, HWND hWnd, DWORD code, LPVOID lpContext );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
953 #ifdef STREAMING
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
954 typedef DWORD (FAR PASCAL *LPSURFACESTREAMINGCALLBACK)(DWORD);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
955 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
956
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
957
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
958 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
959 * INTERACES FOLLOW:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
960 * IDirectDraw
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
961 * IDirectDrawClipper
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
962 * IDirectDrawPalette
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
963 * IDirectDrawSurface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
964 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
965
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
966 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
967 * IDirectDraw
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
968 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
969 #if defined( _WIN32 ) && !defined( _NO_COM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
970 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
971 #define INTERFACE IDirectDraw
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
972 DECLARE_INTERFACE_( IDirectDraw, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
973 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
974 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
975 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
976 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
977 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
978 /*** IDirectDraw methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
979 STDMETHOD(Compact)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
980 STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
981 STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
982 STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC, LPDIRECTDRAWSURFACE FAR *, IUnknown FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
983 STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE, LPDIRECTDRAWSURFACE FAR * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
984 STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC, LPVOID, LPDDENUMMODESCALLBACK ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
985 STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC, LPVOID,LPDDENUMSURFACESCALLBACK ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
986 STDMETHOD(FlipToGDISurface)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
987 STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
988 STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
989 STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
990 STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
991 STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
992 STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
993 STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
994 STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
995 STDMETHOD(RestoreDisplayMode)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
996 STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
997 STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
998 STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
999 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1000
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1001 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1002 #define IDirectDraw_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1003 #define IDirectDraw_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1004 #define IDirectDraw_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1005 #define IDirectDraw_Compact(p) (p)->lpVtbl->Compact(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1006 #define IDirectDraw_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1007 #define IDirectDraw_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1008 #define IDirectDraw_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1009 #define IDirectDraw_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1010 #define IDirectDraw_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1011 #define IDirectDraw_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1012 #define IDirectDraw_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1013 #define IDirectDraw_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1014 #define IDirectDraw_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1015 #define IDirectDraw_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1016 #define IDirectDraw_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1017 #define IDirectDraw_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1018 #define IDirectDraw_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1019 #define IDirectDraw_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1020 #define IDirectDraw_Initialize(p, a) (p)->lpVtbl->Initialize(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1021 #define IDirectDraw_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1022 #define IDirectDraw_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1023 #define IDirectDraw_SetDisplayMode(p, a, b, c) (p)->lpVtbl->SetDisplayMode(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1024 #define IDirectDraw_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1025 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1026 #define IDirectDraw_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1027 #define IDirectDraw_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1028 #define IDirectDraw_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1029 #define IDirectDraw_Compact(p) (p)->Compact()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1030 #define IDirectDraw_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1031 #define IDirectDraw_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1032 #define IDirectDraw_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1033 #define IDirectDraw_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1034 #define IDirectDraw_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1035 #define IDirectDraw_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1036 #define IDirectDraw_FlipToGDISurface(p) (p)->FlipToGDISurface()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1037 #define IDirectDraw_GetCaps(p, a, b) (p)->GetCaps(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1038 #define IDirectDraw_GetDisplayMode(p, a) (p)->GetDisplayMode(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1039 #define IDirectDraw_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1040 #define IDirectDraw_GetGDISurface(p, a) (p)->GetGDISurface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1041 #define IDirectDraw_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1042 #define IDirectDraw_GetScanLine(p, a) (p)->GetScanLine(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1043 #define IDirectDraw_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1044 #define IDirectDraw_Initialize(p, a) (p)->Initialize(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1045 #define IDirectDraw_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1046 #define IDirectDraw_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1047 #define IDirectDraw_SetDisplayMode(p, a, b, c) (p)->SetDisplayMode(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1048 #define IDirectDraw_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1049 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1050
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1051 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1052
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1053 #if defined( _WIN32 ) && !defined( _NO_COM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1054 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1055 #define INTERFACE IDirectDraw2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1056 DECLARE_INTERFACE_( IDirectDraw2, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1057 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1058 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1059 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1060 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1061 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1062 /*** IDirectDraw methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1063 STDMETHOD(Compact)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1064 STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1065 STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1066 STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC, LPDIRECTDRAWSURFACE FAR *, IUnknown FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1067 STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE, LPDIRECTDRAWSURFACE FAR * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1068 STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC, LPVOID, LPDDENUMMODESCALLBACK ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1069 STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC, LPVOID,LPDDENUMSURFACESCALLBACK ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1070 STDMETHOD(FlipToGDISurface)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1071 STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1072 STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1073 STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1074 STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1075 STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1076 STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1077 STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1078 STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1079 STDMETHOD(RestoreDisplayMode)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1080 STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1081 STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD, DWORD, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1082 STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1083 /*** Added in the v2 interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1084 STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS, LPDWORD, LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1085 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1086 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1087 #define IDirectDraw2_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1088 #define IDirectDraw2_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1089 #define IDirectDraw2_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1090 #define IDirectDraw2_Compact(p) (p)->lpVtbl->Compact(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1091 #define IDirectDraw2_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1092 #define IDirectDraw2_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1093 #define IDirectDraw2_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1094 #define IDirectDraw2_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1095 #define IDirectDraw2_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1096 #define IDirectDraw2_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1097 #define IDirectDraw2_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1098 #define IDirectDraw2_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1099 #define IDirectDraw2_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1100 #define IDirectDraw2_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1101 #define IDirectDraw2_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1102 #define IDirectDraw2_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1103 #define IDirectDraw2_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1104 #define IDirectDraw2_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1105 #define IDirectDraw2_Initialize(p, a) (p)->lpVtbl->Initialize(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1106 #define IDirectDraw2_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1107 #define IDirectDraw2_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1108 #define IDirectDraw2_SetDisplayMode(p, a, b, c, d, e) (p)->lpVtbl->SetDisplayMode(p, a, b, c, d, e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1109 #define IDirectDraw2_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1110 #define IDirectDraw2_GetAvailableVidMem(p, a, b, c) (p)->lpVtbl->GetAvailableVidMem(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1111 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1112 #define IDirectDraw2_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1113 #define IDirectDraw2_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1114 #define IDirectDraw2_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1115 #define IDirectDraw2_Compact(p) (p)->Compact()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1116 #define IDirectDraw2_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1117 #define IDirectDraw2_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1118 #define IDirectDraw2_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1119 #define IDirectDraw2_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1120 #define IDirectDraw2_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1121 #define IDirectDraw2_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1122 #define IDirectDraw2_FlipToGDISurface(p) (p)->FlipToGDISurface()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1123 #define IDirectDraw2_GetCaps(p, a, b) (p)->GetCaps(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1124 #define IDirectDraw2_GetDisplayMode(p, a) (p)->GetDisplayMode(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1125 #define IDirectDraw2_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1126 #define IDirectDraw2_GetGDISurface(p, a) (p)->GetGDISurface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1127 #define IDirectDraw2_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1128 #define IDirectDraw2_GetScanLine(p, a) (p)->GetScanLine(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1129 #define IDirectDraw2_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1130 #define IDirectDraw2_Initialize(p, a) (p)->Initialize(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1131 #define IDirectDraw2_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1132 #define IDirectDraw2_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1133 #define IDirectDraw2_SetDisplayMode(p, a, b, c, d, e) (p)->SetDisplayMode(a, b, c, d, e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1134 #define IDirectDraw2_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1135 #define IDirectDraw2_GetAvailableVidMem(p, a, b, c) (p)->GetAvailableVidMem(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1136 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1137
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1138 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1139
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1140 #if defined( _WIN32 ) && !defined( _NO_COM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1141 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1142 #define INTERFACE IDirectDraw4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1143 DECLARE_INTERFACE_( IDirectDraw4, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1144 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1145 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1146 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1147 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1148 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1149 /*** IDirectDraw methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1150 STDMETHOD(Compact)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1151 STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1152 STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1153 STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC2, LPDIRECTDRAWSURFACE4 FAR *, IUnknown FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1154 STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE4, LPDIRECTDRAWSURFACE4 FAR * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1155 STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC2, LPVOID, LPDDENUMMODESCALLBACK2 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1156 STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC2, LPVOID,LPDDENUMSURFACESCALLBACK2 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1157 STDMETHOD(FlipToGDISurface)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1158 STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1159 STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1160 STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1161 STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE4 FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1162 STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1163 STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1164 STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1165 STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1166 STDMETHOD(RestoreDisplayMode)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1167 STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1168 STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD, DWORD, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1169 STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1170 /*** Added in the v2 interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1171 STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS2, LPDWORD, LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1172 /*** Added in the V4 Interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1173 STDMETHOD(GetSurfaceFromDC) (THIS_ HDC, LPDIRECTDRAWSURFACE4 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1174 STDMETHOD(RestoreAllSurfaces)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1175 STDMETHOD(TestCooperativeLevel)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1176 STDMETHOD(GetDeviceIdentifier)(THIS_ LPDDDEVICEIDENTIFIER, DWORD ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1177 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1178 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1179 #define IDirectDraw4_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1180 #define IDirectDraw4_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1181 #define IDirectDraw4_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1182 #define IDirectDraw4_Compact(p) (p)->lpVtbl->Compact(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1183 #define IDirectDraw4_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1184 #define IDirectDraw4_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1185 #define IDirectDraw4_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1186 #define IDirectDraw4_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1187 #define IDirectDraw4_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1188 #define IDirectDraw4_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1189 #define IDirectDraw4_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1190 #define IDirectDraw4_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1191 #define IDirectDraw4_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1192 #define IDirectDraw4_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1193 #define IDirectDraw4_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1194 #define IDirectDraw4_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1195 #define IDirectDraw4_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1196 #define IDirectDraw4_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1197 #define IDirectDraw4_Initialize(p, a) (p)->lpVtbl->Initialize(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1198 #define IDirectDraw4_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1199 #define IDirectDraw4_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1200 #define IDirectDraw4_SetDisplayMode(p, a, b, c, d, e) (p)->lpVtbl->SetDisplayMode(p, a, b, c, d, e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1201 #define IDirectDraw4_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1202 #define IDirectDraw4_GetAvailableVidMem(p, a, b, c) (p)->lpVtbl->GetAvailableVidMem(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1203 #define IDirectDraw4_GetSurfaceFromDC(p, a, b) (p)->lpVtbl->GetSurfaceFromDC(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1204 #define IDirectDraw4_RestoreAllSurfaces(p) (p)->lpVtbl->RestoreAllSurfaces(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1205 #define IDirectDraw4_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1206 #define IDirectDraw4_GetDeviceIdentifier(p,a,b) (p)->lpVtbl->GetDeviceIdentifier(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1207 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1208 #define IDirectDraw4_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1209 #define IDirectDraw4_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1210 #define IDirectDraw4_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1211 #define IDirectDraw4_Compact(p) (p)->Compact()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1212 #define IDirectDraw4_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1213 #define IDirectDraw4_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1214 #define IDirectDraw4_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1215 #define IDirectDraw4_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1216 #define IDirectDraw4_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1217 #define IDirectDraw4_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1218 #define IDirectDraw4_FlipToGDISurface(p) (p)->FlipToGDISurface()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1219 #define IDirectDraw4_GetCaps(p, a, b) (p)->GetCaps(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1220 #define IDirectDraw4_GetDisplayMode(p, a) (p)->GetDisplayMode(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1221 #define IDirectDraw4_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1222 #define IDirectDraw4_GetGDISurface(p, a) (p)->GetGDISurface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1223 #define IDirectDraw4_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1224 #define IDirectDraw4_GetScanLine(p, a) (p)->GetScanLine(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1225 #define IDirectDraw4_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1226 #define IDirectDraw4_Initialize(p, a) (p)->Initialize(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1227 #define IDirectDraw4_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1228 #define IDirectDraw4_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1229 #define IDirectDraw4_SetDisplayMode(p, a, b, c, d, e) (p)->SetDisplayMode(a, b, c, d, e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1230 #define IDirectDraw4_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1231 #define IDirectDraw4_GetAvailableVidMem(p, a, b, c) (p)->GetAvailableVidMem(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1232 #define IDirectDraw4_GetSurfaceFromDC(p, a, b) (p)->GetSurfaceFromDC(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1233 #define IDirectDraw4_RestoreAllSurfaces(p) (p)->RestoreAllSurfaces()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1234 #define IDirectDraw4_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1235 #define IDirectDraw4_GetDeviceIdentifier(p,a,b) (p)->GetDeviceIdentifier(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1236 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1237
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1238 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1239
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1240 #if defined( _WIN32 ) && !defined( _NO_COM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1241 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1242 #define INTERFACE IDirectDraw7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1243 DECLARE_INTERFACE_( IDirectDraw7, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1244 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1245 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1246 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1247 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1248 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1249 /*** IDirectDraw methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1250 STDMETHOD(Compact)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1251 STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1252 STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1253 STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC2, LPDIRECTDRAWSURFACE7 FAR *, IUnknown FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1254 STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE7, LPDIRECTDRAWSURFACE7 FAR * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1255 STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC2, LPVOID, LPDDENUMMODESCALLBACK2 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1256 STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC2, LPVOID,LPDDENUMSURFACESCALLBACK7 ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1257 STDMETHOD(FlipToGDISurface)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1258 STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1259 STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1260 STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1261 STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE7 FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1262 STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1263 STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1264 STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1265 STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1266 STDMETHOD(RestoreDisplayMode)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1267 STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1268 STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD, DWORD, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1269 STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1270 /*** Added in the v2 interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1271 STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS2, LPDWORD, LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1272 /*** Added in the V4 Interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1273 STDMETHOD(GetSurfaceFromDC) (THIS_ HDC, LPDIRECTDRAWSURFACE7 *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1274 STDMETHOD(RestoreAllSurfaces)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1275 STDMETHOD(TestCooperativeLevel)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1276 STDMETHOD(GetDeviceIdentifier)(THIS_ LPDDDEVICEIDENTIFIER2, DWORD ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1277 STDMETHOD(StartModeTest)(THIS_ LPSIZE, DWORD, DWORD ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1278 STDMETHOD(EvaluateMode)(THIS_ DWORD, DWORD * ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1279 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1280 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1281 #define IDirectDraw7_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1282 #define IDirectDraw7_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1283 #define IDirectDraw7_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1284 #define IDirectDraw7_Compact(p) (p)->lpVtbl->Compact(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1285 #define IDirectDraw7_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1286 #define IDirectDraw7_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1287 #define IDirectDraw7_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1288 #define IDirectDraw7_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1289 #define IDirectDraw7_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1290 #define IDirectDraw7_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1291 #define IDirectDraw7_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1292 #define IDirectDraw7_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1293 #define IDirectDraw7_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1294 #define IDirectDraw7_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1295 #define IDirectDraw7_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1296 #define IDirectDraw7_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1297 #define IDirectDraw7_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1298 #define IDirectDraw7_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1299 #define IDirectDraw7_Initialize(p, a) (p)->lpVtbl->Initialize(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1300 #define IDirectDraw7_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1301 #define IDirectDraw7_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1302 #define IDirectDraw7_SetDisplayMode(p, a, b, c, d, e) (p)->lpVtbl->SetDisplayMode(p, a, b, c, d, e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1303 #define IDirectDraw7_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1304 #define IDirectDraw7_GetAvailableVidMem(p, a, b, c) (p)->lpVtbl->GetAvailableVidMem(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1305 #define IDirectDraw7_GetSurfaceFromDC(p, a, b) (p)->lpVtbl->GetSurfaceFromDC(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1306 #define IDirectDraw7_RestoreAllSurfaces(p) (p)->lpVtbl->RestoreAllSurfaces(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1307 #define IDirectDraw7_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1308 #define IDirectDraw7_GetDeviceIdentifier(p,a,b) (p)->lpVtbl->GetDeviceIdentifier(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1309 #define IDirectDraw7_StartModeTest(p,a,b,c) (p)->lpVtbl->StartModeTest(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1310 #define IDirectDraw7_EvaluateMode(p,a,b) (p)->lpVtbl->EvaluateMode(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1311 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1312 #define IDirectDraw7_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1313 #define IDirectDraw7_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1314 #define IDirectDraw7_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1315 #define IDirectDraw7_Compact(p) (p)->Compact()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1316 #define IDirectDraw7_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1317 #define IDirectDraw7_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1318 #define IDirectDraw7_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1319 #define IDirectDraw7_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1320 #define IDirectDraw7_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1321 #define IDirectDraw7_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1322 #define IDirectDraw7_FlipToGDISurface(p) (p)->FlipToGDISurface()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1323 #define IDirectDraw7_GetCaps(p, a, b) (p)->GetCaps(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1324 #define IDirectDraw7_GetDisplayMode(p, a) (p)->GetDisplayMode(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1325 #define IDirectDraw7_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1326 #define IDirectDraw7_GetGDISurface(p, a) (p)->GetGDISurface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1327 #define IDirectDraw7_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1328 #define IDirectDraw7_GetScanLine(p, a) (p)->GetScanLine(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1329 #define IDirectDraw7_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1330 #define IDirectDraw7_Initialize(p, a) (p)->Initialize(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1331 #define IDirectDraw7_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1332 #define IDirectDraw7_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1333 #define IDirectDraw7_SetDisplayMode(p, a, b, c, d, e) (p)->SetDisplayMode(a, b, c, d, e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1334 #define IDirectDraw7_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1335 #define IDirectDraw7_GetAvailableVidMem(p, a, b, c) (p)->GetAvailableVidMem(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1336 #define IDirectDraw7_GetSurfaceFromDC(p, a, b) (p)->GetSurfaceFromDC(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1337 #define IDirectDraw7_RestoreAllSurfaces(p) (p)->RestoreAllSurfaces()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1338 #define IDirectDraw7_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1339 #define IDirectDraw7_GetDeviceIdentifier(p,a,b) (p)->GetDeviceIdentifier(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1340 #define IDirectDraw7_StartModeTest(p,a,b,c) (p)->lpVtbl->StartModeTest(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1341 #define IDirectDraw7_EvaluateMode(p,a,b) (p)->lpVtbl->EvaluateMode(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1342 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1343
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1344 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1345
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1346
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1347 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1348 * IDirectDrawPalette
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1349 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1350 #if defined( _WIN32 ) && !defined( _NO_COM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1351 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1352 #define INTERFACE IDirectDrawPalette
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1353 DECLARE_INTERFACE_( IDirectDrawPalette, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1354 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1355 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1356 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1357 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1358 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1359 /*** IDirectDrawPalette methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1360 STDMETHOD(GetCaps)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1361 STDMETHOD(GetEntries)(THIS_ DWORD,DWORD,DWORD,LPPALETTEENTRY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1362 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, DWORD, LPPALETTEENTRY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1363 STDMETHOD(SetEntries)(THIS_ DWORD,DWORD,DWORD,LPPALETTEENTRY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1364 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1365
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1366 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1367 #define IDirectDrawPalette_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1368 #define IDirectDrawPalette_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1369 #define IDirectDrawPalette_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1370 #define IDirectDrawPalette_GetCaps(p, a) (p)->lpVtbl->GetCaps(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1371 #define IDirectDrawPalette_GetEntries(p, a, b, c, d) (p)->lpVtbl->GetEntries(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1372 #define IDirectDrawPalette_Initialize(p, a, b, c) (p)->lpVtbl->Initialize(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1373 #define IDirectDrawPalette_SetEntries(p, a, b, c, d) (p)->lpVtbl->SetEntries(p, a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1374 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1375 #define IDirectDrawPalette_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1376 #define IDirectDrawPalette_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1377 #define IDirectDrawPalette_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1378 #define IDirectDrawPalette_GetCaps(p, a) (p)->GetCaps(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1379 #define IDirectDrawPalette_GetEntries(p, a, b, c, d) (p)->GetEntries(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1380 #define IDirectDrawPalette_Initialize(p, a, b, c) (p)->Initialize(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1381 #define IDirectDrawPalette_SetEntries(p, a, b, c, d) (p)->SetEntries(a, b, c, d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1382 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1383
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1384 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1385
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1386
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1387 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1388 * IDirectDrawClipper
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1389 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1390 #if defined( _WIN32 ) && !defined( _NO_COM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1391 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1392 #define INTERFACE IDirectDrawClipper
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1393 DECLARE_INTERFACE_( IDirectDrawClipper, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1394 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1395 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1396 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1397 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1398 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1399 /*** IDirectDrawClipper methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1400 STDMETHOD(GetClipList)(THIS_ LPRECT, LPRGNDATA, LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1401 STDMETHOD(GetHWnd)(THIS_ HWND FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1402 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1403 STDMETHOD(IsClipListChanged)(THIS_ BOOL FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1404 STDMETHOD(SetClipList)(THIS_ LPRGNDATA,DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1405 STDMETHOD(SetHWnd)(THIS_ DWORD, HWND ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1406 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1407
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1408 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1409 #define IDirectDrawClipper_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1410 #define IDirectDrawClipper_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1411 #define IDirectDrawClipper_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1412 #define IDirectDrawClipper_GetClipList(p, a, b, c) (p)->lpVtbl->GetClipList(p, a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1413 #define IDirectDrawClipper_GetHWnd(p, a) (p)->lpVtbl->GetHWnd(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1414 #define IDirectDrawClipper_Initialize(p, a, b) (p)->lpVtbl->Initialize(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1415 #define IDirectDrawClipper_IsClipListChanged(p, a) (p)->lpVtbl->IsClipListChanged(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1416 #define IDirectDrawClipper_SetClipList(p, a, b) (p)->lpVtbl->SetClipList(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1417 #define IDirectDrawClipper_SetHWnd(p, a, b) (p)->lpVtbl->SetHWnd(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1418 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1419 #define IDirectDrawClipper_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1420 #define IDirectDrawClipper_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1421 #define IDirectDrawClipper_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1422 #define IDirectDrawClipper_GetClipList(p, a, b, c) (p)->GetClipList(a, b, c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1423 #define IDirectDrawClipper_GetHWnd(p, a) (p)->GetHWnd(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1424 #define IDirectDrawClipper_Initialize(p, a, b) (p)->Initialize(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1425 #define IDirectDrawClipper_IsClipListChanged(p, a) (p)->IsClipListChanged(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1426 #define IDirectDrawClipper_SetClipList(p, a, b) (p)->SetClipList(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1427 #define IDirectDrawClipper_SetHWnd(p, a, b) (p)->SetHWnd(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1428 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1429
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1430 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1431
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1432 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1433 * IDirectDrawSurface and related interfaces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1434 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1435 #if defined( _WIN32 ) && !defined( _NO_COM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1436 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1437 #define INTERFACE IDirectDrawSurface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1438 DECLARE_INTERFACE_( IDirectDrawSurface, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1439 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1440 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1441 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1442 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1443 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1444 /*** IDirectDrawSurface methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1445 STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1446 STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1447 STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE, LPRECT,DWORD, LPDDBLTFX) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1448 STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1449 STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE, LPRECT,DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1450 STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1451 STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1452 STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1453 STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1454 STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1455 STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1456 STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1457 STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1458 STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1459 STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1460 STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1461 STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1462 STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1463 STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1464 STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1465 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1466 STDMETHOD(IsLost)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1467 STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC,DWORD,HANDLE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1468 STDMETHOD(ReleaseDC)(THIS_ HDC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1469 STDMETHOD(Restore)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1470 STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1471 STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1472 STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1473 STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1474 STDMETHOD(Unlock)(THIS_ LPVOID) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1475 STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE,LPRECT,DWORD, LPDDOVERLAYFX) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1476 STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1477 STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1478 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1479
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1480 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1481 #define IDirectDrawSurface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1482 #define IDirectDrawSurface_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1483 #define IDirectDrawSurface_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1484 #define IDirectDrawSurface_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1485 #define IDirectDrawSurface_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1486 #define IDirectDrawSurface_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1487 #define IDirectDrawSurface_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1488 #define IDirectDrawSurface_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1489 #define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1490 #define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1491 #define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1492 #define IDirectDrawSurface_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1493 #define IDirectDrawSurface_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1494 #define IDirectDrawSurface_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1495 #define IDirectDrawSurface_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1496 #define IDirectDrawSurface_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1497 #define IDirectDrawSurface_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1498 #define IDirectDrawSurface_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1499 #define IDirectDrawSurface_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1500 #define IDirectDrawSurface_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1501 #define IDirectDrawSurface_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1502 #define IDirectDrawSurface_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1503 #define IDirectDrawSurface_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1504 #define IDirectDrawSurface_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1505 #define IDirectDrawSurface_IsLost(p) (p)->lpVtbl->IsLost(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1506 #define IDirectDrawSurface_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1507 #define IDirectDrawSurface_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1508 #define IDirectDrawSurface_Restore(p) (p)->lpVtbl->Restore(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1509 #define IDirectDrawSurface_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1510 #define IDirectDrawSurface_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1511 #define IDirectDrawSurface_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1512 #define IDirectDrawSurface_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1513 #define IDirectDrawSurface_Unlock(p,b) (p)->lpVtbl->Unlock(p,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1514 #define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1515 #define IDirectDrawSurface_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1516 #define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1517 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1518 #define IDirectDrawSurface_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1519 #define IDirectDrawSurface_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1520 #define IDirectDrawSurface_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1521 #define IDirectDrawSurface_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1522 #define IDirectDrawSurface_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1523 #define IDirectDrawSurface_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1524 #define IDirectDrawSurface_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1525 #define IDirectDrawSurface_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1526 #define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1527 #define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1528 #define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1529 #define IDirectDrawSurface_Flip(p,a,b) (p)->Flip(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1530 #define IDirectDrawSurface_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1531 #define IDirectDrawSurface_GetBltStatus(p,a) (p)->GetBltStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1532 #define IDirectDrawSurface_GetCaps(p,b) (p)->GetCaps(b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1533 #define IDirectDrawSurface_GetClipper(p,a) (p)->GetClipper(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1534 #define IDirectDrawSurface_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1535 #define IDirectDrawSurface_GetDC(p,a) (p)->GetDC(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1536 #define IDirectDrawSurface_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1537 #define IDirectDrawSurface_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1538 #define IDirectDrawSurface_GetPalette(p,a) (p)->GetPalette(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1539 #define IDirectDrawSurface_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1540 #define IDirectDrawSurface_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1541 #define IDirectDrawSurface_Initialize(p,a,b) (p)->Initialize(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1542 #define IDirectDrawSurface_IsLost(p) (p)->IsLost()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1543 #define IDirectDrawSurface_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1544 #define IDirectDrawSurface_ReleaseDC(p,a) (p)->ReleaseDC(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1545 #define IDirectDrawSurface_Restore(p) (p)->Restore()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1546 #define IDirectDrawSurface_SetClipper(p,a) (p)->SetClipper(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1547 #define IDirectDrawSurface_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1548 #define IDirectDrawSurface_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1549 #define IDirectDrawSurface_SetPalette(p,a) (p)->SetPalette(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1550 #define IDirectDrawSurface_Unlock(p,b) (p)->Unlock(b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1551 #define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1552 #define IDirectDrawSurface_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1553 #define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1554 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1555
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1556 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1557 * IDirectDrawSurface2 and related interfaces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1558 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1559 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1560 #define INTERFACE IDirectDrawSurface2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1561 DECLARE_INTERFACE_( IDirectDrawSurface2, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1562 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1563 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1564 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1565 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1566 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1567 /*** IDirectDrawSurface methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1568 STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1569 STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1570 STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE2, LPRECT,DWORD, LPDDBLTFX) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1571 STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1572 STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE2, LPRECT,DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1573 STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1574 STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1575 STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1576 STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE2, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1577 STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE2 FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1578 STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1579 STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1580 STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1581 STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1582 STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1583 STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1584 STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1585 STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1586 STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1587 STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1588 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1589 STDMETHOD(IsLost)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1590 STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC,DWORD,HANDLE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1591 STDMETHOD(ReleaseDC)(THIS_ HDC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1592 STDMETHOD(Restore)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1593 STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1594 STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1595 STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1596 STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1597 STDMETHOD(Unlock)(THIS_ LPVOID) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1598 STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE2,LPRECT,DWORD, LPDDOVERLAYFX) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1599 STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1600 STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1601 /*** Added in the v2 interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1602 STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1603 STDMETHOD(PageLock)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1604 STDMETHOD(PageUnlock)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1605 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1606
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1607 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1608 #define IDirectDrawSurface2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1609 #define IDirectDrawSurface2_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1610 #define IDirectDrawSurface2_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1611 #define IDirectDrawSurface2_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1612 #define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1613 #define IDirectDrawSurface2_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1614 #define IDirectDrawSurface2_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1615 #define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1616 #define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1617 #define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1618 #define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1619 #define IDirectDrawSurface2_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1620 #define IDirectDrawSurface2_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1621 #define IDirectDrawSurface2_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1622 #define IDirectDrawSurface2_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1623 #define IDirectDrawSurface2_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1624 #define IDirectDrawSurface2_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1625 #define IDirectDrawSurface2_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1626 #define IDirectDrawSurface2_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1627 #define IDirectDrawSurface2_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1628 #define IDirectDrawSurface2_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1629 #define IDirectDrawSurface2_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1630 #define IDirectDrawSurface2_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1631 #define IDirectDrawSurface2_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1632 #define IDirectDrawSurface2_IsLost(p) (p)->lpVtbl->IsLost(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1633 #define IDirectDrawSurface2_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1634 #define IDirectDrawSurface2_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1635 #define IDirectDrawSurface2_Restore(p) (p)->lpVtbl->Restore(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1636 #define IDirectDrawSurface2_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1637 #define IDirectDrawSurface2_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1638 #define IDirectDrawSurface2_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1639 #define IDirectDrawSurface2_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1640 #define IDirectDrawSurface2_Unlock(p,b) (p)->lpVtbl->Unlock(p,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1641 #define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1642 #define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1643 #define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1644 #define IDirectDrawSurface2_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1645 #define IDirectDrawSurface2_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1646 #define IDirectDrawSurface2_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1647 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1648 #define IDirectDrawSurface2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1649 #define IDirectDrawSurface2_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1650 #define IDirectDrawSurface2_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1651 #define IDirectDrawSurface2_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1652 #define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1653 #define IDirectDrawSurface2_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1654 #define IDirectDrawSurface2_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1655 #define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1656 #define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1657 #define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1658 #define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1659 #define IDirectDrawSurface2_Flip(p,a,b) (p)->Flip(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1660 #define IDirectDrawSurface2_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1661 #define IDirectDrawSurface2_GetBltStatus(p,a) (p)->GetBltStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1662 #define IDirectDrawSurface2_GetCaps(p,b) (p)->GetCaps(b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1663 #define IDirectDrawSurface2_GetClipper(p,a) (p)->GetClipper(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1664 #define IDirectDrawSurface2_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1665 #define IDirectDrawSurface2_GetDC(p,a) (p)->GetDC(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1666 #define IDirectDrawSurface2_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1667 #define IDirectDrawSurface2_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1668 #define IDirectDrawSurface2_GetPalette(p,a) (p)->GetPalette(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1669 #define IDirectDrawSurface2_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1670 #define IDirectDrawSurface2_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1671 #define IDirectDrawSurface2_Initialize(p,a,b) (p)->Initialize(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1672 #define IDirectDrawSurface2_IsLost(p) (p)->IsLost()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1673 #define IDirectDrawSurface2_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1674 #define IDirectDrawSurface2_ReleaseDC(p,a) (p)->ReleaseDC(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1675 #define IDirectDrawSurface2_Restore(p) (p)->Restore()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1676 #define IDirectDrawSurface2_SetClipper(p,a) (p)->SetClipper(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1677 #define IDirectDrawSurface2_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1678 #define IDirectDrawSurface2_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1679 #define IDirectDrawSurface2_SetPalette(p,a) (p)->SetPalette(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1680 #define IDirectDrawSurface2_Unlock(p,b) (p)->Unlock(b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1681 #define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1682 #define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1683 #define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1684 #define IDirectDrawSurface2_GetDDInterface(p,a) (p)->GetDDInterface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1685 #define IDirectDrawSurface2_PageLock(p,a) (p)->PageLock(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1686 #define IDirectDrawSurface2_PageUnlock(p,a) (p)->PageUnlock(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1687 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1688
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1689 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1690 * IDirectDrawSurface3 and related interfaces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1691 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1692 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1693 #define INTERFACE IDirectDrawSurface3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1694 DECLARE_INTERFACE_( IDirectDrawSurface3, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1695 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1696 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1697 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1698 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1699 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1700 /*** IDirectDrawSurface methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1701 STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE3) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1702 STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1703 STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE3, LPRECT,DWORD, LPDDBLTFX) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1704 STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1705 STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE3, LPRECT,DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1706 STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE3) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1707 STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1708 STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1709 STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE3, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1710 STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE3 FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1711 STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1712 STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1713 STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1714 STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1715 STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1716 STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1717 STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1718 STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1719 STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1720 STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1721 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1722 STDMETHOD(IsLost)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1723 STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC,DWORD,HANDLE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1724 STDMETHOD(ReleaseDC)(THIS_ HDC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1725 STDMETHOD(Restore)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1726 STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1727 STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1728 STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1729 STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1730 STDMETHOD(Unlock)(THIS_ LPVOID) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1731 STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE3,LPRECT,DWORD, LPDDOVERLAYFX) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1732 STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1733 STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE3) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1734 /*** Added in the v2 interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1735 STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1736 STDMETHOD(PageLock)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1737 STDMETHOD(PageUnlock)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1738 /*** Added in the V3 interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1739 STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1740 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1741
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1742 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1743 #define IDirectDrawSurface3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1744 #define IDirectDrawSurface3_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1745 #define IDirectDrawSurface3_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1746 #define IDirectDrawSurface3_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1747 #define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1748 #define IDirectDrawSurface3_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1749 #define IDirectDrawSurface3_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1750 #define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1751 #define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1752 #define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1753 #define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1754 #define IDirectDrawSurface3_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1755 #define IDirectDrawSurface3_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1756 #define IDirectDrawSurface3_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1757 #define IDirectDrawSurface3_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1758 #define IDirectDrawSurface3_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1759 #define IDirectDrawSurface3_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1760 #define IDirectDrawSurface3_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1761 #define IDirectDrawSurface3_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1762 #define IDirectDrawSurface3_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1763 #define IDirectDrawSurface3_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1764 #define IDirectDrawSurface3_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1765 #define IDirectDrawSurface3_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1766 #define IDirectDrawSurface3_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1767 #define IDirectDrawSurface3_IsLost(p) (p)->lpVtbl->IsLost(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1768 #define IDirectDrawSurface3_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1769 #define IDirectDrawSurface3_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1770 #define IDirectDrawSurface3_Restore(p) (p)->lpVtbl->Restore(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1771 #define IDirectDrawSurface3_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1772 #define IDirectDrawSurface3_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1773 #define IDirectDrawSurface3_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1774 #define IDirectDrawSurface3_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1775 #define IDirectDrawSurface3_Unlock(p,b) (p)->lpVtbl->Unlock(p,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1776 #define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1777 #define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1778 #define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1779 #define IDirectDrawSurface3_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1780 #define IDirectDrawSurface3_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1781 #define IDirectDrawSurface3_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1782 #define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1783 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1784 #define IDirectDrawSurface3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1785 #define IDirectDrawSurface3_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1786 #define IDirectDrawSurface3_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1787 #define IDirectDrawSurface3_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1788 #define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1789 #define IDirectDrawSurface3_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1790 #define IDirectDrawSurface3_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1791 #define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1792 #define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1793 #define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1794 #define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1795 #define IDirectDrawSurface3_Flip(p,a,b) (p)->Flip(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1796 #define IDirectDrawSurface3_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1797 #define IDirectDrawSurface3_GetBltStatus(p,a) (p)->GetBltStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1798 #define IDirectDrawSurface3_GetCaps(p,b) (p)->GetCaps(b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1799 #define IDirectDrawSurface3_GetClipper(p,a) (p)->GetClipper(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1800 #define IDirectDrawSurface3_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1801 #define IDirectDrawSurface3_GetDC(p,a) (p)->GetDC(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1802 #define IDirectDrawSurface3_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1803 #define IDirectDrawSurface3_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1804 #define IDirectDrawSurface3_GetPalette(p,a) (p)->GetPalette(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1805 #define IDirectDrawSurface3_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1806 #define IDirectDrawSurface3_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1807 #define IDirectDrawSurface3_Initialize(p,a,b) (p)->Initialize(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1808 #define IDirectDrawSurface3_IsLost(p) (p)->IsLost()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1809 #define IDirectDrawSurface3_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1810 #define IDirectDrawSurface3_ReleaseDC(p,a) (p)->ReleaseDC(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1811 #define IDirectDrawSurface3_Restore(p) (p)->Restore()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1812 #define IDirectDrawSurface3_SetClipper(p,a) (p)->SetClipper(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1813 #define IDirectDrawSurface3_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1814 #define IDirectDrawSurface3_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1815 #define IDirectDrawSurface3_SetPalette(p,a) (p)->SetPalette(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1816 #define IDirectDrawSurface3_Unlock(p,b) (p)->Unlock(b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1817 #define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1818 #define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1819 #define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1820 #define IDirectDrawSurface3_GetDDInterface(p,a) (p)->GetDDInterface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1821 #define IDirectDrawSurface3_PageLock(p,a) (p)->PageLock(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1822 #define IDirectDrawSurface3_PageUnlock(p,a) (p)->PageUnlock(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1823 #define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1824 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1825
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1826 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1827 * IDirectDrawSurface4 and related interfaces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1828 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1829 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1830 #define INTERFACE IDirectDrawSurface4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1831 DECLARE_INTERFACE_( IDirectDrawSurface4, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1832 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1833 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1834 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1835 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1836 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1837 /*** IDirectDrawSurface methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1838 STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE4) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1839 STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1840 STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE4, LPRECT,DWORD, LPDDBLTFX) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1841 STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1842 STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE4, LPRECT,DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1843 STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE4) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1844 STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1845 STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1846 STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE4, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1847 STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS2, LPDIRECTDRAWSURFACE4 FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1848 STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1849 STDMETHOD(GetCaps)(THIS_ LPDDSCAPS2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1850 STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1851 STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1852 STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1853 STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1854 STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1855 STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1856 STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1857 STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1858 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1859 STDMETHOD(IsLost)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1860 STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC2,DWORD,HANDLE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1861 STDMETHOD(ReleaseDC)(THIS_ HDC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1862 STDMETHOD(Restore)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1863 STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1864 STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1865 STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1866 STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1867 STDMETHOD(Unlock)(THIS_ LPRECT) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1868 STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE4,LPRECT,DWORD, LPDDOVERLAYFX) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1869 STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1870 STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE4) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1871 /*** Added in the v2 interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1872 STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1873 STDMETHOD(PageLock)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1874 STDMETHOD(PageUnlock)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1875 /*** Added in the v3 interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1876 STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC2, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1877 /*** Added in the v4 interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1878 STDMETHOD(SetPrivateData)(THIS_ REFGUID, LPVOID, DWORD, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1879 STDMETHOD(GetPrivateData)(THIS_ REFGUID, LPVOID, LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1880 STDMETHOD(FreePrivateData)(THIS_ REFGUID) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1881 STDMETHOD(GetUniquenessValue)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1882 STDMETHOD(ChangeUniquenessValue)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1883 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1884
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1885 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1886 #define IDirectDrawSurface4_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1887 #define IDirectDrawSurface4_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1888 #define IDirectDrawSurface4_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1889 #define IDirectDrawSurface4_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1890 #define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1891 #define IDirectDrawSurface4_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1892 #define IDirectDrawSurface4_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1893 #define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1894 #define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1895 #define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1896 #define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1897 #define IDirectDrawSurface4_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1898 #define IDirectDrawSurface4_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1899 #define IDirectDrawSurface4_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1900 #define IDirectDrawSurface4_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1901 #define IDirectDrawSurface4_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1902 #define IDirectDrawSurface4_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1903 #define IDirectDrawSurface4_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1904 #define IDirectDrawSurface4_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1905 #define IDirectDrawSurface4_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1906 #define IDirectDrawSurface4_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1907 #define IDirectDrawSurface4_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1908 #define IDirectDrawSurface4_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1909 #define IDirectDrawSurface4_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1910 #define IDirectDrawSurface4_IsLost(p) (p)->lpVtbl->IsLost(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1911 #define IDirectDrawSurface4_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1912 #define IDirectDrawSurface4_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1913 #define IDirectDrawSurface4_Restore(p) (p)->lpVtbl->Restore(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1914 #define IDirectDrawSurface4_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1915 #define IDirectDrawSurface4_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1916 #define IDirectDrawSurface4_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1917 #define IDirectDrawSurface4_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1918 #define IDirectDrawSurface4_Unlock(p,b) (p)->lpVtbl->Unlock(p,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1919 #define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1920 #define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1921 #define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1922 #define IDirectDrawSurface4_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1923 #define IDirectDrawSurface4_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1924 #define IDirectDrawSurface4_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1925 #define IDirectDrawSurface4_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1926 #define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1927 #define IDirectDrawSurface4_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1928 #define IDirectDrawSurface4_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1929 #define IDirectDrawSurface4_GetUniquenessValue(p, a) (p)->lpVtbl->GetUniquenessValue(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1930 #define IDirectDrawSurface4_ChangeUniquenessValue(p) (p)->lpVtbl->ChangeUniquenessValue(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1931 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1932 #define IDirectDrawSurface4_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1933 #define IDirectDrawSurface4_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1934 #define IDirectDrawSurface4_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1935 #define IDirectDrawSurface4_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1936 #define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1937 #define IDirectDrawSurface4_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1938 #define IDirectDrawSurface4_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1939 #define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1940 #define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1941 #define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1942 #define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1943 #define IDirectDrawSurface4_Flip(p,a,b) (p)->Flip(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1944 #define IDirectDrawSurface4_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1945 #define IDirectDrawSurface4_GetBltStatus(p,a) (p)->GetBltStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1946 #define IDirectDrawSurface4_GetCaps(p,b) (p)->GetCaps(b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1947 #define IDirectDrawSurface4_GetClipper(p,a) (p)->GetClipper(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1948 #define IDirectDrawSurface4_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1949 #define IDirectDrawSurface4_GetDC(p,a) (p)->GetDC(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1950 #define IDirectDrawSurface4_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1951 #define IDirectDrawSurface4_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1952 #define IDirectDrawSurface4_GetPalette(p,a) (p)->GetPalette(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1953 #define IDirectDrawSurface4_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1954 #define IDirectDrawSurface4_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1955 #define IDirectDrawSurface4_Initialize(p,a,b) (p)->Initialize(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1956 #define IDirectDrawSurface4_IsLost(p) (p)->IsLost()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1957 #define IDirectDrawSurface4_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1958 #define IDirectDrawSurface4_ReleaseDC(p,a) (p)->ReleaseDC(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1959 #define IDirectDrawSurface4_Restore(p) (p)->Restore()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1960 #define IDirectDrawSurface4_SetClipper(p,a) (p)->SetClipper(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1961 #define IDirectDrawSurface4_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1962 #define IDirectDrawSurface4_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1963 #define IDirectDrawSurface4_SetPalette(p,a) (p)->SetPalette(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1964 #define IDirectDrawSurface4_Unlock(p,b) (p)->Unlock(b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1965 #define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1966 #define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1967 #define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1968 #define IDirectDrawSurface4_GetDDInterface(p,a) (p)->GetDDInterface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1969 #define IDirectDrawSurface4_PageLock(p,a) (p)->PageLock(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1970 #define IDirectDrawSurface4_PageUnlock(p,a) (p)->PageUnlock(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1971 #define IDirectDrawSurface4_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1972 #define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1973 #define IDirectDrawSurface4_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1974 #define IDirectDrawSurface4_FreePrivateData(p,a) (p)->FreePrivateData(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1975 #define IDirectDrawSurface4_GetUniquenessValue(p, a) (p)->GetUniquenessValue(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1976 #define IDirectDrawSurface4_ChangeUniquenessValue(p) (p)->ChangeUniquenessValue()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1977 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1978
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1979 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1980 * IDirectDrawSurface7 and related interfaces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1981 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1982 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1983 #define INTERFACE IDirectDrawSurface7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1984 DECLARE_INTERFACE_( IDirectDrawSurface7, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1985 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1986 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1987 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1988 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1989 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1990 /*** IDirectDrawSurface methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1991 STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE7) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1992 STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1993 STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE7, LPRECT,DWORD, LPDDBLTFX) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1994 STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1995 STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE7, LPRECT,DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1996 STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE7) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1997 STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK7) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1998 STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK7) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1999 STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE7, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2000 STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS2, LPDIRECTDRAWSURFACE7 FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2001 STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2002 STDMETHOD(GetCaps)(THIS_ LPDDSCAPS2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2003 STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2004 STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2005 STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2006 STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2007 STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2008 STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2009 STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2010 STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2011 STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC2) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2012 STDMETHOD(IsLost)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2013 STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC2,DWORD,HANDLE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2014 STDMETHOD(ReleaseDC)(THIS_ HDC) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2015 STDMETHOD(Restore)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2016 STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2017 STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2018 STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2019 STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2020 STDMETHOD(Unlock)(THIS_ LPRECT) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2021 STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE7,LPRECT,DWORD, LPDDOVERLAYFX) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2022 STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2023 STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE7) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2024 /*** Added in the v2 interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2025 STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2026 STDMETHOD(PageLock)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2027 STDMETHOD(PageUnlock)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2028 /*** Added in the v3 interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2029 STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC2, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2030 /*** Added in the v4 interface ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2031 STDMETHOD(SetPrivateData)(THIS_ REFGUID, LPVOID, DWORD, DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2032 STDMETHOD(GetPrivateData)(THIS_ REFGUID, LPVOID, LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2033 STDMETHOD(FreePrivateData)(THIS_ REFGUID) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2034 STDMETHOD(GetUniquenessValue)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2035 STDMETHOD(ChangeUniquenessValue)(THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2036 /*** Moved Texture7 methods here ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2037 STDMETHOD(SetPriority)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2038 STDMETHOD(GetPriority)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2039 STDMETHOD(SetLOD)(THIS_ DWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2040 STDMETHOD(GetLOD)(THIS_ LPDWORD) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2041 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2042
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2043 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2044 #define IDirectDrawSurface7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2045 #define IDirectDrawSurface7_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2046 #define IDirectDrawSurface7_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2047 #define IDirectDrawSurface7_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2048 #define IDirectDrawSurface7_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2049 #define IDirectDrawSurface7_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2050 #define IDirectDrawSurface7_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2051 #define IDirectDrawSurface7_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2052 #define IDirectDrawSurface7_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2053 #define IDirectDrawSurface7_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2054 #define IDirectDrawSurface7_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2055 #define IDirectDrawSurface7_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2056 #define IDirectDrawSurface7_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2057 #define IDirectDrawSurface7_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2058 #define IDirectDrawSurface7_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2059 #define IDirectDrawSurface7_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2060 #define IDirectDrawSurface7_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2061 #define IDirectDrawSurface7_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2062 #define IDirectDrawSurface7_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2063 #define IDirectDrawSurface7_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2064 #define IDirectDrawSurface7_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2065 #define IDirectDrawSurface7_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2066 #define IDirectDrawSurface7_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2067 #define IDirectDrawSurface7_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2068 #define IDirectDrawSurface7_IsLost(p) (p)->lpVtbl->IsLost(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2069 #define IDirectDrawSurface7_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2070 #define IDirectDrawSurface7_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2071 #define IDirectDrawSurface7_Restore(p) (p)->lpVtbl->Restore(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2072 #define IDirectDrawSurface7_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2073 #define IDirectDrawSurface7_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2074 #define IDirectDrawSurface7_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2075 #define IDirectDrawSurface7_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2076 #define IDirectDrawSurface7_Unlock(p,b) (p)->lpVtbl->Unlock(p,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2077 #define IDirectDrawSurface7_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2078 #define IDirectDrawSurface7_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2079 #define IDirectDrawSurface7_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2080 #define IDirectDrawSurface7_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2081 #define IDirectDrawSurface7_PageLock(p,a) (p)->lpVtbl->PageLock(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2082 #define IDirectDrawSurface7_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2083 #define IDirectDrawSurface7_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2084 #define IDirectDrawSurface7_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2085 #define IDirectDrawSurface7_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2086 #define IDirectDrawSurface7_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2087 #define IDirectDrawSurface7_GetUniquenessValue(p, a) (p)->lpVtbl->GetUniquenessValue(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2088 #define IDirectDrawSurface7_ChangeUniquenessValue(p) (p)->lpVtbl->ChangeUniquenessValue(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2089 #define IDirectDrawSurface7_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2090 #define IDirectDrawSurface7_GetPriority(p,a) (p)->lpVtbl->GetPriority(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2091 #define IDirectDrawSurface7_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2092 #define IDirectDrawSurface7_GetLOD(p,a) (p)->lpVtbl->GetLOD(p,a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2093 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2094 #define IDirectDrawSurface7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2095 #define IDirectDrawSurface7_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2096 #define IDirectDrawSurface7_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2097 #define IDirectDrawSurface7_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2098 #define IDirectDrawSurface7_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2099 #define IDirectDrawSurface7_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2100 #define IDirectDrawSurface7_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2101 #define IDirectDrawSurface7_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2102 #define IDirectDrawSurface7_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2103 #define IDirectDrawSurface7_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2104 #define IDirectDrawSurface7_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2105 #define IDirectDrawSurface7_Flip(p,a,b) (p)->Flip(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2106 #define IDirectDrawSurface7_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2107 #define IDirectDrawSurface7_GetBltStatus(p,a) (p)->GetBltStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2108 #define IDirectDrawSurface7_GetCaps(p,b) (p)->GetCaps(b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2109 #define IDirectDrawSurface7_GetClipper(p,a) (p)->GetClipper(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2110 #define IDirectDrawSurface7_GetColorKey(p,a,b) (p)->GetColorKey(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2111 #define IDirectDrawSurface7_GetDC(p,a) (p)->GetDC(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2112 #define IDirectDrawSurface7_GetFlipStatus(p,a) (p)->GetFlipStatus(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2113 #define IDirectDrawSurface7_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2114 #define IDirectDrawSurface7_GetPalette(p,a) (p)->GetPalette(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2115 #define IDirectDrawSurface7_GetPixelFormat(p,a) (p)->GetPixelFormat(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2116 #define IDirectDrawSurface7_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2117 #define IDirectDrawSurface7_Initialize(p,a,b) (p)->Initialize(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2118 #define IDirectDrawSurface7_IsLost(p) (p)->IsLost()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2119 #define IDirectDrawSurface7_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2120 #define IDirectDrawSurface7_ReleaseDC(p,a) (p)->ReleaseDC(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2121 #define IDirectDrawSurface7_Restore(p) (p)->Restore()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2122 #define IDirectDrawSurface7_SetClipper(p,a) (p)->SetClipper(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2123 #define IDirectDrawSurface7_SetColorKey(p,a,b) (p)->SetColorKey(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2124 #define IDirectDrawSurface7_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2125 #define IDirectDrawSurface7_SetPalette(p,a) (p)->SetPalette(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2126 #define IDirectDrawSurface7_Unlock(p,b) (p)->Unlock(b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2127 #define IDirectDrawSurface7_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2128 #define IDirectDrawSurface7_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2129 #define IDirectDrawSurface7_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2130 #define IDirectDrawSurface7_GetDDInterface(p,a) (p)->GetDDInterface(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2131 #define IDirectDrawSurface7_PageLock(p,a) (p)->PageLock(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2132 #define IDirectDrawSurface7_PageUnlock(p,a) (p)->PageUnlock(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2133 #define IDirectDrawSurface7_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2134 #define IDirectDrawSurface7_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2135 #define IDirectDrawSurface7_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2136 #define IDirectDrawSurface7_FreePrivateData(p,a) (p)->FreePrivateData(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2137 #define IDirectDrawSurface7_GetUniquenessValue(p, a) (p)->GetUniquenessValue(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2138 #define IDirectDrawSurface7_ChangeUniquenessValue(p) (p)->ChangeUniquenessValue()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2139 #define IDirectDrawSurface7_SetPriority(p,a) (p)->SetPriority(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2140 #define IDirectDrawSurface7_GetPriority(p,a) (p)->GetPriority(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2141 #define IDirectDrawSurface7_SetLOD(p,a) (p)->SetLOD(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2142 #define IDirectDrawSurface7_GetLOD(p,a) (p)->GetLOD(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2143 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2144
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2145
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2146 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2147 * IDirectDrawColorControl
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2148 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2149 #if defined( _WIN32 ) && !defined( _NO_COM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2150 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2151 #define INTERFACE IDirectDrawColorControl
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2152 DECLARE_INTERFACE_( IDirectDrawColorControl, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2153 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2154 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2155 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2156 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2157 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2158 /*** IDirectDrawColorControl methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2159 STDMETHOD(GetColorControls)(THIS_ LPDDCOLORCONTROL) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2160 STDMETHOD(SetColorControls)(THIS_ LPDDCOLORCONTROL) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2161 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2162
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2163 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2164 #define IDirectDrawColorControl_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2165 #define IDirectDrawColorControl_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2166 #define IDirectDrawColorControl_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2167 #define IDirectDrawColorControl_GetColorControls(p, a) (p)->lpVtbl->GetColorControls(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2168 #define IDirectDrawColorControl_SetColorControls(p, a) (p)->lpVtbl->SetColorControls(p, a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2169 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2170 #define IDirectDrawColorControl_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2171 #define IDirectDrawColorControl_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2172 #define IDirectDrawColorControl_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2173 #define IDirectDrawColorControl_GetColorControls(p, a) (p)->GetColorControls(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2174 #define IDirectDrawColorControl_SetColorControls(p, a) (p)->SetColorControls(a)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2175 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2176
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2177 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2178
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2179
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2180 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2181 * IDirectDrawGammaControl
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2182 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2183 #if defined( _WIN32 ) && !defined( _NO_COM )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2184 #undef INTERFACE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2185 #define INTERFACE IDirectDrawGammaControl
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2186 DECLARE_INTERFACE_( IDirectDrawGammaControl, IUnknown )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2187 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2188 /*** IUnknown methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2189 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2190 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2191 STDMETHOD_(ULONG,Release) (THIS) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2192 /*** IDirectDrawGammaControl methods ***/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2193 STDMETHOD(GetGammaRamp)(THIS_ DWORD, LPDDGAMMARAMP) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2194 STDMETHOD(SetGammaRamp)(THIS_ DWORD, LPDDGAMMARAMP) PURE;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2195 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2196
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2197 #if !defined(__cplusplus) || defined(CINTERFACE)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2198 #define IDirectDrawGammaControl_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2199 #define IDirectDrawGammaControl_AddRef(p) (p)->lpVtbl->AddRef(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2200 #define IDirectDrawGammaControl_Release(p) (p)->lpVtbl->Release(p)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2201 #define IDirectDrawGammaControl_GetGammaRamp(p, a, b) (p)->lpVtbl->GetGammaRamp(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2202 #define IDirectDrawGammaControl_SetGammaRamp(p, a, b) (p)->lpVtbl->SetGammaRamp(p, a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2203 #else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2204 #define IDirectDrawGammaControl_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2205 #define IDirectDrawGammaControl_AddRef(p) (p)->AddRef()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2206 #define IDirectDrawGammaControl_Release(p) (p)->Release()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2207 #define IDirectDrawGammaControl_GetGammaRamp(p, a, b) (p)->GetGammaRamp(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2208 #define IDirectDrawGammaControl_SetGammaRamp(p, a, b) (p)->SetGammaRamp(a, b)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2209 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2210
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2211 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2212
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2213
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2214
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2215 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2216
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2217
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2218 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2219 * DDSURFACEDESC
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2220 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2221 typedef struct _DDSURFACEDESC
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2222 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2223 DWORD dwSize; // size of the DDSURFACEDESC structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2224 DWORD dwFlags; // determines what fields are valid
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2225 DWORD dwHeight; // height of surface to be created
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2226 DWORD dwWidth; // width of input surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2227 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2228 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2229 LONG lPitch; // distance to start of next line (return value only)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2230 DWORD dwLinearSize; // Formless late-allocated optimized surface size
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2231 } DUMMYUNIONNAMEN(1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2232 DWORD dwBackBufferCount; // number of back buffers requested
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2233 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2234 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2235 DWORD dwMipMapCount; // number of mip-map levels requested
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2236 DWORD dwZBufferBitDepth; // depth of Z buffer requested
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2237 DWORD dwRefreshRate; // refresh rate (used when display mode is described)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2238 } DUMMYUNIONNAMEN(2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2239 DWORD dwAlphaBitDepth; // depth of alpha buffer requested
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2240 DWORD dwReserved; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2241 LPVOID lpSurface; // pointer to the associated surface memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2242 DDCOLORKEY ddckCKDestOverlay; // color key for destination overlay use
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2243 DDCOLORKEY ddckCKDestBlt; // color key for destination blt use
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2244 DDCOLORKEY ddckCKSrcOverlay; // color key for source overlay use
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2245 DDCOLORKEY ddckCKSrcBlt; // color key for source blt use
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2246 DDPIXELFORMAT ddpfPixelFormat; // pixel format description of the surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2247 DDSCAPS ddsCaps; // direct draw surface capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2248 } DDSURFACEDESC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2249
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2250 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2251 * DDSURFACEDESC2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2252 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2253 typedef struct _DDSURFACEDESC2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2254 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2255 DWORD dwSize; // size of the DDSURFACEDESC structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2256 DWORD dwFlags; // determines what fields are valid
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2257 DWORD dwHeight; // height of surface to be created
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2258 DWORD dwWidth; // width of input surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2259 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2260 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2261 LONG lPitch; // distance to start of next line (return value only)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2262 DWORD dwLinearSize; // Formless late-allocated optimized surface size
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2263 } DUMMYUNIONNAMEN(1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2264 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2265 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2266 DWORD dwBackBufferCount; // number of back buffers requested
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2267 DWORD dwDepth; // the depth if this is a volume texture
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2268 } DUMMYUNIONNAMEN(5);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2269 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2270 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2271 DWORD dwMipMapCount; // number of mip-map levels requestde
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2272 // dwZBufferBitDepth removed, use ddpfPixelFormat one instead
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2273 DWORD dwRefreshRate; // refresh rate (used when display mode is described)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2274 DWORD dwSrcVBHandle; // The source used in VB::Optimize
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2275 } DUMMYUNIONNAMEN(2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2276 DWORD dwAlphaBitDepth; // depth of alpha buffer requested
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2277 DWORD dwReserved; // reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2278 LPVOID lpSurface; // pointer to the associated surface memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2279 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2280 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2281 DDCOLORKEY ddckCKDestOverlay; // color key for destination overlay use
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2282 DWORD dwEmptyFaceColor; // Physical color for empty cubemap faces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2283 } DUMMYUNIONNAMEN(3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2284 DDCOLORKEY ddckCKDestBlt; // color key for destination blt use
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2285 DDCOLORKEY ddckCKSrcOverlay; // color key for source overlay use
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2286 DDCOLORKEY ddckCKSrcBlt; // color key for source blt use
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2287 union
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2288 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2289 DDPIXELFORMAT ddpfPixelFormat; // pixel format description of the surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2290 DWORD dwFVF; // vertex format description of vertex buffers
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2291 } DUMMYUNIONNAMEN(4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2292 DDSCAPS2 ddsCaps; // direct draw surface capabilities
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2293 DWORD dwTextureStage; // stage in multitexture cascade
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2294 } DDSURFACEDESC2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2295
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2296 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2297 * ddsCaps field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2298 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2299 #define DDSD_CAPS 0x00000001l // default
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2300
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2301 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2302 * dwHeight field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2303 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2304 #define DDSD_HEIGHT 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2305
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2306 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2307 * dwWidth field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2308 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2309 #define DDSD_WIDTH 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2310
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2311 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2312 * lPitch is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2313 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2314 #define DDSD_PITCH 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2315
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2316 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2317 * dwBackBufferCount is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2318 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2319 #define DDSD_BACKBUFFERCOUNT 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2320
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2321 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2322 * dwZBufferBitDepth is valid. (shouldnt be used in DDSURFACEDESC2)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2323 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2324 #define DDSD_ZBUFFERBITDEPTH 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2325
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2326 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2327 * dwAlphaBitDepth is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2328 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2329 #define DDSD_ALPHABITDEPTH 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2330
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2331
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2332 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2333 * lpSurface is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2334 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2335 #define DDSD_LPSURFACE 0x00000800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2336
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2337 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2338 * ddpfPixelFormat is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2339 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2340 #define DDSD_PIXELFORMAT 0x00001000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2341
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2342 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2343 * ddckCKDestOverlay is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2344 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2345 #define DDSD_CKDESTOVERLAY 0x00002000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2346
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2347 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2348 * ddckCKDestBlt is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2349 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2350 #define DDSD_CKDESTBLT 0x00004000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2351
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2352 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2353 * ddckCKSrcOverlay is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2354 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2355 #define DDSD_CKSRCOVERLAY 0x00008000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2356
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2357 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2358 * ddckCKSrcBlt is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2359 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2360 #define DDSD_CKSRCBLT 0x00010000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2361
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2362 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2363 * dwMipMapCount is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2364 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2365 #define DDSD_MIPMAPCOUNT 0x00020000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2366
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2367 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2368 * dwRefreshRate is valid
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2369 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2370 #define DDSD_REFRESHRATE 0x00040000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2371
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2372 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2373 * dwLinearSize is valid
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2374 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2375 #define DDSD_LINEARSIZE 0x00080000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2376
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2377 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2378 * dwTextureStage is valid
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2379 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2380 #define DDSD_TEXTURESTAGE 0x00100000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2381 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2382 * dwFVF is valid
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2383 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2384 #define DDSD_FVF 0x00200000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2385 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2386 * dwSrcVBHandle is valid
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2387 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2388 #define DDSD_SRCVBHANDLE 0x00400000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2389
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2390 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2391 * dwDepth is valid
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2392 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2393 #define DDSD_DEPTH 0x00800000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2394
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2395 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2396 * All input fields are valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2397 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2398 #define DDSD_ALL 0x00fff9eel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2399
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2400 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2401 * DDOPTSURFACEDESC
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2402 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2403 typedef struct _DDOPTSURFACEDESC
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2404 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2405 DWORD dwSize; // size of the DDOPTSURFACEDESC structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2406 DWORD dwFlags; // determines what fields are valid
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2407 DDSCAPS2 ddSCaps; // Common caps like: Memory type
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2408 DDOSCAPS ddOSCaps; // Common caps like: Memory type
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2409 GUID guid; // Compression technique GUID
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2410 DWORD dwCompressionRatio; // Compression ratio
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2411 } DDOPTSURFACEDESC;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2412
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2413 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2414 * guid field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2415 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2416 #define DDOSD_GUID 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2417
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2418 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2419 * dwCompressionRatio field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2420 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2421 #define DDOSD_COMPRESSION_RATIO 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2422
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2423 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2424 * ddSCaps field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2425 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2426 #define DDOSD_SCAPS 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2427
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2428 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2429 * ddOSCaps field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2430 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2431 #define DDOSD_OSCAPS 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2432
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2433 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2434 * All input fields are valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2435 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2436 #define DDOSD_ALL 0x0000000fl
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2437
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2438 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2439 * The surface's optimized pixelformat is compressed
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2440 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2441 #define DDOSDCAPS_OPTCOMPRESSED 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2442
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2443 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2444 * The surface's optimized pixelformat is reordered
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2445 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2446 #define DDOSDCAPS_OPTREORDERED 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2447
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2448 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2449 * The opt surface is a monolithic mipmap
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2450 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2451 #define DDOSDCAPS_MONOLITHICMIPMAP 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2452
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2453 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2454 * The valid Surf caps:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2455 * #define DDSCAPS_SYSTEMMEMORY 0x00000800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2456 * #define DDSCAPS_VIDEOMEMORY 0x00004000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2457 * #define DDSCAPS_LOCALVIDMEM 0x10000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2458 * #define DDSCAPS_NONLOCALVIDMEM 0x20000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2459 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2460 #define DDOSDCAPS_VALIDSCAPS 0x30004800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2461
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2462 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2463 * The valid OptSurf caps
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2464 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2465 #define DDOSDCAPS_VALIDOSCAPS 0x00000007l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2466
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2467
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2468 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2469 * DDCOLORCONTROL
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2470 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2471 typedef struct _DDCOLORCONTROL
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2472 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2473 DWORD dwSize;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2474 DWORD dwFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2475 LONG lBrightness;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2476 LONG lContrast;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2477 LONG lHue;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2478 LONG lSaturation;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2479 LONG lSharpness;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2480 LONG lGamma;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2481 LONG lColorEnable;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2482 DWORD dwReserved1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2483 } DDCOLORCONTROL;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2484
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2485
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2486 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2487 * lBrightness field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2488 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2489 #define DDCOLOR_BRIGHTNESS 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2490
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2491 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2492 * lContrast field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2493 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2494 #define DDCOLOR_CONTRAST 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2495
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2496 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2497 * lHue field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2498 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2499 #define DDCOLOR_HUE 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2500
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2501 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2502 * lSaturation field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2503 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2504 #define DDCOLOR_SATURATION 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2505
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2506 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2507 * lSharpness field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2508 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2509 #define DDCOLOR_SHARPNESS 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2510
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2511 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2512 * lGamma field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2513 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2514 #define DDCOLOR_GAMMA 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2515
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2516 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2517 * lColorEnable field is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2518 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2519 #define DDCOLOR_COLORENABLE 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2520
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2521
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2522
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2523 /*============================================================================
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2524 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2525 * Direct Draw Capability Flags
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2526 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2527 * These flags are used to describe the capabilities of a given Surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2528 * All flags are bit flags.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2529 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2530 *==========================================================================*/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2531
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2532 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2533 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2534 * DIRECTDRAWSURFACE CAPABILITY FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2535 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2536 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2537
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2538 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2539 * This bit is reserved. It should not be specified.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2540 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2541 #define DDSCAPS_RESERVED1 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2542
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2543 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2544 * Indicates that this surface contains alpha-only information.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2545 * (To determine if a surface is RGBA/YUVA, the pixel format must be
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2546 * interrogated.)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2547 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2548 #define DDSCAPS_ALPHA 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2549
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2550 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2551 * Indicates that this surface is a backbuffer. It is generally
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2552 * set by CreateSurface when the DDSCAPS_FLIP capability bit is set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2553 * It indicates that this surface is THE back buffer of a surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2554 * flipping structure. DirectDraw supports N surfaces in a
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2555 * surface flipping structure. Only the surface that immediately
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2556 * precedeces the DDSCAPS_FRONTBUFFER has this capability bit set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2557 * The other surfaces are identified as back buffers by the presence
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2558 * of the DDSCAPS_FLIP capability, their attachment order, and the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2559 * absence of the DDSCAPS_FRONTBUFFER and DDSCAPS_BACKBUFFER
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2560 * capabilities. The bit is sent to CreateSurface when a standalone
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2561 * back buffer is being created. This surface could be attached to
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2562 * a front buffer and/or back buffers to form a flipping surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2563 * structure after the CreateSurface call. See AddAttachments for
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2564 * a detailed description of the behaviors in this case.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2565 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2566 #define DDSCAPS_BACKBUFFER 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2567
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2568 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2569 * Indicates a complex surface structure is being described. A
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2570 * complex surface structure results in the creation of more than
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2571 * one surface. The additional surfaces are attached to the root
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2572 * surface. The complex structure can only be destroyed by
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2573 * destroying the root.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2574 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2575 #define DDSCAPS_COMPLEX 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2576
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2577 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2578 * Indicates that this surface is a part of a surface flipping structure.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2579 * When it is passed to CreateSurface the DDSCAPS_FRONTBUFFER and
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2580 * DDSCAP_BACKBUFFER bits are not set. They are set by CreateSurface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2581 * on the resulting creations. The dwBackBufferCount field in the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2582 * DDSURFACEDESC structure must be set to at least 1 in order for
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2583 * the CreateSurface call to succeed. The DDSCAPS_COMPLEX capability
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2584 * must always be set with creating multiple surfaces through CreateSurface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2585 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2586 #define DDSCAPS_FLIP 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2587
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2588 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2589 * Indicates that this surface is THE front buffer of a surface flipping
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2590 * structure. It is generally set by CreateSurface when the DDSCAPS_FLIP
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2591 * capability bit is set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2592 * If this capability is sent to CreateSurface then a standalonw front buffer
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2593 * is created. This surface will not have the DDSCAPS_FLIP capability.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2594 * It can be attached to other back buffers to form a flipping structure.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2595 * See AddAttachments for a detailed description of the behaviors in this
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2596 * case.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2597 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2598 #define DDSCAPS_FRONTBUFFER 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2599
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2600 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2601 * Indicates that this surface is any offscreen surface that is not an overlay,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2602 * texture, zbuffer, front buffer, back buffer, or alpha surface. It is used
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2603 * to identify plain vanilla surfaces.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2604 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2605 #define DDSCAPS_OFFSCREENPLAIN 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2606
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2607 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2608 * Indicates that this surface is an overlay. It may or may not be directly visible
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2609 * depending on whether or not it is currently being overlayed onto the primary
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2610 * surface. DDSCAPS_VISIBLE can be used to determine whether or not it is being
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2611 * overlayed at the moment.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2612 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2613 #define DDSCAPS_OVERLAY 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2614
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2615 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2616 * Indicates that unique DirectDrawPalette objects can be created and
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2617 * attached to this surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2618 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2619 #define DDSCAPS_PALETTE 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2620
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2621 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2622 * Indicates that this surface is the primary surface. The primary
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2623 * surface represents what the user is seeing at the moment.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2624 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2625 #define DDSCAPS_PRIMARYSURFACE 0x00000200l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2626
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2627
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2628 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2629 * This flag used to be DDSCAPS_PRIMARYSURFACELEFT, which is now
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2630 * obsolete.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2631 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2632 #define DDSCAPS_RESERVED3 0x00000400l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2633 #define DDSCAPS_PRIMARYSURFACELEFT 0x00000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2634
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2635 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2636 * Indicates that this surface memory was allocated in system memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2637 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2638 #define DDSCAPS_SYSTEMMEMORY 0x00000800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2639
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2640 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2641 * Indicates that this surface can be used as a 3D texture. It does not
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2642 * indicate whether or not the surface is being used for that purpose.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2643 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2644 #define DDSCAPS_TEXTURE 0x00001000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2645
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2646 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2647 * Indicates that a surface may be a destination for 3D rendering. This
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2648 * bit must be set in order to query for a Direct3D Device Interface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2649 * from this surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2650 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2651 #define DDSCAPS_3DDEVICE 0x00002000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2652
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2653 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2654 * Indicates that this surface exists in video memory.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2655 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2656 #define DDSCAPS_VIDEOMEMORY 0x00004000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2657
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2658 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2659 * Indicates that changes made to this surface are immediately visible.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2660 * It is always set for the primary surface and is set for overlays while
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2661 * they are being overlayed and texture maps while they are being textured.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2662 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2663 #define DDSCAPS_VISIBLE 0x00008000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2664
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2665 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2666 * Indicates that only writes are permitted to the surface. Read accesses
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2667 * from the surface may or may not generate a protection fault, but the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2668 * results of a read from this surface will not be meaningful. READ ONLY.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2669 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2670 #define DDSCAPS_WRITEONLY 0x00010000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2671
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2672 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2673 * Indicates that this surface is a z buffer. A z buffer does not contain
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2674 * displayable information. Instead it contains bit depth information that is
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2675 * used to determine which pixels are visible and which are obscured.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2676 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2677 #define DDSCAPS_ZBUFFER 0x00020000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2678
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2679 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2680 * Indicates surface will have a DC associated long term
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2681 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2682 #define DDSCAPS_OWNDC 0x00040000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2683
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2684 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2685 * Indicates surface should be able to receive live video
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2686 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2687 #define DDSCAPS_LIVEVIDEO 0x00080000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2688
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2689 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2690 * Indicates surface should be able to have a stream decompressed
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2691 * to it by the hardware.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2692 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2693 #define DDSCAPS_HWCODEC 0x00100000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2694
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2695 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2696 * Surface is a ModeX surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2697 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2698 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2699 #define DDSCAPS_MODEX 0x00200000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2700
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2701 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2702 * Indicates surface is one level of a mip-map. This surface will
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2703 * be attached to other DDSCAPS_MIPMAP surfaces to form the mip-map.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2704 * This can be done explicitly, by creating a number of surfaces and
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2705 * attaching them with AddAttachedSurface or by implicitly by CreateSurface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2706 * If this bit is set then DDSCAPS_TEXTURE must also be set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2707 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2708 #define DDSCAPS_MIPMAP 0x00400000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2709
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2710 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2711 * This bit is reserved. It should not be specified.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2712 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2713 #define DDSCAPS_RESERVED2 0x00800000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2714
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2715
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2716 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2717 * Indicates that memory for the surface is not allocated until the surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2718 * is loaded (via the Direct3D texture Load() function).
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2719 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2720 #define DDSCAPS_ALLOCONLOAD 0x04000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2721
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2722 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2723 * Indicates that the surface will recieve data from a video port.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2724 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2725 #define DDSCAPS_VIDEOPORT 0x08000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2726
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2727 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2728 * Indicates that a video memory surface is resident in true, local video
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2729 * memory rather than non-local video memory. If this flag is specified then
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2730 * so must DDSCAPS_VIDEOMEMORY. This flag is mutually exclusive with
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2731 * DDSCAPS_NONLOCALVIDMEM.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2732 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2733 #define DDSCAPS_LOCALVIDMEM 0x10000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2734
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2735 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2736 * Indicates that a video memory surface is resident in non-local video
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2737 * memory rather than true, local video memory. If this flag is specified
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2738 * then so must DDSCAPS_VIDEOMEMORY. This flag is mutually exclusive with
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2739 * DDSCAPS_LOCALVIDMEM.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2740 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2741 #define DDSCAPS_NONLOCALVIDMEM 0x20000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2742
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2743 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2744 * Indicates that this surface is a standard VGA mode surface, and not a
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2745 * ModeX surface. (This flag will never be set in combination with the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2746 * DDSCAPS_MODEX flag).
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2747 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2748 #define DDSCAPS_STANDARDVGAMODE 0x40000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2749
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2750 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2751 * Indicates that this surface will be an optimized surface. This flag is
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2752 * currently only valid in conjunction with the DDSCAPS_TEXTURE flag. The surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2753 * will be created without any underlying video memory until loaded.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2754 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2755 #define DDSCAPS_OPTIMIZED 0x80000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2756
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2757
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2758
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2759 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2760 * This bit is reserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2761 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2762 #define DDSCAPS2_RESERVED4 0x00000002L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2763 #define DDSCAPS2_HARDWAREDEINTERLACE 0x00000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2764
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2765 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2766 * Indicates to the driver that this surface will be locked very frequently
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2767 * (for procedural textures, dynamic lightmaps, etc). Surfaces with this cap
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2768 * set must also have DDSCAPS_TEXTURE. This cap cannot be used with
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2769 * DDSCAPS2_HINTSTATIC and DDSCAPS2_OPAQUE.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2770 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2771 #define DDSCAPS2_HINTDYNAMIC 0x00000004L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2772
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2773 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2774 * Indicates to the driver that this surface can be re-ordered/retiled on
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2775 * load. This operation will not change the size of the texture. It is
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2776 * relatively fast and symmetrical, since the application may lock these
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2777 * bits (although it will take a performance hit when doing so). Surfaces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2778 * with this cap set must also have DDSCAPS_TEXTURE. This cap cannot be
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2779 * used with DDSCAPS2_HINTDYNAMIC and DDSCAPS2_OPAQUE.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2780 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2781 #define DDSCAPS2_HINTSTATIC 0x00000008L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2782
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2783 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2784 * Indicates that the client would like this texture surface to be managed by the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2785 * DirectDraw/Direct3D runtime. Surfaces with this cap set must also have
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2786 * DDSCAPS_TEXTURE set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2787 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2788 #define DDSCAPS2_TEXTUREMANAGE 0x00000010L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2789
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2790 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2791 * These bits are reserved for internal use */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2792 #define DDSCAPS2_RESERVED1 0x00000020L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2793 #define DDSCAPS2_RESERVED2 0x00000040L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2794
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2795 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2796 * Indicates to the driver that this surface will never be locked again.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2797 * The driver is free to optimize this surface via retiling and actual compression.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2798 * All calls to Lock() or Blts from this surface will fail. Surfaces with this
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2799 * cap set must also have DDSCAPS_TEXTURE. This cap cannot be used with
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2800 * DDSCAPS2_HINTDYNAMIC and DDSCAPS2_HINTSTATIC.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2801 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2802 #define DDSCAPS2_OPAQUE 0x00000080L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2803
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2804 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2805 * Applications should set this bit at CreateSurface time to indicate that they
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2806 * intend to use antialiasing. Only valid if DDSCAPS_3DDEVICE is also set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2807 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2808 #define DDSCAPS2_HINTANTIALIASING 0x00000100L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2809
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2810
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2811 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2812 * This flag is used at CreateSurface time to indicate that this set of
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2813 * surfaces is a cubic environment map
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2814 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2815 #define DDSCAPS2_CUBEMAP 0x00000200L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2816
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2817 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2818 * These flags preform two functions:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2819 * - At CreateSurface time, they define which of the six cube faces are
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2820 * required by the application.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2821 * - After creation, each face in the cubemap will have exactly one of these
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2822 * bits set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2823 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2824 #define DDSCAPS2_CUBEMAP_POSITIVEX 0x00000400L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2825 #define DDSCAPS2_CUBEMAP_NEGATIVEX 0x00000800L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2826 #define DDSCAPS2_CUBEMAP_POSITIVEY 0x00001000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2827 #define DDSCAPS2_CUBEMAP_NEGATIVEY 0x00002000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2828 #define DDSCAPS2_CUBEMAP_POSITIVEZ 0x00004000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2829 #define DDSCAPS2_CUBEMAP_NEGATIVEZ 0x00008000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2830
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2831 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2832 * This macro may be used to specify all faces of a cube map at CreateSurface time
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2833 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2834 #define DDSCAPS2_CUBEMAP_ALLFACES ( DDSCAPS2_CUBEMAP_POSITIVEX |\
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2835 DDSCAPS2_CUBEMAP_NEGATIVEX |\
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2836 DDSCAPS2_CUBEMAP_POSITIVEY |\
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2837 DDSCAPS2_CUBEMAP_NEGATIVEY |\
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2838 DDSCAPS2_CUBEMAP_POSITIVEZ |\
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2839 DDSCAPS2_CUBEMAP_NEGATIVEZ )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2840
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2841
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2842 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2843 * This flag is an additional flag which is present on mipmap sublevels from DX7 onwards
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2844 * It enables easier use of GetAttachedSurface rather than EnumAttachedSurfaces for surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2845 * constructs such as Cube Maps, wherein there are more than one mipmap surface attached
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2846 * to the root surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2847 * This caps bit is ignored by CreateSurface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2848 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2849 #define DDSCAPS2_MIPMAPSUBLEVEL 0x00010000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2850
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2851 /* This flag indicates that the texture should be managed by D3D only */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2852 #define DDSCAPS2_D3DTEXTUREMANAGE 0x00020000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2853
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2854 /* This flag indicates that the managed surface can be safely lost */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2855 #define DDSCAPS2_DONOTPERSIST 0x00040000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2856
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2857 /* indicates that this surface is part of a stereo flipping chain */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2858 #define DDSCAPS2_STEREOSURFACELEFT 0x00080000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2859
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2860
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2861 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2862 * Indicates that the surface is a volume.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2863 * Can be combined with DDSCAPS_MIPMAP to indicate a multi-level volume
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2864 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2865 #define DDSCAPS2_VOLUME 0x00200000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2866
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2867 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2868 * Indicates that the surface may be locked multiple times by the application.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2869 * This cap cannot be used with DDSCAPS2_OPAQUE.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2870 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2871 #define DDSCAPS2_NOTUSERLOCKABLE 0x00400000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2872
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2873 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2874 * Indicates that the vertex buffer data can be used to render points and
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2875 * point sprites.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2876 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2877 #define DDSCAPS2_POINTS 0x00800000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2878
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2879 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2880 * Indicates that the vertex buffer data can be used to render rt pactches.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2881 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2882 #define DDSCAPS2_RTPATCHES 0x01000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2883
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2884 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2885 * Indicates that the vertex buffer data can be used to render n patches.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2886 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2887 #define DDSCAPS2_NPATCHES 0x02000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2888
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2889 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2890 * This bit is reserved for internal use
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2891 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2892 #define DDSCAPS2_RESERVED3 0x04000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2893
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2894
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2895 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2896 * Indicates that the contents of the backbuffer do not have to be preserved
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2897 * the contents of the backbuffer after they are presented.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2898 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2899 #define DDSCAPS2_DISCARDBACKBUFFER 0x10000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2900
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2901 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2902 * Indicates that all surfaces in this creation chain should be given an alpha channel.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2903 * This flag will be set on primary surface chains that may have no explicit pixel format
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2904 * (and thus take on the format of the current display mode).
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2905 * The driver should infer that all these surfaces have a format having an alpha channel.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2906 * (e.g. assume D3DFMT_A8R8G8B8 if the display mode is x888.)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2907 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2908 #define DDSCAPS2_ENABLEALPHACHANNEL 0x20000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2909
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2910 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2911 * Indicates that all surfaces in this creation chain is extended primary surface format.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2912 * This flag will be set on extended primary surface chains that always have explicit pixel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2913 * format and the pixel format is typically GDI (Graphics Device Interface) couldn't handle,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2914 * thus only used with fullscreen application. (e.g. D3DFMT_A2R10G10B10 format)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2915 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2916 #define DDSCAPS2_EXTENDEDFORMATPRIMARY 0x40000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2917
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2918 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2919 * Indicates that all surfaces in this creation chain is additional primary surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2920 * This flag will be set on primary surface chains which must present on the adapter
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2921 * id provided on dwCaps4. Typically this will be used to create secondary primary surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2922 * on DualView display adapter.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2923 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2924 #define DDSCAPS2_ADDITIONALPRIMARY 0x80000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2925
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2926 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2927 * This is a mask that indicates the set of bits that may be set
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2928 * at createsurface time to indicate number of samples per pixel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2929 * when multisampling
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2930 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2931 #define DDSCAPS3_MULTISAMPLE_MASK 0x0000001FL
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2932
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2933 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2934 * This is a mask that indicates the set of bits that may be set
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2935 * at createsurface time to indicate the quality level of rendering
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2936 * for the current number of samples per pixel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2937 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2938 #define DDSCAPS3_MULTISAMPLE_QUALITY_MASK 0x000000E0L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2939 #define DDSCAPS3_MULTISAMPLE_QUALITY_SHIFT 5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2940
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2941 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2942 * This bit is reserved for internal use
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2943 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2944 #define DDSCAPS3_RESERVED1 0x00000100L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2945
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2946 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2947 * This bit is reserved for internal use
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2948 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2949 #define DDSCAPS3_RESERVED2 0x00000200L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2950
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2951 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2952 * This indicates whether this surface has light-weight miplevels
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2953 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2954 #define DDSCAPS3_LIGHTWEIGHTMIPMAP 0x00000400L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2955
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2956 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2957 * This indicates that the mipsublevels for this surface are auto-generated
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2958 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2959 #define DDSCAPS3_AUTOGENMIPMAP 0x00000800L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2960
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2961 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2962 * This indicates that the mipsublevels for this surface are auto-generated
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2963 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2964 #define DDSCAPS3_DMAP 0x00001000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2965
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2966
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2967 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2968 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2969 * DIRECTDRAW DRIVER CAPABILITY FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2970 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2971 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2972
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2973 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2974 * Display hardware has 3D acceleration.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2975 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2976 #define DDCAPS_3D 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2977
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2978 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2979 * Indicates that DirectDraw will support only dest rectangles that are aligned
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2980 * on DIRECTDRAWCAPS.dwAlignBoundaryDest boundaries of the surface, respectively.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2981 * READ ONLY.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2982 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2983 #define DDCAPS_ALIGNBOUNDARYDEST 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2984
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2985 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2986 * Indicates that DirectDraw will support only source rectangles whose sizes in
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2987 * BYTEs are DIRECTDRAWCAPS.dwAlignSizeDest multiples, respectively. READ ONLY.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2988 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2989 #define DDCAPS_ALIGNSIZEDEST 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2990 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2991 * Indicates that DirectDraw will support only source rectangles that are aligned
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2992 * on DIRECTDRAWCAPS.dwAlignBoundarySrc boundaries of the surface, respectively.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2993 * READ ONLY.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2994 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2995 #define DDCAPS_ALIGNBOUNDARYSRC 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2996
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2997 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2998 * Indicates that DirectDraw will support only source rectangles whose sizes in
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2999 * BYTEs are DIRECTDRAWCAPS.dwAlignSizeSrc multiples, respectively. READ ONLY.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3000 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3001 #define DDCAPS_ALIGNSIZESRC 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3002
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3003 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3004 * Indicates that DirectDraw will create video memory surfaces that have a stride
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3005 * alignment equal to DIRECTDRAWCAPS.dwAlignStride. READ ONLY.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3006 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3007 #define DDCAPS_ALIGNSTRIDE 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3008
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3009 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3010 * Display hardware is capable of blt operations.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3011 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3012 #define DDCAPS_BLT 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3013
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3014 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3015 * Display hardware is capable of asynchronous blt operations.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3016 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3017 #define DDCAPS_BLTQUEUE 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3018
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3019 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3020 * Display hardware is capable of color space conversions during the blt operation.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3021 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3022 #define DDCAPS_BLTFOURCC 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3023
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3024 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3025 * Display hardware is capable of stretching during blt operations.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3026 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3027 #define DDCAPS_BLTSTRETCH 0x00000200l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3028
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3029 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3030 * Display hardware is shared with GDI.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3031 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3032 #define DDCAPS_GDI 0x00000400l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3033
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3034 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3035 * Display hardware can overlay.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3036 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3037 #define DDCAPS_OVERLAY 0x00000800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3038
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3039 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3040 * Set if display hardware supports overlays but can not clip them.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3041 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3042 #define DDCAPS_OVERLAYCANTCLIP 0x00001000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3043
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3044 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3045 * Indicates that overlay hardware is capable of color space conversions during
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3046 * the overlay operation.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3047 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3048 #define DDCAPS_OVERLAYFOURCC 0x00002000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3049
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3050 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3051 * Indicates that stretching can be done by the overlay hardware.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3052 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3053 #define DDCAPS_OVERLAYSTRETCH 0x00004000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3054
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3055 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3056 * Indicates that unique DirectDrawPalettes can be created for DirectDrawSurfaces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3057 * other than the primary surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3058 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3059 #define DDCAPS_PALETTE 0x00008000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3060
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3061 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3062 * Indicates that palette changes can be syncd with the veritcal refresh.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3063 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3064 #define DDCAPS_PALETTEVSYNC 0x00010000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3065
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3066 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3067 * Display hardware can return the current scan line.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3068 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3069 #define DDCAPS_READSCANLINE 0x00020000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3070
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3071
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3072 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3073 * This flag used to bo DDCAPS_STEREOVIEW, which is now obsolete
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3074 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3075 #define DDCAPS_RESERVED1 0x00040000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3076
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3077 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3078 * Display hardware is capable of generating a vertical blank interrupt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3079 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3080 #define DDCAPS_VBI 0x00080000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3081
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3082 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3083 * Supports the use of z buffers with blt operations.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3084 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3085 #define DDCAPS_ZBLTS 0x00100000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3086
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3087 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3088 * Supports Z Ordering of overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3089 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3090 #define DDCAPS_ZOVERLAYS 0x00200000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3091
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3092 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3093 * Supports color key
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3094 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3095 #define DDCAPS_COLORKEY 0x00400000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3096
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3097 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3098 * Supports alpha surfaces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3099 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3100 #define DDCAPS_ALPHA 0x00800000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3101
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3102 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3103 * colorkey is hardware assisted(DDCAPS_COLORKEY will also be set)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3104 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3105 #define DDCAPS_COLORKEYHWASSIST 0x01000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3106
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3107 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3108 * no hardware support at all
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3109 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3110 #define DDCAPS_NOHARDWARE 0x02000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3111
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3112 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3113 * Display hardware is capable of color fill with bltter
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3114 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3115 #define DDCAPS_BLTCOLORFILL 0x04000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3116
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3117 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3118 * Display hardware is bank switched, and potentially very slow at
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3119 * random access to VRAM.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3120 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3121 #define DDCAPS_BANKSWITCHED 0x08000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3122
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3123 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3124 * Display hardware is capable of depth filling Z-buffers with bltter
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3125 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3126 #define DDCAPS_BLTDEPTHFILL 0x10000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3127
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3128 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3129 * Display hardware is capable of clipping while bltting.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3130 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3131 #define DDCAPS_CANCLIP 0x20000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3132
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3133 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3134 * Display hardware is capable of clipping while stretch bltting.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3135 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3136 #define DDCAPS_CANCLIPSTRETCHED 0x40000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3137
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3138 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3139 * Display hardware is capable of bltting to or from system memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3140 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3141 #define DDCAPS_CANBLTSYSMEM 0x80000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3142
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3143
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3144 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3145 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3146 * MORE DIRECTDRAW DRIVER CAPABILITY FLAGS (dwCaps2)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3147 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3148 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3149
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3150 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3151 * Display hardware is certified
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3152 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3153 #define DDCAPS2_CERTIFIED 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3154
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3155 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3156 * Driver cannot interleave 2D operations (lock and blt) to surfaces with
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3157 * Direct3D rendering operations between calls to BeginScene() and EndScene()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3158 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3159 #define DDCAPS2_NO2DDURING3DSCENE 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3160
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3161 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3162 * Display hardware contains a video port
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3163 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3164 #define DDCAPS2_VIDEOPORT 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3165
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3166 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3167 * The overlay can be automatically flipped according to the video port
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3168 * VSYNCs, providing automatic doubled buffered display of video port
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3169 * data using an overlay
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3170 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3171 #define DDCAPS2_AUTOFLIPOVERLAY 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3172
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3173 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3174 * Overlay can display each field of interlaced data individually while
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3175 * it is interleaved in memory without causing jittery artifacts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3176 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3177 #define DDCAPS2_CANBOBINTERLEAVED 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3178
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3179 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3180 * Overlay can display each field of interlaced data individually while
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3181 * it is not interleaved in memory without causing jittery artifacts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3182 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3183 #define DDCAPS2_CANBOBNONINTERLEAVED 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3184
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3185 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3186 * The overlay surface contains color controls (brightness, sharpness, etc.)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3187 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3188 #define DDCAPS2_COLORCONTROLOVERLAY 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3189
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3190 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3191 * The primary surface contains color controls (gamma, etc.)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3192 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3193 #define DDCAPS2_COLORCONTROLPRIMARY 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3194
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3195 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3196 * RGBZ -> RGB supported for 16:16 RGB:Z
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3197 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3198 #define DDCAPS2_CANDROPZ16BIT 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3199
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3200 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3201 * Driver supports non-local video memory.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3202 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3203 #define DDCAPS2_NONLOCALVIDMEM 0x00000200l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3204
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3205 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3206 * Dirver supports non-local video memory but has different capabilities for
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3207 * non-local video memory surfaces. If this bit is set then so must
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3208 * DDCAPS2_NONLOCALVIDMEM.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3209 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3210 #define DDCAPS2_NONLOCALVIDMEMCAPS 0x00000400l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3211
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3212 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3213 * Driver neither requires nor prefers surfaces to be pagelocked when performing
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3214 * blts involving system memory surfaces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3215 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3216 #define DDCAPS2_NOPAGELOCKREQUIRED 0x00000800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3217
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3218 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3219 * Driver can create surfaces which are wider than the primary surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3220 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3221 #define DDCAPS2_WIDESURFACES 0x00001000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3222
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3223 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3224 * Driver supports bob without using a video port by handling the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3225 * DDFLIP_ODD and DDFLIP_EVEN flags specified in Flip.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3226 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3227 #define DDCAPS2_CANFLIPODDEVEN 0x00002000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3228
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3229 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3230 * Driver supports bob using hardware
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3231 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3232 #define DDCAPS2_CANBOBHARDWARE 0x00004000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3233
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3234 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3235 * Driver supports bltting any FOURCC surface to another surface of the same FOURCC
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3236 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3237 #define DDCAPS2_COPYFOURCC 0x00008000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3238
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3239
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3240 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3241 * Driver supports loadable gamma ramps for the primary surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3242 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3243 #define DDCAPS2_PRIMARYGAMMA 0x00020000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3244
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3245 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3246 * Driver can render in windowed mode.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3247 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3248 #define DDCAPS2_CANRENDERWINDOWED 0x00080000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3249
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3250 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3251 * A calibrator is available to adjust the gamma ramp according to the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3252 * physical display properties so that the result will be identical on
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3253 * all calibrated systems.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3254 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3255 #define DDCAPS2_CANCALIBRATEGAMMA 0x00100000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3256
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3257 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3258 * Indicates that the driver will respond to DDFLIP_INTERVALn flags
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3259 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3260 #define DDCAPS2_FLIPINTERVAL 0x00200000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3261
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3262 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3263 * Indicates that the driver will respond to DDFLIP_NOVSYNC
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3264 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3265 #define DDCAPS2_FLIPNOVSYNC 0x00400000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3266
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3267 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3268 * Driver supports management of video memory, if this flag is ON,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3269 * driver manages the texture if requested with DDSCAPS2_TEXTUREMANAGE on
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3270 * DirectX manages the texture if this flag is OFF and surface has DDSCAPS2_TEXTUREMANAGE on
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3271 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3272 #define DDCAPS2_CANMANAGETEXTURE 0x00800000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3273
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3274 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3275 * The Direct3D texture manager uses this cap to decide whether to put managed
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3276 * surfaces in non-local video memory. If the cap is set, the texture manager will
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3277 * put managed surfaces in non-local vidmem. Drivers that cannot texture from
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3278 * local vidmem SHOULD NOT set this cap.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3279 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3280 #define DDCAPS2_TEXMANINNONLOCALVIDMEM 0x01000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3281
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3282 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3283 * Indicates that the driver supports DX7 type of stereo in at least one mode (which may
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3284 * not necessarily be the current mode). Applications should use IDirectDraw7 (or higher)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3285 * ::EnumDisplayModes and check the DDSURFACEDESC.ddsCaps.dwCaps2 field for the presence of
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3286 * DDSCAPS2_STEREOSURFACELEFT to check if a particular mode supports stereo. The application
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3287 * can also use IDirectDraw7(or higher)::GetDisplayMode to check the current mode.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3288 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3289 #define DDCAPS2_STEREO 0x02000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3290
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3291 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3292 * This caps bit is intended for internal DirectDraw use.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3293 * -It is only valid if DDCAPS2_NONLOCALVIDMEMCAPS is set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3294 * -If this bit is set, then DDCAPS_CANBLTSYSMEM MUST be set by the driver (and
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3295 * all the assoicated system memory blt caps must be correct).
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3296 * -It implies that the system->video blt caps in DDCAPS also apply to system to
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3297 * nonlocal blts. I.e. the dwSVBCaps, dwSVBCKeyCaps, dwSVBFXCaps and dwSVBRops
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3298 * members of DDCAPS (DDCORECAPS) are filled in correctly.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3299 * -Any blt from system to nonlocal memory that matches these caps bits will
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3300 * be passed to the driver.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3301 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3302 * NOTE: This is intended to enable the driver itself to do efficient reordering
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3303 * of textures. This is NOT meant to imply that hardware can write into AGP memory.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3304 * This operation is not currently supported.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3305 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3306 #define DDCAPS2_SYSTONONLOCAL_AS_SYSTOLOCAL 0x04000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3307
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3308 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3309 * was DDCAPS2_PUREHAL
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3310 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3311 #define DDCAPS2_RESERVED1 0x08000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3312
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3313 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3314 * Driver supports management of video memory, if this flag is ON,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3315 * driver manages the resource if requested with DDSCAPS2_TEXTUREMANAGE on
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3316 * DirectX manages the resource if this flag is OFF and surface has DDSCAPS2_TEXTUREMANAGE on
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3317 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3318 #define DDCAPS2_CANMANAGERESOURCE 0x10000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3319
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3320 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3321 * Driver supports dynamic textures. This will allow the application to set
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3322 * D3DUSAGE_DYNAMIC (DDSCAPS2_HINTDYNAMIC for drivers) at texture create time.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3323 * Video memory dynamic textures WILL be lockable by applications. It is
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3324 * expected that these locks will be very efficient (which implies that the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3325 * driver should always maintain a linear copy, a pointer to which can be
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3326 * quickly handed out to the application).
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3327 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3328 #define DDCAPS2_DYNAMICTEXTURES 0x20000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3329
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3330 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3331 * Driver supports auto-generation of mipmaps.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3332 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3333 #define DDCAPS2_CANAUTOGENMIPMAP 0x40000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3334
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3335
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3336 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3337 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3338 * DIRECTDRAW FX ALPHA CAPABILITY FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3339 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3340 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3341
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3342 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3343 * Supports alpha blending around the edge of a source color keyed surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3344 * For Blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3345 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3346 #define DDFXALPHACAPS_BLTALPHAEDGEBLEND 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3347
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3348 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3349 * Supports alpha information in the pixel format. The bit depth of alpha
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3350 * information in the pixel format can be 1,2,4, or 8. The alpha value becomes
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3351 * more opaque as the alpha value increases. (0 is transparent.)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3352 * For Blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3353 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3354 #define DDFXALPHACAPS_BLTALPHAPIXELS 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3355
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3356 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3357 * Supports alpha information in the pixel format. The bit depth of alpha
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3358 * information in the pixel format can be 1,2,4, or 8. The alpha value
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3359 * becomes more transparent as the alpha value increases. (0 is opaque.)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3360 * This flag can only be set if DDCAPS_ALPHA is set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3361 * For Blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3362 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3363 #define DDFXALPHACAPS_BLTALPHAPIXELSNEG 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3364
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3365 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3366 * Supports alpha only surfaces. The bit depth of an alpha only surface can be
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3367 * 1,2,4, or 8. The alpha value becomes more opaque as the alpha value increases.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3368 * (0 is transparent.)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3369 * For Blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3370 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3371 #define DDFXALPHACAPS_BLTALPHASURFACES 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3372
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3373 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3374 * The depth of the alpha channel data can range can be 1,2,4, or 8.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3375 * The NEG suffix indicates that this alpha channel becomes more transparent
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3376 * as the alpha value increases. (0 is opaque.) This flag can only be set if
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3377 * DDCAPS_ALPHA is set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3378 * For Blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3379 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3380 #define DDFXALPHACAPS_BLTALPHASURFACESNEG 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3381
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3382 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3383 * Supports alpha blending around the edge of a source color keyed surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3384 * For Overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3385 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3386 #define DDFXALPHACAPS_OVERLAYALPHAEDGEBLEND 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3387
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3388 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3389 * Supports alpha information in the pixel format. The bit depth of alpha
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3390 * information in the pixel format can be 1,2,4, or 8. The alpha value becomes
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3391 * more opaque as the alpha value increases. (0 is transparent.)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3392 * For Overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3393 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3394 #define DDFXALPHACAPS_OVERLAYALPHAPIXELS 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3395
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3396 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3397 * Supports alpha information in the pixel format. The bit depth of alpha
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3398 * information in the pixel format can be 1,2,4, or 8. The alpha value
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3399 * becomes more transparent as the alpha value increases. (0 is opaque.)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3400 * This flag can only be set if DDCAPS_ALPHA is set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3401 * For Overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3402 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3403 #define DDFXALPHACAPS_OVERLAYALPHAPIXELSNEG 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3404
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3405 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3406 * Supports alpha only surfaces. The bit depth of an alpha only surface can be
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3407 * 1,2,4, or 8. The alpha value becomes more opaque as the alpha value increases.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3408 * (0 is transparent.)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3409 * For Overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3410 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3411 #define DDFXALPHACAPS_OVERLAYALPHASURFACES 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3412
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3413 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3414 * The depth of the alpha channel data can range can be 1,2,4, or 8.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3415 * The NEG suffix indicates that this alpha channel becomes more transparent
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3416 * as the alpha value increases. (0 is opaque.) This flag can only be set if
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3417 * DDCAPS_ALPHA is set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3418 * For Overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3419 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3420 #define DDFXALPHACAPS_OVERLAYALPHASURFACESNEG 0x00000200l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3421
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3422 #if DIRECTDRAW_VERSION < 0x0600
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3423 #endif //DIRECTDRAW_VERSION
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3424
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3425
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3426 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3427 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3428 * DIRECTDRAW FX CAPABILITY FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3429 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3430 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3431
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3432 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3433 * Uses arithmetic operations to stretch and shrink surfaces during blt
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3434 * rather than pixel doubling techniques. Along the Y axis.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3435 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3436 #define DDFXCAPS_BLTARITHSTRETCHY 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3437
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3438 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3439 * Uses arithmetic operations to stretch during blt
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3440 * rather than pixel doubling techniques. Along the Y axis. Only
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3441 * works for x1, x2, etc.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3442 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3443 #define DDFXCAPS_BLTARITHSTRETCHYN 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3444
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3445 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3446 * Supports mirroring left to right in blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3447 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3448 #define DDFXCAPS_BLTMIRRORLEFTRIGHT 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3449
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3450 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3451 * Supports mirroring top to bottom in blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3452 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3453 #define DDFXCAPS_BLTMIRRORUPDOWN 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3454
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3455 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3456 * Supports arbitrary rotation for blts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3457 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3458 #define DDFXCAPS_BLTROTATION 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3459
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3460 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3461 * Supports 90 degree rotations for blts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3462 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3463 #define DDFXCAPS_BLTROTATION90 0x00000200l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3464
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3465 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3466 * DirectDraw supports arbitrary shrinking of a surface along the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3467 * x axis (horizontal direction) for blts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3468 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3469 #define DDFXCAPS_BLTSHRINKX 0x00000400l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3470
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3471 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3472 * DirectDraw supports integer shrinking (1x,2x,) of a surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3473 * along the x axis (horizontal direction) for blts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3474 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3475 #define DDFXCAPS_BLTSHRINKXN 0x00000800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3476
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3477 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3478 * DirectDraw supports arbitrary shrinking of a surface along the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3479 * y axis (horizontal direction) for blts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3480 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3481 #define DDFXCAPS_BLTSHRINKY 0x00001000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3482
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3483 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3484 * DirectDraw supports integer shrinking (1x,2x,) of a surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3485 * along the y axis (vertical direction) for blts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3486 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3487 #define DDFXCAPS_BLTSHRINKYN 0x00002000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3488
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3489 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3490 * DirectDraw supports arbitrary stretching of a surface along the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3491 * x axis (horizontal direction) for blts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3492 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3493 #define DDFXCAPS_BLTSTRETCHX 0x00004000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3494
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3495 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3496 * DirectDraw supports integer stretching (1x,2x,) of a surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3497 * along the x axis (horizontal direction) for blts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3498 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3499 #define DDFXCAPS_BLTSTRETCHXN 0x00008000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3500
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3501 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3502 * DirectDraw supports arbitrary stretching of a surface along the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3503 * y axis (horizontal direction) for blts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3504 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3505 #define DDFXCAPS_BLTSTRETCHY 0x00010000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3506
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3507 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3508 * DirectDraw supports integer stretching (1x,2x,) of a surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3509 * along the y axis (vertical direction) for blts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3510 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3511 #define DDFXCAPS_BLTSTRETCHYN 0x00020000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3512
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3513 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3514 * Uses arithmetic operations to stretch and shrink surfaces during
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3515 * overlay rather than pixel doubling techniques. Along the Y axis
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3516 * for overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3517 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3518 #define DDFXCAPS_OVERLAYARITHSTRETCHY 0x00040000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3519
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3520 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3521 * Uses arithmetic operations to stretch surfaces during
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3522 * overlay rather than pixel doubling techniques. Along the Y axis
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3523 * for overlays. Only works for x1, x2, etc.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3524 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3525 #define DDFXCAPS_OVERLAYARITHSTRETCHYN 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3526
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3527 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3528 * DirectDraw supports arbitrary shrinking of a surface along the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3529 * x axis (horizontal direction) for overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3530 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3531 #define DDFXCAPS_OVERLAYSHRINKX 0x00080000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3532
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3533 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3534 * DirectDraw supports integer shrinking (1x,2x,) of a surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3535 * along the x axis (horizontal direction) for overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3536 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3537 #define DDFXCAPS_OVERLAYSHRINKXN 0x00100000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3538
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3539 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3540 * DirectDraw supports arbitrary shrinking of a surface along the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3541 * y axis (horizontal direction) for overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3542 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3543 #define DDFXCAPS_OVERLAYSHRINKY 0x00200000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3544
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3545 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3546 * DirectDraw supports integer shrinking (1x,2x,) of a surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3547 * along the y axis (vertical direction) for overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3548 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3549 #define DDFXCAPS_OVERLAYSHRINKYN 0x00400000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3550
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3551 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3552 * DirectDraw supports arbitrary stretching of a surface along the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3553 * x axis (horizontal direction) for overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3554 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3555 #define DDFXCAPS_OVERLAYSTRETCHX 0x00800000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3556
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3557 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3558 * DirectDraw supports integer stretching (1x,2x,) of a surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3559 * along the x axis (horizontal direction) for overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3560 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3561 #define DDFXCAPS_OVERLAYSTRETCHXN 0x01000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3562
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3563 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3564 * DirectDraw supports arbitrary stretching of a surface along the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3565 * y axis (horizontal direction) for overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3566 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3567 #define DDFXCAPS_OVERLAYSTRETCHY 0x02000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3568
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3569 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3570 * DirectDraw supports integer stretching (1x,2x,) of a surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3571 * along the y axis (vertical direction) for overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3572 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3573 #define DDFXCAPS_OVERLAYSTRETCHYN 0x04000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3574
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3575 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3576 * DirectDraw supports mirroring of overlays across the vertical axis
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3577 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3578 #define DDFXCAPS_OVERLAYMIRRORLEFTRIGHT 0x08000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3579
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3580 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3581 * DirectDraw supports mirroring of overlays across the horizontal axis
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3582 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3583 #define DDFXCAPS_OVERLAYMIRRORUPDOWN 0x10000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3584
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3585 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3586 * DirectDraw supports deinterlacing of overlay surfaces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3587 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3588 #define DDFXCAPS_OVERLAYDEINTERLACE 0x20000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3589
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3590 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3591 * Driver can do alpha blending for blits.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3592 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3593 #define DDFXCAPS_BLTALPHA 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3594
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3595
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3596 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3597 * Driver can do surface-reconstruction filtering for warped blits.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3598 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3599 #define DDFXCAPS_BLTFILTER DDFXCAPS_BLTARITHSTRETCHY
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3600
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3601 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3602 * Driver can do alpha blending for overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3603 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3604 #define DDFXCAPS_OVERLAYALPHA 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3605
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3606
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3607 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3608 * Driver can do surface-reconstruction filtering for warped overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3609 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3610 #define DDFXCAPS_OVERLAYFILTER DDFXCAPS_OVERLAYARITHSTRETCHY
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3611
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3612 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3613 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3614 * DIRECTDRAW STEREO VIEW CAPABILITIES
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3615 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3616 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3617
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3618 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3619 * This flag used to be DDSVCAPS_ENIGMA, which is now obsolete
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3620 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3621
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3622 #define DDSVCAPS_RESERVED1 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3623
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3624 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3625 * This flag used to be DDSVCAPS_FLICKER, which is now obsolete
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3626 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3627 #define DDSVCAPS_RESERVED2 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3628
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3629 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3630 * This flag used to be DDSVCAPS_REDBLUE, which is now obsolete
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3631 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3632 #define DDSVCAPS_RESERVED3 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3633
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3634 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3635 * This flag used to be DDSVCAPS_SPLIT, which is now obsolete
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3636 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3637 #define DDSVCAPS_RESERVED4 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3638
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3639 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3640 * The stereo view is accomplished with switching technology
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3641 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3642
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3643 #define DDSVCAPS_STEREOSEQUENTIAL 0x00000010L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3644
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3645
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3646
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3647 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3648 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3649 * DIRECTDRAWPALETTE CAPABILITIES
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3650 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3651 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3652
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3653 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3654 * Index is 4 bits. There are sixteen color entries in the palette table.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3655 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3656 #define DDPCAPS_4BIT 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3657
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3658 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3659 * Index is onto a 8 bit color index. This field is only valid with the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3660 * DDPCAPS_1BIT, DDPCAPS_2BIT or DDPCAPS_4BIT capability and the target
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3661 * surface is in 8bpp. Each color entry is one byte long and is an index
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3662 * into destination surface's 8bpp palette.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3663 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3664 #define DDPCAPS_8BITENTRIES 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3665
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3666 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3667 * Index is 8 bits. There are 256 color entries in the palette table.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3668 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3669 #define DDPCAPS_8BIT 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3670
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3671 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3672 * Indicates that this DIRECTDRAWPALETTE should use the palette color array
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3673 * passed into the lpDDColorArray parameter to initialize the DIRECTDRAWPALETTE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3674 * object.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3675 * This flag is obsolete. DirectDraw always initializes the color array from
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3676 * the lpDDColorArray parameter. The definition remains for source-level
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3677 * compatibility.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3678 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3679 #define DDPCAPS_INITIALIZE 0x00000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3680
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3681 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3682 * This palette is the one attached to the primary surface. Changing this
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3683 * table has immediate effect on the display unless DDPSETPAL_VSYNC is specified
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3684 * and supported.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3685 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3686 #define DDPCAPS_PRIMARYSURFACE 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3687
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3688 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3689 * This palette is the one attached to the primary surface left. Changing
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3690 * this table has immediate effect on the display for the left eye unless
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3691 * DDPSETPAL_VSYNC is specified and supported.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3692 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3693 #define DDPCAPS_PRIMARYSURFACELEFT 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3694
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3695 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3696 * This palette can have all 256 entries defined
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3697 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3698 #define DDPCAPS_ALLOW256 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3699
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3700 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3701 * This palette can have modifications to it synced with the monitors
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3702 * refresh rate.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3703 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3704 #define DDPCAPS_VSYNC 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3705
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3706 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3707 * Index is 1 bit. There are two color entries in the palette table.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3708 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3709 #define DDPCAPS_1BIT 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3710
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3711 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3712 * Index is 2 bit. There are four color entries in the palette table.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3713 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3714 #define DDPCAPS_2BIT 0x00000200l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3715
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3716 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3717 * The peFlags member of PALETTEENTRY denotes an 8 bit alpha value
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3718 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3719 #define DDPCAPS_ALPHA 0x00000400l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3720
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3721
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3722 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3723 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3724 * DIRECTDRAWPALETTE SETENTRY CONSTANTS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3725 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3726 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3727
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3728
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3729 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3730 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3731 * DIRECTDRAWPALETTE GETENTRY CONSTANTS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3732 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3733 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3734
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3735 /* 0 is the only legal value */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3736
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3737 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3738 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3739 * DIRECTDRAWSURFACE SETPRIVATEDATA CONSTANTS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3740 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3741 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3742
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3743 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3744 * The passed pointer is an IUnknown ptr. The cbData argument to SetPrivateData
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3745 * must be set to sizeof(IUnknown*). DirectDraw will call AddRef through this
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3746 * pointer and Release when the private data is destroyed. This includes when
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3747 * the surface or palette is destroyed before such priovate data is destroyed.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3748 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3749 #define DDSPD_IUNKNOWNPOINTER 0x00000001L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3750
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3751 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3752 * Private data is only valid for the current state of the object,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3753 * as determined by the uniqueness value.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3754 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3755 #define DDSPD_VOLATILE 0x00000002L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3756
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3757
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3758 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3759 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3760 * DIRECTDRAWSURFACE SETPALETTE CONSTANTS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3761 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3762 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3763
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3764
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3765 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3766 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3767 * DIRECTDRAW BITDEPTH CONSTANTS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3768 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3769 * NOTE: These are only used to indicate supported bit depths. These
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3770 * are flags only, they are not to be used as an actual bit depth. The
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3771 * absolute numbers 1, 2, 4, 8, 16, 24 and 32 are used to indicate actual
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3772 * bit depths in a surface or for changing the display mode.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3773 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3774 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3775
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3776 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3777 * 1 bit per pixel.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3778 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3779 #define DDBD_1 0x00004000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3780
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3781 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3782 * 2 bits per pixel.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3783 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3784 #define DDBD_2 0x00002000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3785
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3786 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3787 * 4 bits per pixel.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3788 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3789 #define DDBD_4 0x00001000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3790
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3791 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3792 * 8 bits per pixel.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3793 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3794 #define DDBD_8 0x00000800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3795
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3796 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3797 * 16 bits per pixel.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3798 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3799 #define DDBD_16 0x00000400l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3800
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3801 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3802 * 24 bits per pixel.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3803 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3804 #define DDBD_24 0X00000200l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3805
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3806 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3807 * 32 bits per pixel.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3808 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3809 #define DDBD_32 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3810
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3811 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3812 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3813 * DIRECTDRAWSURFACE SET/GET COLOR KEY FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3814 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3815 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3816
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3817 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3818 * Set if the structure contains a color space. Not set if the structure
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3819 * contains a single color key.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3820 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3821 #define DDCKEY_COLORSPACE 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3822
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3823 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3824 * Set if the structure specifies a color key or color space which is to be
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3825 * used as a destination color key for blt operations.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3826 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3827 #define DDCKEY_DESTBLT 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3828
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3829 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3830 * Set if the structure specifies a color key or color space which is to be
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3831 * used as a destination color key for overlay operations.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3832 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3833 #define DDCKEY_DESTOVERLAY 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3834
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3835 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3836 * Set if the structure specifies a color key or color space which is to be
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3837 * used as a source color key for blt operations.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3838 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3839 #define DDCKEY_SRCBLT 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3840
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3841 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3842 * Set if the structure specifies a color key or color space which is to be
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3843 * used as a source color key for overlay operations.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3844 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3845 #define DDCKEY_SRCOVERLAY 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3846
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3847
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3848 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3849 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3850 * DIRECTDRAW COLOR KEY CAPABILITY FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3851 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3852 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3853
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3854 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3855 * Supports transparent blting using a color key to identify the replaceable
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3856 * bits of the destination surface for RGB colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3857 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3858 #define DDCKEYCAPS_DESTBLT 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3859
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3860 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3861 * Supports transparent blting using a color space to identify the replaceable
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3862 * bits of the destination surface for RGB colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3863 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3864 #define DDCKEYCAPS_DESTBLTCLRSPACE 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3865
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3866 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3867 * Supports transparent blting using a color space to identify the replaceable
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3868 * bits of the destination surface for YUV colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3869 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3870 #define DDCKEYCAPS_DESTBLTCLRSPACEYUV 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3871
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3872 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3873 * Supports transparent blting using a color key to identify the replaceable
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3874 * bits of the destination surface for YUV colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3875 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3876 #define DDCKEYCAPS_DESTBLTYUV 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3877
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3878 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3879 * Supports overlaying using colorkeying of the replaceable bits of the surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3880 * being overlayed for RGB colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3881 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3882 #define DDCKEYCAPS_DESTOVERLAY 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3883
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3884 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3885 * Supports a color space as the color key for the destination for RGB colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3886 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3887 #define DDCKEYCAPS_DESTOVERLAYCLRSPACE 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3888
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3889 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3890 * Supports a color space as the color key for the destination for YUV colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3891 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3892 #define DDCKEYCAPS_DESTOVERLAYCLRSPACEYUV 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3893
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3894 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3895 * Supports only one active destination color key value for visible overlay
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3896 * surfaces.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3897 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3898 #define DDCKEYCAPS_DESTOVERLAYONEACTIVE 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3899
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3900 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3901 * Supports overlaying using colorkeying of the replaceable bits of the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3902 * surface being overlayed for YUV colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3903 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3904 #define DDCKEYCAPS_DESTOVERLAYYUV 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3905
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3906 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3907 * Supports transparent blting using the color key for the source with
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3908 * this surface for RGB colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3909 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3910 #define DDCKEYCAPS_SRCBLT 0x00000200l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3911
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3912 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3913 * Supports transparent blting using a color space for the source with
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3914 * this surface for RGB colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3915 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3916 #define DDCKEYCAPS_SRCBLTCLRSPACE 0x00000400l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3917
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3918 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3919 * Supports transparent blting using a color space for the source with
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3920 * this surface for YUV colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3921 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3922 #define DDCKEYCAPS_SRCBLTCLRSPACEYUV 0x00000800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3923
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3924 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3925 * Supports transparent blting using the color key for the source with
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3926 * this surface for YUV colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3927 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3928 #define DDCKEYCAPS_SRCBLTYUV 0x00001000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3929
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3930 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3931 * Supports overlays using the color key for the source with this
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3932 * overlay surface for RGB colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3933 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3934 #define DDCKEYCAPS_SRCOVERLAY 0x00002000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3935
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3936 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3937 * Supports overlays using a color space as the source color key for
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3938 * the overlay surface for RGB colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3939 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3940 #define DDCKEYCAPS_SRCOVERLAYCLRSPACE 0x00004000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3941
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3942 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3943 * Supports overlays using a color space as the source color key for
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3944 * the overlay surface for YUV colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3945 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3946 #define DDCKEYCAPS_SRCOVERLAYCLRSPACEYUV 0x00008000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3947
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3948 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3949 * Supports only one active source color key value for visible
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3950 * overlay surfaces.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3951 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3952 #define DDCKEYCAPS_SRCOVERLAYONEACTIVE 0x00010000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3953
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3954 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3955 * Supports overlays using the color key for the source with this
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3956 * overlay surface for YUV colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3957 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3958 #define DDCKEYCAPS_SRCOVERLAYYUV 0x00020000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3959
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3960 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3961 * there are no bandwidth trade-offs for using colorkey with an overlay
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3962 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3963 #define DDCKEYCAPS_NOCOSTOVERLAY 0x00040000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3964
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3965
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3966 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3967 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3968 * DIRECTDRAW PIXELFORMAT FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3969 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3970 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3971
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3972 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3973 * The surface has alpha channel information in the pixel format.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3974 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3975 #define DDPF_ALPHAPIXELS 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3976
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3977 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3978 * The pixel format contains alpha only information
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3979 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3980 #define DDPF_ALPHA 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3981
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3982 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3983 * The FourCC code is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3984 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3985 #define DDPF_FOURCC 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3986
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3987 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3988 * The surface is 4-bit color indexed.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3989 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3990 #define DDPF_PALETTEINDEXED4 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3991
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3992 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3993 * The surface is indexed into a palette which stores indices
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3994 * into the destination surface's 8-bit palette.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3995 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3996 #define DDPF_PALETTEINDEXEDTO8 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3997
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3998 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3999 * The surface is 8-bit color indexed.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4000 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4001 #define DDPF_PALETTEINDEXED8 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4002
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4003 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4004 * The RGB data in the pixel format structure is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4005 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4006 #define DDPF_RGB 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4007
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4008 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4009 * The surface will accept pixel data in the format specified
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4010 * and compress it during the write.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4011 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4012 #define DDPF_COMPRESSED 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4013
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4014 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4015 * The surface will accept RGB data and translate it during
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4016 * the write to YUV data. The format of the data to be written
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4017 * will be contained in the pixel format structure. The DDPF_RGB
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4018 * flag will be set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4019 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4020 #define DDPF_RGBTOYUV 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4021
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4022 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4023 * pixel format is YUV - YUV data in pixel format struct is valid
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4024 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4025 #define DDPF_YUV 0x00000200l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4026
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4027 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4028 * pixel format is a z buffer only surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4029 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4030 #define DDPF_ZBUFFER 0x00000400l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4031
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4032 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4033 * The surface is 1-bit color indexed.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4034 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4035 #define DDPF_PALETTEINDEXED1 0x00000800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4036
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4037 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4038 * The surface is 2-bit color indexed.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4039 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4040 #define DDPF_PALETTEINDEXED2 0x00001000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4041
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4042 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4043 * The surface contains Z information in the pixels
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4044 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4045 #define DDPF_ZPIXELS 0x00002000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4046
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4047 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4048 * The surface contains stencil information along with Z
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4049 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4050 #define DDPF_STENCILBUFFER 0x00004000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4051
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4052 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4053 * Premultiplied alpha format -- the color components have been
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4054 * premultiplied by the alpha component.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4055 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4056 #define DDPF_ALPHAPREMULT 0x00008000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4057
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4058
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4059 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4060 * Luminance data in the pixel format is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4061 * Use this flag for luminance-only or luminance+alpha surfaces,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4062 * the bit depth is then ddpf.dwLuminanceBitCount.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4063 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4064 #define DDPF_LUMINANCE 0x00020000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4065
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4066 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4067 * Luminance data in the pixel format is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4068 * Use this flag when hanging luminance off bumpmap surfaces,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4069 * the bit mask for the luminance portion of the pixel is then
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4070 * ddpf.dwBumpLuminanceBitMask
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4071 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4072 #define DDPF_BUMPLUMINANCE 0x00040000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4073
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4074 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4075 * Bump map dUdV data in the pixel format is valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4076 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4077 #define DDPF_BUMPDUDV 0x00080000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4078
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4079
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4080 /*===========================================================================
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4081 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4082 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4083 * DIRECTDRAW CALLBACK FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4084 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4085 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4086 *==========================================================================*/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4087
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4088 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4089 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4090 * DIRECTDRAW ENUMSURFACES FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4091 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4092 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4093
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4094 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4095 * Enumerate all of the surfaces that meet the search criterion.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4096 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4097 #define DDENUMSURFACES_ALL 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4098
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4099 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4100 * A search hit is a surface that matches the surface description.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4101 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4102 #define DDENUMSURFACES_MATCH 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4103
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4104 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4105 * A search hit is a surface that does not match the surface description.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4106 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4107 #define DDENUMSURFACES_NOMATCH 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4108
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4109 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4110 * Enumerate the first surface that can be created which meets the search criterion.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4111 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4112 #define DDENUMSURFACES_CANBECREATED 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4113
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4114 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4115 * Enumerate the surfaces that already exist that meet the search criterion.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4116 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4117 #define DDENUMSURFACES_DOESEXIST 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4118
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4119
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4120 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4121 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4122 * DIRECTDRAW SETDISPLAYMODE FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4123 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4124 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4125
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4126 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4127 * The desired mode is a standard VGA mode
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4128 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4129 #define DDSDM_STANDARDVGAMODE 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4130
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4131
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4132 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4133 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4134 * DIRECTDRAW ENUMDISPLAYMODES FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4135 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4136 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4137
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4138 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4139 * Enumerate Modes with different refresh rates. EnumDisplayModes guarantees
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4140 * that a particular mode will be enumerated only once. This flag specifies whether
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4141 * the refresh rate is taken into account when determining if a mode is unique.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4142 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4143 #define DDEDM_REFRESHRATES 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4144
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4145 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4146 * Enumerate VGA modes. Specify this flag if you wish to enumerate supported VGA
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4147 * modes such as mode 0x13 in addition to the usual ModeX modes (which are always
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4148 * enumerated if the application has previously called SetCooperativeLevel with the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4149 * DDSCL_ALLOWMODEX flag set).
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4150 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4151 #define DDEDM_STANDARDVGAMODES 0x00000002L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4152
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4153
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4154 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4155 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4156 * DIRECTDRAW SETCOOPERATIVELEVEL FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4157 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4158 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4159
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4160 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4161 * Exclusive mode owner will be responsible for the entire primary surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4162 * GDI can be ignored. used with DD
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4163 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4164 #define DDSCL_FULLSCREEN 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4165
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4166 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4167 * allow CTRL_ALT_DEL to work while in fullscreen exclusive mode
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4168 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4169 #define DDSCL_ALLOWREBOOT 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4170
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4171 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4172 * prevents DDRAW from modifying the application window.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4173 * prevents DDRAW from minimize/restore the application window on activation.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4174 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4175 #define DDSCL_NOWINDOWCHANGES 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4176
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4177 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4178 * app wants to work as a regular Windows application
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4179 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4180 #define DDSCL_NORMAL 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4181
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4182 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4183 * app wants exclusive access
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4184 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4185 #define DDSCL_EXCLUSIVE 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4186
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4187
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4188 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4189 * app can deal with non-windows display modes
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4190 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4191 #define DDSCL_ALLOWMODEX 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4192
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4193 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4194 * this window will receive the focus messages
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4195 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4196 #define DDSCL_SETFOCUSWINDOW 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4197
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4198 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4199 * this window is associated with the DDRAW object and will
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4200 * cover the screen in fullscreen mode
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4201 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4202 #define DDSCL_SETDEVICEWINDOW 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4203
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4204 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4205 * app wants DDRAW to create a window to be associated with the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4206 * DDRAW object
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4207 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4208 #define DDSCL_CREATEDEVICEWINDOW 0x00000200l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4209
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4210 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4211 * App explicitly asks DDRAW/D3D to be multithread safe. This makes D3D
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4212 * take the global crtisec more frequently.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4213 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4214 #define DDSCL_MULTITHREADED 0x00000400l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4215
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4216 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4217 * App specifies that it would like to keep the FPU set up for optimal Direct3D
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4218 * performance (single precision and exceptions disabled) so Direct3D
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4219 * does not need to explicitly set the FPU each time. This is assumed by
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4220 * default in DirectX 7. See also DDSCL_FPUPRESERVE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4221 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4222 #define DDSCL_FPUSETUP 0x00000800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4223
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4224 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4225 * App specifies that it needs either double precision FPU or FPU exceptions
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4226 * enabled. This makes Direct3D explicitly set the FPU state eah time it is
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4227 * called. Setting the flag will reduce Direct3D performance. The flag is
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4228 * assumed by default in DirectX 6 and earlier. See also DDSCL_FPUSETUP
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4229 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4230 #define DDSCL_FPUPRESERVE 0x00001000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4231
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4232
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4233 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4234 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4235 * DIRECTDRAW BLT FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4236 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4237 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4238
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4239 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4240 * Use the alpha information in the pixel format or the alpha channel surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4241 * attached to the destination surface as the alpha channel for this blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4242 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4243 #define DDBLT_ALPHADEST 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4244
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4245 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4246 * Use the dwConstAlphaDest field in the DDBLTFX structure as the alpha channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4247 * for the destination surface for this blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4248 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4249 #define DDBLT_ALPHADESTCONSTOVERRIDE 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4250
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4251 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4252 * The NEG suffix indicates that the destination surface becomes more
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4253 * transparent as the alpha value increases. (0 is opaque)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4254 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4255 #define DDBLT_ALPHADESTNEG 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4256
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4257 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4258 * Use the lpDDSAlphaDest field in the DDBLTFX structure as the alpha
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4259 * channel for the destination for this blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4260 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4261 #define DDBLT_ALPHADESTSURFACEOVERRIDE 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4262
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4263 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4264 * Use the dwAlphaEdgeBlend field in the DDBLTFX structure as the alpha channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4265 * for the edges of the image that border the color key colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4266 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4267 #define DDBLT_ALPHAEDGEBLEND 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4268
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4269 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4270 * Use the alpha information in the pixel format or the alpha channel surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4271 * attached to the source surface as the alpha channel for this blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4272 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4273 #define DDBLT_ALPHASRC 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4274
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4275 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4276 * Use the dwConstAlphaSrc field in the DDBLTFX structure as the alpha channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4277 * for the source for this blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4278 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4279 #define DDBLT_ALPHASRCCONSTOVERRIDE 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4280
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4281 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4282 * The NEG suffix indicates that the source surface becomes more transparent
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4283 * as the alpha value increases. (0 is opaque)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4284 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4285 #define DDBLT_ALPHASRCNEG 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4286
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4287 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4288 * Use the lpDDSAlphaSrc field in the DDBLTFX structure as the alpha channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4289 * for the source for this blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4290 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4291 #define DDBLT_ALPHASRCSURFACEOVERRIDE 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4292
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4293 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4294 * Do this blt asynchronously through the FIFO in the order received. If
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4295 * there is no room in the hardware FIFO fail the call.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4296 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4297 #define DDBLT_ASYNC 0x00000200l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4298
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4299 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4300 * Uses the dwFillColor field in the DDBLTFX structure as the RGB color
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4301 * to fill the destination rectangle on the destination surface with.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4302 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4303 #define DDBLT_COLORFILL 0x00000400l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4304
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4305 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4306 * Uses the dwDDFX field in the DDBLTFX structure to specify the effects
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4307 * to use for the blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4308 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4309 #define DDBLT_DDFX 0x00000800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4310
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4311 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4312 * Uses the dwDDROPS field in the DDBLTFX structure to specify the ROPS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4313 * that are not part of the Win32 API.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4314 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4315 #define DDBLT_DDROPS 0x00001000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4316
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4317 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4318 * Use the color key associated with the destination surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4319 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4320 #define DDBLT_KEYDEST 0x00002000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4321
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4322 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4323 * Use the dckDestColorkey field in the DDBLTFX structure as the color key
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4324 * for the destination surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4325 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4326 #define DDBLT_KEYDESTOVERRIDE 0x00004000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4327
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4328 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4329 * Use the color key associated with the source surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4330 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4331 #define DDBLT_KEYSRC 0x00008000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4332
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4333 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4334 * Use the dckSrcColorkey field in the DDBLTFX structure as the color key
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4335 * for the source surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4336 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4337 #define DDBLT_KEYSRCOVERRIDE 0x00010000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4338
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4339 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4340 * Use the dwROP field in the DDBLTFX structure for the raster operation
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4341 * for this blt. These ROPs are the same as the ones defined in the Win32 API.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4342 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4343 #define DDBLT_ROP 0x00020000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4344
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4345 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4346 * Use the dwRotationAngle field in the DDBLTFX structure as the angle
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4347 * (specified in 1/100th of a degree) to rotate the surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4348 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4349 #define DDBLT_ROTATIONANGLE 0x00040000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4350
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4351 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4352 * Z-buffered blt using the z-buffers attached to the source and destination
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4353 * surfaces and the dwZBufferOpCode field in the DDBLTFX structure as the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4354 * z-buffer opcode.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4355 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4356 #define DDBLT_ZBUFFER 0x00080000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4357
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4358 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4359 * Z-buffered blt using the dwConstDest Zfield and the dwZBufferOpCode field
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4360 * in the DDBLTFX structure as the z-buffer and z-buffer opcode respectively
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4361 * for the destination.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4362 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4363 #define DDBLT_ZBUFFERDESTCONSTOVERRIDE 0x00100000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4364
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4365 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4366 * Z-buffered blt using the lpDDSDestZBuffer field and the dwZBufferOpCode
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4367 * field in the DDBLTFX structure as the z-buffer and z-buffer opcode
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4368 * respectively for the destination.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4369 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4370 #define DDBLT_ZBUFFERDESTOVERRIDE 0x00200000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4371
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4372 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4373 * Z-buffered blt using the dwConstSrcZ field and the dwZBufferOpCode field
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4374 * in the DDBLTFX structure as the z-buffer and z-buffer opcode respectively
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4375 * for the source.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4376 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4377 #define DDBLT_ZBUFFERSRCCONSTOVERRIDE 0x00400000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4378
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4379 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4380 * Z-buffered blt using the lpDDSSrcZBuffer field and the dwZBufferOpCode
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4381 * field in the DDBLTFX structure as the z-buffer and z-buffer opcode
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4382 * respectively for the source.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4383 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4384 #define DDBLT_ZBUFFERSRCOVERRIDE 0x00800000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4385
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4386 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4387 * wait until the device is ready to handle the blt
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4388 * this will cause blt to not return DDERR_WASSTILLDRAWING
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4389 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4390 #define DDBLT_WAIT 0x01000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4391
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4392 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4393 * Uses the dwFillDepth field in the DDBLTFX structure as the depth value
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4394 * to fill the destination rectangle on the destination Z-buffer surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4395 * with.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4396 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4397 #define DDBLT_DEPTHFILL 0x02000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4398
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4399
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4400 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4401 * Return immediately (with DDERR_WASSTILLDRAWING) if the device is not
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4402 * ready to schedule the blt at the time Blt() is called.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4403 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4404 #define DDBLT_DONOTWAIT 0x08000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4405
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4406 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4407 * These flags indicate a presentation blt (i.e. a blt
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4408 * that moves surface contents from an offscreen back buffer to the primary
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4409 * surface). The driver is not allowed to "queue" more than three such blts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4410 * The "end" of the presentation blt is indicated, since the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4411 * blt may be clipped, in which case the runtime will call the driver with
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4412 * several blts. All blts (even if not clipped) are tagged with DDBLT_PRESENTATION
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4413 * and the last (even if not clipped) additionally with DDBLT_LAST_PRESENTATION.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4414 * Thus the true rule is that the driver must not schedule a DDBLT_PRESENTATION
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4415 * blt if there are 3 or more DDBLT_PRESENTLAST blts in the hardware pipe.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4416 * If there are such blts in the pipe, the driver should return DDERR_WASSTILLDRAWING
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4417 * until the oldest queued DDBLT_LAST_PRESENTATION blts has been retired (i.e. the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4418 * pixels have been actually written to the primary surface). Once the oldest blt
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4419 * has been retired, the driver is free to schedule the current blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4420 * The goal is to provide a mechanism whereby the device's hardware queue never
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4421 * gets more than 3 frames ahead of the frames being generated by the application.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4422 * When excessive queueing occurs, applications become unusable because the application
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4423 * visibly lags user input, and such problems make windowed interactive applications impossible.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4424 * Some drivers may not have sufficient knowledge of their hardware's FIFO to know
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4425 * when a certain blt has been retired. Such drivers should code cautiously, and
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4426 * simply not allow any frames to be queued at all. DDBLT_LAST_PRESENTATION should cause
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4427 * such drivers to return DDERR_WASSTILLDRAWING until the accelerator is completely
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4428 * finished- exactly as if the application had called Lock on the source surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4429 * before calling Blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4430 * In other words, the driver is allowed and encouraged to
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4431 * generate as much latency as it can, but never more than 3 frames worth.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4432 * Implementation detail: Drivers should count blts against the SOURCE surface, not
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4433 * against the primary surface. This enables multiple parallel windowed application
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4434 * to function more optimally.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4435 * This flag is passed only to DX8 or higher drivers.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4436 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4437 * APPLICATIONS DO NOT SET THESE FLAGS. THEY ARE SET BY THE DIRECTDRAW RUNTIME.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4438 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4439 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4440 #define DDBLT_PRESENTATION 0x10000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4441 #define DDBLT_LAST_PRESENTATION 0x20000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4442
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4443 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4444 * If DDBLT_EXTENDED_FLAGS is set, then the driver should re-interpret
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4445 * other flags according to the definitions that follow.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4446 * For example, bit 0 (0x00000001L) means DDBLT_ALPHADEST, unless
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4447 * DDBLT_EXTENDED_FLAGS is also set, in which case bit 0 means
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4448 * DDBLT_EXTENDED_LINEAR_CONTENT.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4449 * Only DirectX9 and higher drivers will be given extended blt flags.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4450 * Only flags explicitly mentioned here should be re-interpreted.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4451 * All other flags retain their original meanings.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4452 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4453 * List of re-interpreted flags:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4454 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4455 * Bit Hex value New meaning old meaning
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4456 * ---------------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4457 * 2 0x00000004 DDBLT_EXTENDED_LINEAR_CONTENT DDBLT_ALPHADESTNEG
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4458 * 4 0x00000010 DDBLT_EXTENDED_PRESENTATION_STRETCHFACTOR DDBLT_ALPHAEDGEBLEND
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4459 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4460 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4461 * NOTE: APPLICATIONS SHOULD NOT SET THIS FLAG. THIS FLAG IS INTENDED
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4462 * FOR USE BY THE DIRECT3D RUNTIME.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4463 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4464 #define DDBLT_EXTENDED_FLAGS 0x40000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4465
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4466 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4467 * EXTENDED FLAG. SEE DEFINITION OF DDBLT_EXTENDED_FLAGS.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4468 * This flag indidcates that the source surface contains content in a
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4469 * linear color space. The driver may perform gamma correction to the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4470 * desktop color space (i.e. sRGB, gamma 2.2) as part of this blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4471 * If the device can perform such a conversion as part of the copy,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4472 * the driver should also set D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4473 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4474 * NOTE: APPLICATIONS SHOULD NOT SET THIS FLAG. THIS FLAG IS INTENDED
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4475 * FOR USE BY THE DIRECT3D RUNTIME. Use IDirect3DSwapChain9::Present
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4476 * and specify D3DPRESENT_LINEAR_CONTENT in order to use this functionality.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4477 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4478 #define DDBLT_EXTENDED_LINEAR_CONTENT 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4479
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4480
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4481 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4482 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4483 * BLTFAST FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4484 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4485 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4486
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4487 #define DDBLTFAST_NOCOLORKEY 0x00000000
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4488 #define DDBLTFAST_SRCCOLORKEY 0x00000001
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4489 #define DDBLTFAST_DESTCOLORKEY 0x00000002
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4490 #define DDBLTFAST_WAIT 0x00000010
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4491 #define DDBLTFAST_DONOTWAIT 0x00000020
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4492
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4493 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4494 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4495 * FLIP FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4496 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4497 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4498
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4499 #define DDFLIP_WAIT 0x00000001L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4500
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4501 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4502 * Indicates that the target surface contains the even field of video data.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4503 * This flag is only valid with an overlay surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4504 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4505 #define DDFLIP_EVEN 0x00000002L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4506
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4507 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4508 * Indicates that the target surface contains the odd field of video data.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4509 * This flag is only valid with an overlay surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4510 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4511 #define DDFLIP_ODD 0x00000004L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4512
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4513 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4514 * Causes DirectDraw to perform the physical flip immediately and return
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4515 * to the application. Typically, what was the front buffer but is now the back
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4516 * buffer will still be visible (depending on timing) until the next vertical
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4517 * retrace. Subsequent operations involving the two flipped surfaces will
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4518 * not check to see if the physical flip has finished (i.e. will not return
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4519 * DDERR_WASSTILLDRAWING for that reason (but may for other reasons)).
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4520 * This allows an application to perform Flips at a higher frequency than the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4521 * monitor refresh rate, but may introduce visible artifacts.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4522 * Only effective if DDCAPS2_FLIPNOVSYNC is set. If that bit is not set,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4523 * DDFLIP_NOVSYNC has no effect.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4524 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4525 #define DDFLIP_NOVSYNC 0x00000008L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4526
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4527
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4528 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4529 * Flip Interval Flags. These flags indicate how many vertical retraces to wait between
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4530 * each flip. The default is one. DirectDraw will return DDERR_WASSTILLDRAWING for each
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4531 * surface involved in the flip until the specified number of vertical retraces has
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4532 * ocurred. Only effective if DDCAPS2_FLIPINTERVAL is set. If that bit is not set,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4533 * DDFLIP_INTERVALn has no effect.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4534 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4535
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4536 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4537 * DirectDraw will flip on every other vertical sync
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4538 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4539 #define DDFLIP_INTERVAL2 0x02000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4540
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4541
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4542 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4543 * DirectDraw will flip on every third vertical sync
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4544 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4545 #define DDFLIP_INTERVAL3 0x03000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4546
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4547
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4548 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4549 * DirectDraw will flip on every fourth vertical sync
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4550 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4551 #define DDFLIP_INTERVAL4 0x04000000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4552
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4553 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4554 * DirectDraw will flip and display a main stereo surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4555 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4556 #define DDFLIP_STEREO 0x00000010L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4557
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4558 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4559 * On IDirectDrawSurface7 and higher interfaces, the default is DDFLIP_WAIT. If you wish
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4560 * to override the default and use time when the accelerator is busy (as denoted by
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4561 * the DDERR_WASSTILLDRAWING return code) then use DDFLIP_DONOTWAIT.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4562 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4563 #define DDFLIP_DONOTWAIT 0x00000020L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4564
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4565
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4566 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4567 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4568 * DIRECTDRAW SURFACE OVERLAY FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4569 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4570 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4571
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4572 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4573 * Use the alpha information in the pixel format or the alpha channel surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4574 * attached to the destination surface as the alpha channel for the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4575 * destination overlay.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4576 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4577 #define DDOVER_ALPHADEST 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4578
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4579 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4580 * Use the dwConstAlphaDest field in the DDOVERLAYFX structure as the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4581 * destination alpha channel for this overlay.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4582 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4583 #define DDOVER_ALPHADESTCONSTOVERRIDE 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4584
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4585 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4586 * The NEG suffix indicates that the destination surface becomes more
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4587 * transparent as the alpha value increases.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4588 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4589 #define DDOVER_ALPHADESTNEG 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4590
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4591 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4592 * Use the lpDDSAlphaDest field in the DDOVERLAYFX structure as the alpha
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4593 * channel destination for this overlay.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4594 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4595 #define DDOVER_ALPHADESTSURFACEOVERRIDE 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4596
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4597 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4598 * Use the dwAlphaEdgeBlend field in the DDOVERLAYFX structure as the alpha
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4599 * channel for the edges of the image that border the color key colors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4600 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4601 #define DDOVER_ALPHAEDGEBLEND 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4602
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4603 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4604 * Use the alpha information in the pixel format or the alpha channel surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4605 * attached to the source surface as the source alpha channel for this overlay.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4606 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4607 #define DDOVER_ALPHASRC 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4608
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4609 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4610 * Use the dwConstAlphaSrc field in the DDOVERLAYFX structure as the source
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4611 * alpha channel for this overlay.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4612 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4613 #define DDOVER_ALPHASRCCONSTOVERRIDE 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4614
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4615 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4616 * The NEG suffix indicates that the source surface becomes more transparent
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4617 * as the alpha value increases.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4618 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4619 #define DDOVER_ALPHASRCNEG 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4620
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4621 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4622 * Use the lpDDSAlphaSrc field in the DDOVERLAYFX structure as the alpha channel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4623 * source for this overlay.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4624 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4625 #define DDOVER_ALPHASRCSURFACEOVERRIDE 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4626
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4627 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4628 * Turn this overlay off.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4629 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4630 #define DDOVER_HIDE 0x00000200l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4631
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4632 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4633 * Use the color key associated with the destination surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4634 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4635 #define DDOVER_KEYDEST 0x00000400l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4636
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4637 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4638 * Use the dckDestColorkey field in the DDOVERLAYFX structure as the color key
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4639 * for the destination surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4640 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4641 #define DDOVER_KEYDESTOVERRIDE 0x00000800l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4642
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4643 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4644 * Use the color key associated with the source surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4645 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4646 #define DDOVER_KEYSRC 0x00001000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4647
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4648 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4649 * Use the dckSrcColorkey field in the DDOVERLAYFX structure as the color key
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4650 * for the source surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4651 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4652 #define DDOVER_KEYSRCOVERRIDE 0x00002000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4653
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4654 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4655 * Turn this overlay on.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4656 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4657 #define DDOVER_SHOW 0x00004000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4658
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4659 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4660 * Add a dirty rect to an emulated overlayed surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4661 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4662 #define DDOVER_ADDDIRTYRECT 0x00008000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4663
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4664 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4665 * Redraw all dirty rects on an emulated overlayed surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4666 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4667 #define DDOVER_REFRESHDIRTYRECTS 0x00010000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4668
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4669 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4670 * Redraw the entire surface on an emulated overlayed surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4671 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4672 #define DDOVER_REFRESHALL 0x00020000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4673
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4674
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4675 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4676 * Use the overlay FX flags to define special overlay FX
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4677 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4678 #define DDOVER_DDFX 0x00080000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4679
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4680 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4681 * Autoflip the overlay when ever the video port autoflips
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4682 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4683 #define DDOVER_AUTOFLIP 0x00100000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4684
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4685 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4686 * Display each field of video port data individually without
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4687 * causing any jittery artifacts
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4688 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4689 #define DDOVER_BOB 0x00200000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4690
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4691 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4692 * Indicates that bob/weave decisions should not be overridden by other
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4693 * interfaces.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4694 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4695 #define DDOVER_OVERRIDEBOBWEAVE 0x00400000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4696
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4697 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4698 * Indicates that the surface memory is composed of interleaved fields.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4699 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4700 #define DDOVER_INTERLEAVED 0x00800000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4701
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4702 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4703 * Indicates that bob will be performed using hardware rather than
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4704 * software or emulated.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4705 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4706 #define DDOVER_BOBHARDWARE 0x01000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4707
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4708 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4709 * Indicates that overlay FX structure contains valid ARGB scaling factors.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4710 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4711 #define DDOVER_ARGBSCALEFACTORS 0x02000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4712
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4713 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4714 * Indicates that ARGB scaling factors can be degraded to fit driver capabilities.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4715 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4716 #define DDOVER_DEGRADEARGBSCALING 0x04000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4717
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4718
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4719 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4720 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4721 * DIRECTDRAWSURFACE LOCK FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4722 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4723 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4724
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4725 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4726 * The default. Set to indicate that Lock should return a valid memory pointer
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4727 * to the top of the specified rectangle. If no rectangle is specified then a
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4728 * pointer to the top of the surface is returned.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4729 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4730 #define DDLOCK_SURFACEMEMORYPTR 0x00000000L // default
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4731
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4732 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4733 * Set to indicate that Lock should wait until it can obtain a valid memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4734 * pointer before returning. If this bit is set, Lock will never return
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4735 * DDERR_WASSTILLDRAWING.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4736 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4737 #define DDLOCK_WAIT 0x00000001L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4738
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4739 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4740 * Set if an event handle is being passed to Lock. Lock will trigger the event
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4741 * when it can return the surface memory pointer requested.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4742 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4743 #define DDLOCK_EVENT 0x00000002L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4744
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4745 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4746 * Indicates that the surface being locked will only be read from.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4747 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4748 #define DDLOCK_READONLY 0x00000010L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4749
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4750 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4751 * Indicates that the surface being locked will only be written to
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4752 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4753 #define DDLOCK_WRITEONLY 0x00000020L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4754
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4755
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4756 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4757 * Indicates that a system wide lock should not be taken when this surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4758 * is locked. This has several advantages (cursor responsiveness, ability
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4759 * to call more Windows functions, easier debugging) when locking video
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4760 * memory surfaces. However, an application specifying this flag must
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4761 * comply with a number of conditions documented in the help file.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4762 * Furthermore, this flag cannot be specified when locking the primary.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4763 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4764 #define DDLOCK_NOSYSLOCK 0x00000800L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4765
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4766 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4767 * Used only with Direct3D Vertex Buffer Locks. Indicates that no vertices
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4768 * that were referred to in Draw*PrimtiveVB calls since the start of the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4769 * frame (or the last lock without this flag) will be modified during the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4770 * lock. This can be useful when one is only appending data to the vertex
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4771 * buffer
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4772 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4773 #define DDLOCK_NOOVERWRITE 0x00001000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4774
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4775 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4776 * Indicates that no assumptions will be made about the contents of the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4777 * surface or vertex buffer during this lock.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4778 * This enables two things:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4779 * - Direct3D or the driver may provide an alternative memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4780 * area as the vertex buffer. This is useful when one plans to clear the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4781 * contents of the vertex buffer and fill in new data.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4782 * - Drivers sometimes store surface data in a re-ordered format.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4783 * When the application locks the surface, the driver is forced to un-re-order
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4784 * the surface data before allowing the application to see the surface contents.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4785 * This flag is a hint to the driver that it can skip the un-re-ordering process
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4786 * since the application plans to overwrite every single pixel in the surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4787 * or locked rectangle (and so erase any un-re-ordered pixels anyway).
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4788 * Applications should always set this flag when they intend to overwrite the entire
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4789 * surface or locked rectangle.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4790 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4791 #define DDLOCK_DISCARDCONTENTS 0x00002000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4792 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4793 * DDLOCK_OKTOSWAP is an older, less informative name for DDLOCK_DISCARDCONTENTS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4794 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4795 #define DDLOCK_OKTOSWAP 0x00002000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4796
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4797 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4798 * On IDirectDrawSurface7 and higher interfaces, the default is DDLOCK_WAIT. If you wish
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4799 * to override the default and use time when the accelerator is busy (as denoted by
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4800 * the DDERR_WASSTILLDRAWING return code) then use DDLOCK_DONOTWAIT.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4801 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4802 #define DDLOCK_DONOTWAIT 0x00004000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4803
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4804 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4805 * This indicates volume texture lock with front and back specified.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4806 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4807 #define DDLOCK_HASVOLUMETEXTUREBOXRECT 0x00008000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4808
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4809 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4810 * This indicates that the driver should not update dirty rect information for this lock.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4811 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4812 #define DDLOCK_NODIRTYUPDATE 0x00010000L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4813
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4814
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4815 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4816 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4817 * DIRECTDRAWSURFACE PAGELOCK FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4818 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4819 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4820
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4821 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4822 * No flags defined at present
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4823 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4824
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4825
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4826 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4827 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4828 * DIRECTDRAWSURFACE PAGEUNLOCK FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4829 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4830 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4831
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4832 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4833 * No flags defined at present
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4834 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4835
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4836
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4837 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4838 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4839 * DIRECTDRAWSURFACE BLT FX FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4840 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4841 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4842
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4843 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4844 * If stretching, use arithmetic stretching along the Y axis for this blt.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4845 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4846 #define DDBLTFX_ARITHSTRETCHY 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4847
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4848 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4849 * Do this blt mirroring the surface left to right. Spin the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4850 * surface around its y-axis.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4851 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4852 #define DDBLTFX_MIRRORLEFTRIGHT 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4853
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4854 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4855 * Do this blt mirroring the surface up and down. Spin the surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4856 * around its x-axis.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4857 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4858 #define DDBLTFX_MIRRORUPDOWN 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4859
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4860 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4861 * Schedule this blt to avoid tearing.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4862 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4863 #define DDBLTFX_NOTEARING 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4864
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4865 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4866 * Do this blt rotating the surface one hundred and eighty degrees.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4867 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4868 #define DDBLTFX_ROTATE180 0x00000010l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4869
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4870 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4871 * Do this blt rotating the surface two hundred and seventy degrees.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4872 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4873 #define DDBLTFX_ROTATE270 0x00000020l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4874
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4875 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4876 * Do this blt rotating the surface ninety degrees.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4877 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4878 #define DDBLTFX_ROTATE90 0x00000040l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4879
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4880 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4881 * Do this z blt using dwZBufferLow and dwZBufferHigh as range values
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4882 * specified to limit the bits copied from the source surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4883 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4884 #define DDBLTFX_ZBUFFERRANGE 0x00000080l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4885
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4886 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4887 * Do this z blt adding the dwZBufferBaseDest to each of the sources z values
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4888 * before comparing it with the desting z values.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4889 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4890 #define DDBLTFX_ZBUFFERBASEDEST 0x00000100l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4891
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4892 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4893 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4894 * DIRECTDRAWSURFACE OVERLAY FX FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4895 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4896 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4897
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4898 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4899 * If stretching, use arithmetic stretching along the Y axis for this overlay.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4900 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4901 #define DDOVERFX_ARITHSTRETCHY 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4902
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4903 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4904 * Mirror the overlay across the vertical axis
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4905 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4906 #define DDOVERFX_MIRRORLEFTRIGHT 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4907
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4908 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4909 * Mirror the overlay across the horizontal axis
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4910 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4911 #define DDOVERFX_MIRRORUPDOWN 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4912
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4913 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4914 * Deinterlace the overlay, if possible
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4915 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4916 #define DDOVERFX_DEINTERLACE 0x00000008l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4917
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4918
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4919 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4920 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4921 * DIRECTDRAW WAITFORVERTICALBLANK FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4922 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4923 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4924
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4925 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4926 * return when the vertical blank interval begins
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4927 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4928 #define DDWAITVB_BLOCKBEGIN 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4929
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4930 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4931 * set up an event to trigger when the vertical blank begins
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4932 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4933 #define DDWAITVB_BLOCKBEGINEVENT 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4934
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4935 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4936 * return when the vertical blank interval ends and display begins
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4937 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4938 #define DDWAITVB_BLOCKEND 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4939
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4940 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4941 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4942 * DIRECTDRAW GETFLIPSTATUS FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4943 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4944 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4945
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4946 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4947 * is it OK to flip now?
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4948 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4949 #define DDGFS_CANFLIP 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4950
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4951 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4952 * is the last flip finished?
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4953 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4954 #define DDGFS_ISFLIPDONE 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4955
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4956 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4957 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4958 * DIRECTDRAW GETBLTSTATUS FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4959 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4960 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4961
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4962 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4963 * is it OK to blt now?
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4964 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4965 #define DDGBS_CANBLT 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4966
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4967 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4968 * is the blt to the surface finished?
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4969 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4970 #define DDGBS_ISBLTDONE 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4971
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4972
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4973 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4974 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4975 * DIRECTDRAW ENUMOVERLAYZORDER FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4976 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4977 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4978
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4979 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4980 * Enumerate overlays back to front.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4981 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4982 #define DDENUMOVERLAYZ_BACKTOFRONT 0x00000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4983
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4984 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4985 * Enumerate overlays front to back
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4986 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4987 #define DDENUMOVERLAYZ_FRONTTOBACK 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4988
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4989 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4990 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4991 * DIRECTDRAW UPDATEOVERLAYZORDER FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4992 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4993 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4994
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4995 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4996 * Send overlay to front
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4997 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4998 #define DDOVERZ_SENDTOFRONT 0x00000000l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4999
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5000 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5001 * Send overlay to back
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5002 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5003 #define DDOVERZ_SENDTOBACK 0x00000001l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5004
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5005 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5006 * Move Overlay forward
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5007 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5008 #define DDOVERZ_MOVEFORWARD 0x00000002l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5009
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5010 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5011 * Move Overlay backward
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5012 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5013 #define DDOVERZ_MOVEBACKWARD 0x00000003l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5014
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5015 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5016 * Move Overlay in front of relative surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5017 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5018 #define DDOVERZ_INSERTINFRONTOF 0x00000004l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5019
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5020 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5021 * Move Overlay in back of relative surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5022 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5023 #define DDOVERZ_INSERTINBACKOF 0x00000005l
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5024
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5025
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5026 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5027 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5028 * DIRECTDRAW SETGAMMARAMP FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5029 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5030 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5031
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5032 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5033 * Request calibrator to adjust the gamma ramp according to the physical
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5034 * properties of the display so that the result should appear identical
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5035 * on all systems.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5036 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5037 #define DDSGR_CALIBRATE 0x00000001L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5038
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5039
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5040 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5041 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5042 * DIRECTDRAW STARTMODETEST FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5043 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5044 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5045
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5046 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5047 * Indicates that the mode being tested has passed
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5048 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5049 #define DDSMT_ISTESTREQUIRED 0x00000001L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5050
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5051
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5052 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5053 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5054 * DIRECTDRAW EVALUATEMODE FLAGS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5055 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5056 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5057
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5058 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5059 * Indicates that the mode being tested has passed
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5060 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5061 #define DDEM_MODEPASSED 0x00000001L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5062
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5063 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5064 * Indicates that the mode being tested has failed
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5065 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5066 #define DDEM_MODEFAILED 0x00000002L
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5067
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5068
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5069 /*===========================================================================
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5070 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5071 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5072 * DIRECTDRAW RETURN CODES
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5073 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5074 * The return values from DirectDraw Commands and Surface that return an HRESULT
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5075 * are codes from DirectDraw concerning the results of the action
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5076 * requested by DirectDraw.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5077 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5078 *==========================================================================*/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5079
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5080 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5081 * Status is OK
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5082 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5083 * Issued by: DirectDraw Commands and all callbacks
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5084 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5085 #define DD_OK S_OK
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5086 #define DD_FALSE S_FALSE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5087
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5088 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5089 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5090 * DIRECTDRAW ENUMCALLBACK RETURN VALUES
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5091 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5092 * EnumCallback returns are used to control the flow of the DIRECTDRAW and
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5093 * DIRECTDRAWSURFACE object enumerations. They can only be returned by
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5094 * enumeration callback routines.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5095 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5096 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5097
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5098 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5099 * stop the enumeration
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5100 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5101 #define DDENUMRET_CANCEL 0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5102
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5103 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5104 * continue the enumeration
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5105 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5106 #define DDENUMRET_OK 1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5107
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5108 /****************************************************************************
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5109 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5110 * DIRECTDRAW ERRORS
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5111 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5112 * Errors are represented by negative values and cannot be combined.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5113 *
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5114 ****************************************************************************/
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5115
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5116 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5117 * This object is already initialized
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5118 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5119 #define DDERR_ALREADYINITIALIZED MAKE_DDHRESULT( 5 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5120
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5121 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5122 * This surface can not be attached to the requested surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5123 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5124 #define DDERR_CANNOTATTACHSURFACE MAKE_DDHRESULT( 10 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5125
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5126 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5127 * This surface can not be detached from the requested surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5128 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5129 #define DDERR_CANNOTDETACHSURFACE MAKE_DDHRESULT( 20 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5130
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5131 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5132 * Support is currently not available.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5133 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5134 #define DDERR_CURRENTLYNOTAVAIL MAKE_DDHRESULT( 40 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5135
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5136 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5137 * An exception was encountered while performing the requested operation
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5138 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5139 #define DDERR_EXCEPTION MAKE_DDHRESULT( 55 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5140
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5141 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5142 * Generic failure.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5143 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5144 #define DDERR_GENERIC E_FAIL
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5145
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5146 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5147 * Height of rectangle provided is not a multiple of reqd alignment
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5148 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5149 #define DDERR_HEIGHTALIGN MAKE_DDHRESULT( 90 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5150
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5151 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5152 * Unable to match primary surface creation request with existing
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5153 * primary surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5154 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5155 #define DDERR_INCOMPATIBLEPRIMARY MAKE_DDHRESULT( 95 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5156
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5157 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5158 * One or more of the caps bits passed to the callback are incorrect.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5159 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5160 #define DDERR_INVALIDCAPS MAKE_DDHRESULT( 100 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5161
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5162 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5163 * DirectDraw does not support provided Cliplist.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5164 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5165 #define DDERR_INVALIDCLIPLIST MAKE_DDHRESULT( 110 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5166
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5167 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5168 * DirectDraw does not support the requested mode
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5169 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5170 #define DDERR_INVALIDMODE MAKE_DDHRESULT( 120 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5171
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5172 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5173 * DirectDraw received a pointer that was an invalid DIRECTDRAW object.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5174 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5175 #define DDERR_INVALIDOBJECT MAKE_DDHRESULT( 130 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5176
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5177 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5178 * One or more of the parameters passed to the callback function are
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5179 * incorrect.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5180 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5181 #define DDERR_INVALIDPARAMS E_INVALIDARG
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5182
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5183 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5184 * pixel format was invalid as specified
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5185 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5186 #define DDERR_INVALIDPIXELFORMAT MAKE_DDHRESULT( 145 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5187
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5188 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5189 * Rectangle provided was invalid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5190 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5191 #define DDERR_INVALIDRECT MAKE_DDHRESULT( 150 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5192
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5193 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5194 * Operation could not be carried out because one or more surfaces are locked
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5195 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5196 #define DDERR_LOCKEDSURFACES MAKE_DDHRESULT( 160 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5197
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5198 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5199 * There is no 3D present.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5200 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5201 #define DDERR_NO3D MAKE_DDHRESULT( 170 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5202
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5203 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5204 * Operation could not be carried out because there is no alpha accleration
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5205 * hardware present or available.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5206 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5207 #define DDERR_NOALPHAHW MAKE_DDHRESULT( 180 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5208
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5209 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5210 * Operation could not be carried out because there is no stereo
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5211 * hardware present or available.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5212 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5213 #define DDERR_NOSTEREOHARDWARE MAKE_DDHRESULT( 181 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5214
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5215 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5216 * Operation could not be carried out because there is no hardware
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5217 * present which supports stereo surfaces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5218 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5219 #define DDERR_NOSURFACELEFT MAKE_DDHRESULT( 182 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5220
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5221
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5222
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5223 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5224 * no clip list available
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5225 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5226 #define DDERR_NOCLIPLIST MAKE_DDHRESULT( 205 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5227
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5228 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5229 * Operation could not be carried out because there is no color conversion
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5230 * hardware present or available.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5231 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5232 #define DDERR_NOCOLORCONVHW MAKE_DDHRESULT( 210 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5233
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5234 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5235 * Create function called without DirectDraw object method SetCooperativeLevel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5236 * being called.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5237 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5238 #define DDERR_NOCOOPERATIVELEVELSET MAKE_DDHRESULT( 212 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5239
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5240 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5241 * Surface doesn't currently have a color key
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5242 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5243 #define DDERR_NOCOLORKEY MAKE_DDHRESULT( 215 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5244
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5245 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5246 * Operation could not be carried out because there is no hardware support
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5247 * of the dest color key.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5248 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5249 #define DDERR_NOCOLORKEYHW MAKE_DDHRESULT( 220 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5250
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5251 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5252 * No DirectDraw support possible with current display driver
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5253 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5254 #define DDERR_NODIRECTDRAWSUPPORT MAKE_DDHRESULT( 222 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5255
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5256 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5257 * Operation requires the application to have exclusive mode but the
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5258 * application does not have exclusive mode.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5259 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5260 #define DDERR_NOEXCLUSIVEMODE MAKE_DDHRESULT( 225 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5261
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5262 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5263 * Flipping visible surfaces is not supported.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5264 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5265 #define DDERR_NOFLIPHW MAKE_DDHRESULT( 230 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5266
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5267 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5268 * There is no GDI present.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5269 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5270 #define DDERR_NOGDI MAKE_DDHRESULT( 240 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5271
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5272 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5273 * Operation could not be carried out because there is no hardware present
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5274 * or available.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5275 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5276 #define DDERR_NOMIRRORHW MAKE_DDHRESULT( 250 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5277
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5278 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5279 * Requested item was not found
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5280 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5281 #define DDERR_NOTFOUND MAKE_DDHRESULT( 255 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5282
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5283 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5284 * Operation could not be carried out because there is no overlay hardware
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5285 * present or available.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5286 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5287 #define DDERR_NOOVERLAYHW MAKE_DDHRESULT( 260 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5288
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5289 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5290 * Operation could not be carried out because the source and destination
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5291 * rectangles are on the same surface and overlap each other.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5292 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5293 #define DDERR_OVERLAPPINGRECTS MAKE_DDHRESULT( 270 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5294
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5295 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5296 * Operation could not be carried out because there is no appropriate raster
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5297 * op hardware present or available.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5298 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5299 #define DDERR_NORASTEROPHW MAKE_DDHRESULT( 280 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5300
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5301 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5302 * Operation could not be carried out because there is no rotation hardware
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5303 * present or available.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5304 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5305 #define DDERR_NOROTATIONHW MAKE_DDHRESULT( 290 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5306
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5307 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5308 * Operation could not be carried out because there is no hardware support
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5309 * for stretching
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5310 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5311 #define DDERR_NOSTRETCHHW MAKE_DDHRESULT( 310 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5312
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5313 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5314 * DirectDrawSurface is not in 4 bit color palette and the requested operation
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5315 * requires 4 bit color palette.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5316 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5317 #define DDERR_NOT4BITCOLOR MAKE_DDHRESULT( 316 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5318
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5319 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5320 * DirectDrawSurface is not in 4 bit color index palette and the requested
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5321 * operation requires 4 bit color index palette.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5322 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5323 #define DDERR_NOT4BITCOLORINDEX MAKE_DDHRESULT( 317 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5324
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5325 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5326 * DirectDraw Surface is not in 8 bit color mode and the requested operation
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5327 * requires 8 bit color.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5328 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5329 #define DDERR_NOT8BITCOLOR MAKE_DDHRESULT( 320 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5330
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5331 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5332 * Operation could not be carried out because there is no texture mapping
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5333 * hardware present or available.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5334 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5335 #define DDERR_NOTEXTUREHW MAKE_DDHRESULT( 330 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5336
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5337 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5338 * Operation could not be carried out because there is no hardware support
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5339 * for vertical blank synchronized operations.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5340 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5341 #define DDERR_NOVSYNCHW MAKE_DDHRESULT( 335 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5342
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5343 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5344 * Operation could not be carried out because there is no hardware support
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5345 * for zbuffer blting.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5346 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5347 #define DDERR_NOZBUFFERHW MAKE_DDHRESULT( 340 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5348
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5349 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5350 * Overlay surfaces could not be z layered based on their BltOrder because
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5351 * the hardware does not support z layering of overlays.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5352 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5353 #define DDERR_NOZOVERLAYHW MAKE_DDHRESULT( 350 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5354
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5355 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5356 * The hardware needed for the requested operation has already been
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5357 * allocated.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5358 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5359 #define DDERR_OUTOFCAPS MAKE_DDHRESULT( 360 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5360
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5361 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5362 * DirectDraw does not have enough memory to perform the operation.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5363 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5364 #define DDERR_OUTOFMEMORY E_OUTOFMEMORY
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5365
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5366 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5367 * DirectDraw does not have enough memory to perform the operation.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5368 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5369 #define DDERR_OUTOFVIDEOMEMORY MAKE_DDHRESULT( 380 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5370
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5371 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5372 * hardware does not support clipped overlays
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5373 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5374 #define DDERR_OVERLAYCANTCLIP MAKE_DDHRESULT( 382 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5375
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5376 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5377 * Can only have ony color key active at one time for overlays
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5378 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5379 #define DDERR_OVERLAYCOLORKEYONLYONEACTIVE MAKE_DDHRESULT( 384 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5380
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5381 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5382 * Access to this palette is being refused because the palette is already
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5383 * locked by another thread.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5384 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5385 #define DDERR_PALETTEBUSY MAKE_DDHRESULT( 387 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5386
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5387 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5388 * No src color key specified for this operation.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5389 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5390 #define DDERR_COLORKEYNOTSET MAKE_DDHRESULT( 400 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5391
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5392 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5393 * This surface is already attached to the surface it is being attached to.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5394 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5395 #define DDERR_SURFACEALREADYATTACHED MAKE_DDHRESULT( 410 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5396
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5397 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5398 * This surface is already a dependency of the surface it is being made a
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5399 * dependency of.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5400 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5401 #define DDERR_SURFACEALREADYDEPENDENT MAKE_DDHRESULT( 420 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5402
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5403 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5404 * Access to this surface is being refused because the surface is already
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5405 * locked by another thread.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5406 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5407 #define DDERR_SURFACEBUSY MAKE_DDHRESULT( 430 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5408
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5409 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5410 * Access to this surface is being refused because no driver exists
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5411 * which can supply a pointer to the surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5412 * This is most likely to happen when attempting to lock the primary
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5413 * surface when no DCI provider is present.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5414 * Will also happen on attempts to lock an optimized surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5415 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5416 #define DDERR_CANTLOCKSURFACE MAKE_DDHRESULT( 435 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5417
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5418 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5419 * Access to Surface refused because Surface is obscured.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5420 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5421 #define DDERR_SURFACEISOBSCURED MAKE_DDHRESULT( 440 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5422
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5423 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5424 * Access to this surface is being refused because the surface is gone.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5425 * The DIRECTDRAWSURFACE object representing this surface should
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5426 * have Restore called on it.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5427 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5428 #define DDERR_SURFACELOST MAKE_DDHRESULT( 450 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5429
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5430 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5431 * The requested surface is not attached.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5432 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5433 #define DDERR_SURFACENOTATTACHED MAKE_DDHRESULT( 460 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5434
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5435 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5436 * Height requested by DirectDraw is too large.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5437 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5438 #define DDERR_TOOBIGHEIGHT MAKE_DDHRESULT( 470 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5439
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5440 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5441 * Size requested by DirectDraw is too large -- The individual height and
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5442 * width are OK.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5443 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5444 #define DDERR_TOOBIGSIZE MAKE_DDHRESULT( 480 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5445
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5446 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5447 * Width requested by DirectDraw is too large.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5448 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5449 #define DDERR_TOOBIGWIDTH MAKE_DDHRESULT( 490 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5450
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5451 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5452 * Action not supported.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5453 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5454 #define DDERR_UNSUPPORTED E_NOTIMPL
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5455
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5456 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5457 * Pixel format requested is unsupported by DirectDraw
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5458 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5459 #define DDERR_UNSUPPORTEDFORMAT MAKE_DDHRESULT( 510 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5460
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5461 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5462 * Bitmask in the pixel format requested is unsupported by DirectDraw
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5463 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5464 #define DDERR_UNSUPPORTEDMASK MAKE_DDHRESULT( 520 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5465
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5466 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5467 * The specified stream contains invalid data
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5468 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5469 #define DDERR_INVALIDSTREAM MAKE_DDHRESULT( 521 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5470
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5471 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5472 * vertical blank is in progress
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5473 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5474 #define DDERR_VERTICALBLANKINPROGRESS MAKE_DDHRESULT( 537 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5475
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5476 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5477 * Informs DirectDraw that the previous Blt which is transfering information
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5478 * to or from this Surface is incomplete.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5479 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5480 #define DDERR_WASSTILLDRAWING MAKE_DDHRESULT( 540 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5481
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5482
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5483 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5484 * The specified surface type requires specification of the COMPLEX flag
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5485 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5486 #define DDERR_DDSCAPSCOMPLEXREQUIRED MAKE_DDHRESULT( 542 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5487
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5488
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5489 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5490 * Rectangle provided was not horizontally aligned on reqd. boundary
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5491 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5492 #define DDERR_XALIGN MAKE_DDHRESULT( 560 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5493
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5494 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5495 * The GUID passed to DirectDrawCreate is not a valid DirectDraw driver
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5496 * identifier.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5497 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5498 #define DDERR_INVALIDDIRECTDRAWGUID MAKE_DDHRESULT( 561 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5499
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5500 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5501 * A DirectDraw object representing this driver has already been created
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5502 * for this process.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5503 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5504 #define DDERR_DIRECTDRAWALREADYCREATED MAKE_DDHRESULT( 562 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5505
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5506 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5507 * A hardware only DirectDraw object creation was attempted but the driver
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5508 * did not support any hardware.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5509 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5510 #define DDERR_NODIRECTDRAWHW MAKE_DDHRESULT( 563 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5511
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5512 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5513 * this process already has created a primary surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5514 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5515 #define DDERR_PRIMARYSURFACEALREADYEXISTS MAKE_DDHRESULT( 564 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5516
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5517 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5518 * software emulation not available.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5519 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5520 #define DDERR_NOEMULATION MAKE_DDHRESULT( 565 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5521
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5522 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5523 * region passed to Clipper::GetClipList is too small.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5524 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5525 #define DDERR_REGIONTOOSMALL MAKE_DDHRESULT( 566 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5526
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5527 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5528 * an attempt was made to set a clip list for a clipper objec that
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5529 * is already monitoring an hwnd.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5530 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5531 #define DDERR_CLIPPERISUSINGHWND MAKE_DDHRESULT( 567 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5532
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5533 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5534 * No clipper object attached to surface object
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5535 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5536 #define DDERR_NOCLIPPERATTACHED MAKE_DDHRESULT( 568 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5537
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5538 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5539 * Clipper notification requires an HWND or
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5540 * no HWND has previously been set as the CooperativeLevel HWND.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5541 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5542 #define DDERR_NOHWND MAKE_DDHRESULT( 569 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5543
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5544 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5545 * HWND used by DirectDraw CooperativeLevel has been subclassed,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5546 * this prevents DirectDraw from restoring state.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5547 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5548 #define DDERR_HWNDSUBCLASSED MAKE_DDHRESULT( 570 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5549
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5550 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5551 * The CooperativeLevel HWND has already been set.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5552 * It can not be reset while the process has surfaces or palettes created.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5553 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5554 #define DDERR_HWNDALREADYSET MAKE_DDHRESULT( 571 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5555
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5556 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5557 * No palette object attached to this surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5558 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5559 #define DDERR_NOPALETTEATTACHED MAKE_DDHRESULT( 572 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5560
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5561 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5562 * No hardware support for 16 or 256 color palettes.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5563 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5564 #define DDERR_NOPALETTEHW MAKE_DDHRESULT( 573 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5565
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5566 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5567 * If a clipper object is attached to the source surface passed into a
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5568 * BltFast call.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5569 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5570 #define DDERR_BLTFASTCANTCLIP MAKE_DDHRESULT( 574 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5571
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5572 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5573 * No blter.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5574 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5575 #define DDERR_NOBLTHW MAKE_DDHRESULT( 575 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5576
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5577 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5578 * No DirectDraw ROP hardware.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5579 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5580 #define DDERR_NODDROPSHW MAKE_DDHRESULT( 576 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5581
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5582 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5583 * returned when GetOverlayPosition is called on a hidden overlay
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5584 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5585 #define DDERR_OVERLAYNOTVISIBLE MAKE_DDHRESULT( 577 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5586
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5587 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5588 * returned when GetOverlayPosition is called on a overlay that UpdateOverlay
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5589 * has never been called on to establish a destionation.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5590 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5591 #define DDERR_NOOVERLAYDEST MAKE_DDHRESULT( 578 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5592
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5593 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5594 * returned when the position of the overlay on the destionation is no longer
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5595 * legal for that destionation.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5596 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5597 #define DDERR_INVALIDPOSITION MAKE_DDHRESULT( 579 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5598
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5599 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5600 * returned when an overlay member is called for a non-overlay surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5601 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5602 #define DDERR_NOTAOVERLAYSURFACE MAKE_DDHRESULT( 580 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5603
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5604 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5605 * An attempt was made to set the cooperative level when it was already
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5606 * set to exclusive.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5607 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5608 #define DDERR_EXCLUSIVEMODEALREADYSET MAKE_DDHRESULT( 581 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5609
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5610 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5611 * An attempt has been made to flip a surface that is not flippable.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5612 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5613 #define DDERR_NOTFLIPPABLE MAKE_DDHRESULT( 582 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5614
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5615 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5616 * Can't duplicate primary & 3D surfaces, or surfaces that are implicitly
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5617 * created.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5618 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5619 #define DDERR_CANTDUPLICATE MAKE_DDHRESULT( 583 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5620
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5621 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5622 * Surface was not locked. An attempt to unlock a surface that was not
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5623 * locked at all, or by this process, has been attempted.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5624 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5625 #define DDERR_NOTLOCKED MAKE_DDHRESULT( 584 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5626
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5627 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5628 * Windows can not create any more DCs, or a DC was requested for a paltte-indexed
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5629 * surface when the surface had no palette AND the display mode was not palette-indexed
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5630 * (in this case DirectDraw cannot select a proper palette into the DC)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5631 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5632 #define DDERR_CANTCREATEDC MAKE_DDHRESULT( 585 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5633
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5634 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5635 * No DC was ever created for this surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5636 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5637 #define DDERR_NODC MAKE_DDHRESULT( 586 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5638
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5639 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5640 * This surface can not be restored because it was created in a different
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5641 * mode.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5642 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5643 #define DDERR_WRONGMODE MAKE_DDHRESULT( 587 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5644
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5645 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5646 * This surface can not be restored because it is an implicitly created
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5647 * surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5648 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5649 #define DDERR_IMPLICITLYCREATED MAKE_DDHRESULT( 588 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5650
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5651 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5652 * The surface being used is not a palette-based surface
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5653 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5654 #define DDERR_NOTPALETTIZED MAKE_DDHRESULT( 589 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5655
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5656
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5657 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5658 * The display is currently in an unsupported mode
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5659 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5660 #define DDERR_UNSUPPORTEDMODE MAKE_DDHRESULT( 590 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5661
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5662 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5663 * Operation could not be carried out because there is no mip-map
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5664 * texture mapping hardware present or available.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5665 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5666 #define DDERR_NOMIPMAPHW MAKE_DDHRESULT( 591 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5667
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5668 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5669 * The requested action could not be performed because the surface was of
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5670 * the wrong type.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5671 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5672 #define DDERR_INVALIDSURFACETYPE MAKE_DDHRESULT( 592 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5673
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5674
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5675 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5676 * Device does not support optimized surfaces, therefore no video memory optimized surfaces
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5677 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5678 #define DDERR_NOOPTIMIZEHW MAKE_DDHRESULT( 600 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5679
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5680 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5681 * Surface is an optimized surface, but has not yet been allocated any memory
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5682 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5683 #define DDERR_NOTLOADED MAKE_DDHRESULT( 601 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5684
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5685 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5686 * Attempt was made to create or set a device window without first setting
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5687 * the focus window
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5688 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5689 #define DDERR_NOFOCUSWINDOW MAKE_DDHRESULT( 602 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5690
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5691 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5692 * Attempt was made to set a palette on a mipmap sublevel
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5693 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5694 #define DDERR_NOTONMIPMAPSUBLEVEL MAKE_DDHRESULT( 603 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5695
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5696 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5697 * A DC has already been returned for this surface. Only one DC can be
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5698 * retrieved per surface.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5699 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5700 #define DDERR_DCALREADYCREATED MAKE_DDHRESULT( 620 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5701
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5702 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5703 * An attempt was made to allocate non-local video memory from a device
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5704 * that does not support non-local video memory.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5705 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5706 #define DDERR_NONONLOCALVIDMEM MAKE_DDHRESULT( 630 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5707
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5708 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5709 * The attempt to page lock a surface failed.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5710 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5711 #define DDERR_CANTPAGELOCK MAKE_DDHRESULT( 640 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5712
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5713
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5714 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5715 * The attempt to page unlock a surface failed.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5716 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5717 #define DDERR_CANTPAGEUNLOCK MAKE_DDHRESULT( 660 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5718
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5719 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5720 * An attempt was made to page unlock a surface with no outstanding page locks.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5721 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5722 #define DDERR_NOTPAGELOCKED MAKE_DDHRESULT( 680 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5723
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5724 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5725 * There is more data available than the specified buffer size could hold
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5726 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5727 #define DDERR_MOREDATA MAKE_DDHRESULT( 690 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5728
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5729 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5730 * The data has expired and is therefore no longer valid.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5731 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5732 #define DDERR_EXPIRED MAKE_DDHRESULT( 691 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5733
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5734 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5735 * The mode test has finished executing.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5736 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5737 #define DDERR_TESTFINISHED MAKE_DDHRESULT( 692 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5738
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5739 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5740 * The mode test has switched to a new mode.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5741 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5742 #define DDERR_NEWMODE MAKE_DDHRESULT( 693 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5743
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5744 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5745 * D3D has not yet been initialized.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5746 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5747 #define DDERR_D3DNOTINITIALIZED MAKE_DDHRESULT( 694 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5748
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5749 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5750 * The video port is not active
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5751 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5752 #define DDERR_VIDEONOTACTIVE MAKE_DDHRESULT( 695 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5753
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5754 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5755 * The monitor does not have EDID data.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5756 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5757 #define DDERR_NOMONITORINFORMATION MAKE_DDHRESULT( 696 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5758
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5759 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5760 * The driver does not enumerate display mode refresh rates.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5761 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5762 #define DDERR_NODRIVERSUPPORT MAKE_DDHRESULT( 697 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5763
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5764 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5765 * Surfaces created by one direct draw device cannot be used directly by
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5766 * another direct draw device.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5767 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5768 #define DDERR_DEVICEDOESNTOWNSURFACE MAKE_DDHRESULT( 699 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5769
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5770
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5771
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5772 /*
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5773 * An attempt was made to invoke an interface member of a DirectDraw object
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5774 * created by CoCreateInstance() before it was initialized.
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5775 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5776 #define DDERR_NOTINITIALIZED CO_E_NOTINITIALIZED
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5777
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5778
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5779 /* Alpha bit depth constants */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5780
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5781
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5782 #ifdef __cplusplus
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5783 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5784 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5785
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5786 #ifdef ENABLE_NAMELESS_UNION_PRAGMA
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5787 #pragma warning(default:4201)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5788 #endif
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5789
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5790 #endif //__DDRAW_INCLUDED__
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5791
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5792