ee6a566d41ba82098ecbec175808952e1de997df
[reactos.git] / reactos / include / reactos / dll / directx / d3d8thk.h
1
2 #ifndef __D3D8THK_H
3 #define __D3D8THK_H
4
5 #include <ddrawint.h>
6 #include <d3dnthal.h>
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 /* FIXME missing PD3DNTHAL_CONTEXTCREATEDATA
13 BOOL STDCALL OsThunkD3dContextCreate(
14 HANDLE hDirectDrawLocal,
15 HANDLE hSurfColor,
16 HANDLE hSurfZ,
17 PD3DNTHAL_CONTEXTCREATEDATA pdcci
18 );
19
20
21 DWORD STDCALL OsThunkD3dContextDestroy(
22 PD3DNTHAL_CONTEXTDESTROYDATA pContextDestroyData
23 );
24
25 DWORD STDCALL
26 OsThunkD3dContextDestroyAll(PD3DNTHAL_CONTEXTDESTROYDATA pContextDestroyData);
27 */
28
29 DWORD STDCALL OsThunkD3dContextDestroyAll(LPVOID);
30
31 /* FIXME PD3DNTHAL_DRAWPRIMITIVES2DATA, PD3DNTHAL_VALIDATETEXTURESTAGESTATEDATA missing
32 DWORD STDCALL OsThunkD3dDrawPrimitives2(
33 HANDLE hCmdBuf,
34 HANDLE hVBuf,
35 PD3DNTHAL_DRAWPRIMITIVES2DATA pded,
36 FLATPTR *pfpVidMemCmd,
37 DWORD *pdwSizeCmd,
38 FLATPTR *pfpVidMemVtx,
39 DWORD *pdwSizeVtx
40 );
41
42 DWORD STDCALL OsThunkD3dValidateTextureStageState(
43 PD3DNTHAL_VALIDATETEXTURESTAGESTATEDATA pData
44 );
45 */
46
47 DWORD STDCALL OsThunkDdAddAttachedSurface(
48 HANDLE hSurface,
49 HANDLE hSurfaceAttached,
50 PDD_ADDATTACHEDSURFACEDATA puAddAttachedSurfaceData
51 );
52
53 DWORD STDCALL OsThunkDdAlphaBlt(VOID);
54
55 BOOL STDCALL OsThunkDdAttachSurface(
56 HANDLE hSurfaceFrom,
57 HANDLE hSurfaceTo
58 );
59
60 DWORD STDCALL OsThunkDdBeginMoCompFrame(
61 HANDLE hMoComp,
62 PDD_BEGINMOCOMPFRAMEDATA puBeginFrameData
63 );
64
65 DWORD STDCALL OsThunkDdBlt(
66 HANDLE hSurfaceDest,
67 HANDLE hSurfaceSrc,
68 PDD_BLTDATA puBltData
69 );
70
71 DWORD STDCALL OsThunkDdCanCreateD3DBuffer(
72 HANDLE hDirectDraw,
73 PDD_CANCREATESURFACEDATA puCanCreateSurfaceData
74 );
75
76 DWORD STDCALL OsThunkDdCanCreateSurface(
77 HANDLE hDirectDraw,
78 PDD_CANCREATESURFACEDATA puCanCreateSurfaceData
79 );
80
81 DWORD STDCALL OsThunkDdColorControl(
82 HANDLE hSurface,
83 PDD_COLORCONTROLDATA puColorControlData
84 );
85
86 DWORD STDCALL OsThunkDdCreateD3DBuffer(
87 HANDLE hDirectDraw,
88 HANDLE *hSurface,
89 DDSURFACEDESC *puSurfaceDescription,
90 DD_SURFACE_GLOBAL *puSurfaceGlobalData,
91 DD_SURFACE_LOCAL *puSurfaceLocalData,
92 DD_SURFACE_MORE *puSurfaceMoreData,
93 PDD_CREATESURFACEDATA puCreateSurfaceData,
94 HANDLE *puhSurface
95 );
96
97 HANDLE STDCALL OsThunkDdCreateDirectDrawObject(HDC hdc);
98
99 HANDLE STDCALL OsThunkDdCreateMoComp(
100 HANDLE hDirectDraw,
101 PDD_CREATEMOCOMPDATA puCreateMoCompData
102 );
103
104 DWORD STDCALL OsThunkDdCreateSurface(
105 HANDLE hDirectDraw,
106 HANDLE *hSurface,
107 DDSURFACEDESC *puSurfaceDescription,
108 DD_SURFACE_GLOBAL *puSurfaceGlobalData,
109 DD_SURFACE_LOCAL *puSurfaceLocalData,
110 DD_SURFACE_MORE *puSurfaceMoreData,
111 PDD_CREATESURFACEDATA puCreateSurfaceData,
112 HANDLE *puhSurface
113 );
114
115 DWORD STDCALL OsThunkDdCreateSurfaceEx(
116 HANDLE hDirectDraw,
117 HANDLE hSurface,
118 DWORD dwSurfaceHandle
119 );
120
121 HANDLE STDCALL OsThunkDdCreateSurfaceObject(
122 HANDLE hDirectDrawLocal,
123 HANDLE hSurface,
124 PDD_SURFACE_LOCAL puSurfaceLocal,
125 PDD_SURFACE_MORE puSurfaceMore,
126 PDD_SURFACE_GLOBAL puSurfaceGlobal,
127 BOOL bComplete
128 );
129
130 BOOL STDCALL OsThunkDdDeleteDirectDrawObject(
131 HANDLE hDirectDrawLocal
132 );
133
134 BOOL STDCALL OsThunkDdDeleteSurfaceObject(
135 HANDLE hSurface
136 );
137
138 DWORD STDCALL OsThunkDdDestroyD3DBuffer(
139 HANDLE hSurface
140 );
141
142 DWORD STDCALL OsThunkDdDestroyMoComp(
143 HANDLE hMoComp,
144 PDD_DESTROYMOCOMPDATA puBeginFrameData
145 );
146
147 DWORD STDCALL OsThunkDdDestroySurface(
148 HANDLE hSurface,
149 BOOL bRealDestroy
150 );
151
152 DWORD STDCALL OsThunkDdEndMoCompFrame(
153 HANDLE hMoComp,
154 PDD_ENDMOCOMPFRAMEDATA puEndFrameData
155 );
156
157 DWORD STDCALL OsThunkDdFlip(
158 HANDLE hSurfaceCurrent,
159 HANDLE hSurfaceTarget,
160 HANDLE hSurfaceCurrentLeft,
161 HANDLE hSurfaceTargetLeft,
162 PDD_FLIPDATA puFlipData
163 );
164
165 DWORD STDCALL OsThunkDdFlipToGDISurface(
166 HANDLE hDirectDraw,
167 PDD_FLIPTOGDISURFACEDATA puFlipToGDISurfaceData
168 );
169
170 DWORD STDCALL OsThunkDdGetAvailDriverMemory(
171 HANDLE hDirectDraw,
172 PDD_GETAVAILDRIVERMEMORYDATA puGetAvailDriverMemoryData
173 );
174
175 DWORD STDCALL OsThunkDdGetBltStatus(
176 HANDLE hSurface,
177 PDD_GETBLTSTATUSDATA puGetBltStatusData
178 );
179
180 HDC STDCALL OsThunkDdGetDC(
181 HANDLE hSurface,
182 PALETTEENTRY *puColorTable
183 );
184
185 DWORD STDCALL OsThunkDdGetDriverInfo(
186 HANDLE hDirectDraw,
187 PDD_GETDRIVERINFODATA puGetDriverInfoData
188 );
189
190 DWORD STDCALL OsThunkDdGetDriverState(
191 PDD_GETDRIVERSTATEDATA pdata
192 );
193
194 DWORD STDCALL OsThunkDdGetDxHandle(
195 HANDLE hDirectDraw,
196 HANDLE hSurface,
197 BOOL bRelease
198 );
199
200 DWORD STDCALL OsThunkDdGetFlipStatus(
201 HANDLE hSurface,
202 PDD_GETFLIPSTATUSDATA puGetFlipStatusData
203 );
204
205 DWORD STDCALL OsThunkDdGetInternalMoCompInfo(
206 HANDLE hDirectDraw,
207 PDD_GETINTERNALMOCOMPDATA puGetInternalData
208 );
209
210 DWORD STDCALL OsThunkDdGetMoCompBuffInfo(
211 HANDLE hDirectDraw,
212 PDD_GETMOCOMPCOMPBUFFDATA puGetBuffData
213 );
214
215 DWORD STDCALL OsThunkDdGetMoCompFormats(
216 HANDLE hDirectDraw,
217 PDD_GETMOCOMPFORMATSDATA puGetMoCompFormatsData
218 );
219
220 DWORD STDCALL OsThunkDdGetMoCompGuids(
221 HANDLE hDirectDraw,
222 PDD_GETMOCOMPGUIDSDATA puGetMoCompGuidsData
223 );
224
225 DWORD STDCALL OsThunkDdGetScanLine(
226 HANDLE hDirectDraw,
227 PDD_GETSCANLINEDATA puGetScanLineData
228 );
229
230 DWORD STDCALL OsThunkDdLock(
231 HANDLE hSurface,
232 PDD_LOCKDATA puLockData,
233 HDC hdcClip
234 );
235
236 DWORD STDCALL OsThunkDdLockD3D(
237 HANDLE hSurface,
238 PDD_LOCKDATA puLockData
239 );
240
241
242 BOOL STDCALL OsThunkDdQueryDirectDrawObject(
243 HANDLE hDirectDrawLocal,
244 DD_HALINFO *pHalInfo,
245 DWORD *pCallBackFlags,
246 LPD3DNTHAL_CALLBACKS puD3dCallbacks,
247 LPD3DNTHAL_GLOBALDRIVERDATA puD3dDriverData,
248 PDD_D3DBUFCALLBACKS puD3dBufferCallbacks,
249 LPDDSURFACEDESC puD3dTextureFormats,
250 DWORD *puNumHeaps,
251 VIDEOMEMORY *puvmList,
252 DWORD *puNumFourCC,
253 DWORD *puFourCC
254 );
255
256
257 DWORD STDCALL OsThunkDdQueryMoCompStatus(
258 HANDLE hMoComp,
259 PDD_QUERYMOCOMPSTATUSDATA puQueryMoCompStatusData
260 );
261
262 BOOL STDCALL OsThunkDdReenableDirectDrawObject(
263 HANDLE hDirectDrawLocal,
264 BOOL *pubNewMode
265 );
266
267 BOOL STDCALL OsThunkDdReleaseDC(
268 HANDLE hSurface
269 );
270
271 DWORD STDCALL OsThunkDdRenderMoComp(
272 HANDLE hMoComp,
273 PDD_RENDERMOCOMPDATA puRenderMoCompData
274 );
275
276 BOOL STDCALL OsThunkDdResetVisrgn(
277 HANDLE hSurface,
278 HWND hwnd
279 );
280
281 DWORD STDCALL OsThunkDdSetColorKey(
282 HANDLE hSurface,
283 PDD_SETCOLORKEYDATA puSetColorKeyData
284 );
285
286 DWORD STDCALL OsThunkDdSetExclusiveMode(
287 HANDLE hDirectDraw,
288 PDD_SETEXCLUSIVEMODEDATA puSetExclusiveModeData
289 );
290
291 BOOL STDCALL OsThunkDdSetGammaRamp(
292 HANDLE hDirectDraw,
293 HDC hdc,
294 LPVOID lpGammaRamp
295 );
296
297 DWORD STDCALL OsThunkDdSetOverlayPosition(
298 HANDLE hSurfaceSource,
299 HANDLE hSurfaceDestination,
300 PDD_SETOVERLAYPOSITIONDATA puSetOverlayPositionData
301 );
302
303 VOID STDCALL OsThunkDdUnattachSurface(
304 HANDLE hSurface,
305 HANDLE hSurfaceAttached
306 );
307
308 DWORD STDCALL OsThunkDdUnlock(
309 HANDLE hSurface,
310 PDD_UNLOCKDATA puUnlockData
311 );
312
313 DWORD STDCALL OsThunkDdUnlockD3D(
314 HANDLE hSurface,
315 PDD_UNLOCKDATA puUnlockData
316 );
317
318 DWORD STDCALL OsThunkDdUpdateOverlay(
319 HANDLE hSurfaceDestination,
320 HANDLE hSurfaceSource,
321 PDD_UPDATEOVERLAYDATA puUpdateOverlayData
322 );
323
324 DWORD STDCALL OsThunkDdWaitForVerticalBlank(
325 HANDLE hDirectDraw,
326 PDD_WAITFORVERTICALBLANKDATA puWaitForVerticalBlankData
327 );
328
329 #ifdef __cplusplus
330 } /* extern "C" */
331 #endif
332
333 #endif // __D3D8THK_H