c579031edcfce0dd758a8068ffa195f244c2b697
[reactos.git] / reactos / include / win32k / ntddraw.h
1
2 #ifndef __WIN32K_NTDDRAW_H
3 #define __WIN32K_NTDDRAW_H
4
5 #include <windows.h>
6 #include <ddk/d3dhal.h>
7
8 typedef D3DHAL_CONTEXTCREATEDATA D3DNTHAL_CONTEXTCREATEDATA;
9
10 BOOL APIENTRY NtGdiD3dContextCreate(
11 HANDLE hDirectDrawLocal,
12 HANDLE hSurfColor,
13 HANDLE hSurfZ,
14 D3DNTHAL_CONTEXTCREATEDATA *pdcci
15 );
16
17 DWORD APIENTRY NtGdiD3dContextDestroy(
18 LPD3DNTHAL_CONTEXTDESTROYDATA pContextDestroyData
19 );
20
21 DWORD APIENTRY NtGdiD3dContextDestroyAll(VOID);
22
23 DWORD APIENTRY NtGdiD3dDrawPrimitives2(
24 HANDLE hCmdBuf,
25 HANDLE hVBuf,
26 LPD3DNTHAL_DRAWPRIMITIVES2DATA pded,
27 FLATPTR *pfpVidMemCmd,
28 DWORD *pdwSizeCmd,
29 FLATPTR *pfpVidMemVtx,
30 DWORD *pdwSizeVtx
31 );
32
33 DWORD APIENTRY NtGdiD3dValidateTextureStageState(
34 LPD3DNTHAL_VALIDATETEXTURESTAGESTATEDATA pData
35 );
36
37 DWORD APIENTRY NtGdiDdAddAttachedSurface(
38 HANDLE hSurface,
39 HANDLE hSurfaceAttached,
40 PDD_ADDATTACHEDSURFACEDATA puAddAttachedSurfaceData
41 );
42
43 DWORD APIENTRY NtGdiDdAlphaBlt(VOID);
44
45 BOOL APIENTRY NtGdiDdAttachSurface(
46 HANDLE hSurfaceFrom,
47 HANDLE hSurfaceTo
48 );
49
50 DWORD APIENTRY NtGdiDdBeginMoCompFrame(
51 HANDLE hMoComp,
52 PDD_BEGINMOCOMPFRAMEDATA puBeginFrameData
53 );
54
55 DWORD APIENTRY NtGdiDdBlt(
56 HANDLE hSurfaceDest,
57 HANDLE hSurfaceSrc,
58 PDD_BLTDATA puBltData
59 );
60
61 DWORD APIENTRY NtGdiDdCanCreateD3DBuffer(
62 HANDLE hDirectDraw,
63 PDD_CANCREATESURFACEDATA puCanCreateSurfaceData
64 );
65
66 DWORD APIENTRY NtGdiDdCanCreateSurface(
67 HANDLE hDirectDraw,
68 PDD_CANCREATESURFACEDATA puCanCreateSurfaceData
69 );
70
71 DWORD APIENTRY NtGdiDdColorControl(
72 HANDLE hSurface,
73 PDD_COLORCONTROLDATA puColorControlData
74 );
75
76 DWORD APIENTRY NtGdiDdCreateD3DBuffer(
77 HANDLE hDirectDraw,
78 HANDLE *hSurface,
79 DDSURFACEDESC *puSurfaceDescription,
80 DD_SURFACE_GLOBAL *puSurfaceGlobalData,
81 DD_SURFACE_LOCAL *puSurfaceLocalData,
82 DD_SURFACE_MORE *puSurfaceMoreData,
83 DD_CREATESURFACEDATA *puCreateSurfaceData,
84 HANDLE *puhSurface
85 );
86
87 HANDLE APIENTRY NtGdiDdCreateDirectDrawObject(
88 HDC hdc
89 );
90
91 HANDLE APIENTRY NtGdiDdCreateMoComp(
92 HANDLE hDirectDraw,
93 PDD_CREATEMOCOMPDATA puCreateMoCompData
94 );
95
96 DWORD APIENTRY NtGdiDdCreateSurface(
97 HANDLE hDirectDraw,
98 HANDLE *hSurface,
99 DDSURFACEDESC *puSurfaceDescription,
100 DD_SURFACE_GLOBAL *puSurfaceGlobalData,
101 DD_SURFACE_LOCAL *puSurfaceLocalData,
102 DD_SURFACE_MORE *puSurfaceMoreData,
103 DD_CREATESURFACEDATA *puCreateSurfaceData,
104 HANDLE *puhSurface
105 );
106
107 DWORD APIENTRY NtGdiDdCreateSurfaceEx(
108 HANDLE hDirectDraw,
109 HANDLE hSurface,
110 DWORD dwSurfaceHandle
111 );
112
113 HANDLE APIENTRY NtGdiDdCreateSurfaceObject(
114 HANDLE hDirectDrawLocal,
115 HANDLE hSurface,
116 PDD_SURFACE_LOCAL puSurfaceLocal,
117 PDD_SURFACE_MORE puSurfaceMore,
118 PDD_SURFACE_GLOBAL puSurfaceGlobal,
119 BOOL bComplete
120 );
121
122 BOOL APIENTRY NtGdiDdDeleteDirectDrawObject(
123 HANDLE hDirectDrawLocal
124 );
125
126 BOOL APIENTRY NtGdiDdDeleteSurfaceObject(
127 HANDLE hSurface
128 );
129
130 DWORD APIENTRY NtGdiDdDestroyD3DBuffer(
131 HANDLE hSurface
132 );
133
134 DWORD APIENTRY NtGdiDdDestroyMoComp(
135 HANDLE hMoComp,
136 PDD_DESTROYMOCOMPDATA puBeginFrameData
137 );
138
139 DWORD APIENTRY NtGdiDdDestroySurface(
140 HANDLE hSurface,
141 BOOL bRealDestroy
142 );
143
144 DWORD APIENTRY NtGdiDdEndMoCompFrame(
145 HANDLE hMoComp,
146 PDD_ENDMOCOMPFRAMEDATA puEndFrameData
147 );
148
149 DWORD APIENTRY NtGdiDdFlip(
150 HANDLE hSurfaceCurrent,
151 HANDLE hSurfaceTarget,
152 HANDLE hSurfaceCurrentLeft,
153 HANDLE hSurfaceTargetLeft,
154 PDD_FLIPDATA puFlipData
155 );
156
157 DWORD APIENTRY NtGdiDdFlipToGDISurface(
158 HANDLE hDirectDraw,
159 PDD_FLIPTOGDISURFACEDATA puFlipToGDISurfaceData
160 );
161
162 DWORD APIENTRY NtGdiDdGetAvailDriverMemory(
163 HANDLE hDirectDraw,
164 PDD_GETAVAILDRIVERMEMORYDATA puGetAvailDriverMemoryData
165 );
166
167 DWORD APIENTRY NtGdiDdGetBltStatus(
168 HANDLE hSurface,
169 PDD_GETBLTSTATUSDATA puGetBltStatusData
170 );
171
172 HDC APIENTRY NtGdiDdGetDC(
173 HANDLE hSurface,
174 PALETTEENTRY *puColorTable
175 );
176
177 DWORD APIENTRY NtGdiDdGetDriverInfo(
178 HANDLE hDirectDraw,
179 PDD_GETDRIVERINFODATA puGetDriverInfoData
180 );
181
182 DWORD APIENTRY NtGdiDdGetDriverState(
183 PDD_GETDRIVERSTATEDATA pdata
184 );
185
186 DWORD APIENTRY NtGdiDdGetDxHandle(
187 HANDLE hDirectDraw,
188 HANDLE hSurface,
189 BOOL bRelease
190 );
191
192 DWORD APIENTRY NtGdiDdGetFlipStatus(
193 HANDLE hSurface,
194 PDD_GETFLIPSTATUSDATA puGetFlipStatusData
195 );
196
197 DWORD APIENTRY NtGdiDdGetInternalMoCompInfo(
198 HANDLE hDirectDraw,
199 PDD_GETINTERNALMOCOMPDATA puGetInternalData
200 );
201
202 DWORD APIENTRY NtGdiDdGetMoCompBuffInfo(
203 HANDLE hDirectDraw,
204 PDD_GETMOCOMPCOMPBUFFDATA puGetBuffData
205 );
206
207 DWORD APIENTRY NtGdiDdGetMoCompFormats(
208 HANDLE hDirectDraw,
209 PDD_GETMOCOMPFORMATSDATA puGetMoCompFormatsData
210 );
211
212 DWORD APIENTRY NtGdiDdGetMoCompGuids(
213 HANDLE hDirectDraw,
214 PDD_GETMOCOMPGUIDSDATA puGetMoCompGuidsData
215 );
216
217 DWORD APIENTRY NtGdiDdGetScanLine(
218 HANDLE hDirectDraw,
219 PDD_GETSCANLINEDATA puGetScanLineData
220 );
221
222 DWORD APIENTRY NtGdiDdLock(
223 HANDLE hSurface,
224 PDD_LOCKDATA puLockData,
225 HDC hdcClip
226 );
227
228 DWORD APIENTRY NtGdiDdLockD3D(
229 HANDLE hSurface,
230 PDD_LOCKDATA puLockData
231 );
232
233 BOOL APIENTRY NtGdiDdQueryDirectDrawObject(
234 HANDLE hDirectDrawLocal,
235 DD_HALINFO *pHalInfo,
236 DWORD *pCallBackFlags,
237 LPD3DNTHAL_CALLBACKS puD3dCallbacks,
238 LPD3DNTHAL_GLOBALDRIVERDATA puD3dDriverData,
239 PDD_D3DBUFCALLBACKS puD3dBufferCallbacks,
240 LPDDSURFACEDESC puD3dTextureFormats,
241 DWORD *puNumHeaps,
242 VIDEOMEMORY *puvmList,
243 DWORD *puNumFourCC,
244 DWORD *puFourCC
245 );
246
247 DWORD APIENTRY NtGdiDdQueryMoCompStatus(
248 HANDLE hMoComp,
249 PDD_QUERYMOCOMPSTATUSDATA puQueryMoCompStatusData
250 );
251
252 BOOL APIENTRY NtGdiDdReenableDirectDrawObject(
253 HANDLE hDirectDrawLocal,
254 BOOL *pubNewMode
255 );
256
257 BOOL APIENTRY NtGdiDdReleaseDC(
258 HANDLE hSurface
259 );
260
261 DWORD APIENTRY NtGdiDdRenderMoComp(
262 HANDLE hMoComp,
263 PDD_RENDERMOCOMPDATA puRenderMoCompData
264 );
265
266 BOOL APIENTRY NtGdiDdResetVisrgn(
267 HANDLE hSurface,
268 HWND hwnd
269 );
270
271 DWORD APIENTRY NtGdiDdSetColorKey(
272 HANDLE hSurface,
273 PDD_SETCOLORKEYDATA puSetColorKeyData
274 );
275
276 DWORD APIENTRY NtGdiDdSetExclusiveMode(
277 HANDLE hDirectDraw,
278 PDD_SETEXCLUSIVEMODEDATA puSetExclusiveModeData
279 );
280
281 BOOL APIENTRY NtGdiDdSetGammaRamp(
282 HANDLE hDirectDraw,
283 HDC hdc,
284 LPVOID lpGammaRamp
285 );
286
287 DWORD APIENTRY NtGdiDdSetOverlayPosition(
288 HANDLE hSurfaceSource,
289 HANDLE hSurfaceDestination,
290 PDD_SETOVERLAYPOSITIONDATA puSetOverlayPositionData
291 );
292
293 VOID APIENTRY NtGdiDdUnattachSurface(
294 HANDLE hSurface,
295 HANDLE hSurfaceAttached
296 );
297
298 DWORD APIENTRY NtGdiDdUnlock(
299 HANDLE hSurface,
300 PDD_UNLOCKDATA puUnlockData
301 );
302
303 DWORD APIENTRY NtGdiDdUnlockD3D(
304 HANDLE hSurface,
305 PDD_UNLOCKDATA puUnlockData
306 );
307
308 DWORD APIENTRY NtGdiDdUpdateOverlay(
309 HANDLE hSurfaceDestination,
310 HANDLE hSurfaceSource,
311 PDD_UPDATEOVERLAYDATA puUpdateOverlayData
312 );
313
314 DWORD APIENTRY NtGdiDdWaitForVerticalBlank(
315 HANDLE hDirectDraw,
316 PDD_WAITFORVERTICALBLANKDATA puWaitForVerticalBlankData
317 );
318
319
320 #endif