ReactOS 0.4.17-dev-934-g091855f
d3dx9core.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2007, 2008 Tony Wasserka
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#include "d3dx9.h"
20
21#ifndef __WINE_D3DX9CORE_H
22#define __WINE_D3DX9CORE_H
23
24/**********************************************
25 ***************** Definitions ****************
26 **********************************************/
27#define D3DX_VERSION 0x0902
28#ifndef D3DX_SDK_VERSION
29#define D3DX_SDK_VERSION 43
30#endif
31#define D3DXSPRITE_DONOTSAVESTATE 0x00000001
32#define D3DXSPRITE_DONOTMODIFY_RENDERSTATE 0x00000002
33#define D3DXSPRITE_OBJECTSPACE 0x00000004
34#define D3DXSPRITE_BILLBOARD 0x00000008
35#define D3DXSPRITE_ALPHABLEND 0x00000010
36#define D3DXSPRITE_SORT_TEXTURE 0x00000020
37#define D3DXSPRITE_SORT_DEPTH_FRONTTOBACK 0x00000040
38#define D3DXSPRITE_SORT_DEPTH_BACKTOFRONT 0x00000080
39#define D3DXSPRITE_DO_NOT_ADDREF_TEXTURE 0x00000100
40
41/**********************************************
42 ******************** GUIDs *******************
43 **********************************************/
44DEFINE_GUID(IID_ID3DXBuffer, 0x8ba5fb08, 0x5195, 0x40e2, 0xac, 0x58, 0xd, 0x98, 0x9c, 0x3a, 0x1, 0x2);
45DEFINE_GUID(IID_ID3DXFont, 0xd79dbb70, 0x5f21, 0x4d36, 0xbb, 0xc2, 0xff, 0x52, 0x5c, 0x21, 0x3c, 0xdc);
46DEFINE_GUID(IID_ID3DXLine, 0xd379ba7f, 0x9042, 0x4ac4, 0x9f, 0x5e, 0x58, 0x19, 0x2a, 0x4c, 0x6b, 0xd8);
47DEFINE_GUID(IID_ID3DXRenderToEnvMap, 0x313f1b4b, 0xc7b0, 0x4fa2, 0x9d, 0x9d, 0x8d, 0x38, 0xb, 0x64, 0x38, 0x5e);
48DEFINE_GUID(IID_ID3DXRenderToSurface, 0x6985f346, 0x2c3d, 0x43b3, 0xbe, 0x8b, 0xda, 0xae, 0x8a, 0x3, 0xd8, 0x94);
49DEFINE_GUID(IID_ID3DXSprite, 0xba0b762d, 0x7d28, 0x43ec, 0xb9, 0xdc, 0x2f, 0x84, 0x44, 0x3b, 0x6, 0x14);
50
51/**********************************************
52 ****************** typedefs ******************
53 **********************************************/
54typedef struct ID3DXBuffer *LPD3DXBUFFER;
55typedef struct ID3DXFont *LPD3DXFONT;
56typedef struct ID3DXLine *LPD3DXLINE;
57typedef struct ID3DXRenderToEnvMap *LPD3DXRenderToEnvMap;
58typedef struct ID3DXRenderToSurface *LPD3DXRENDERTOSURFACE;
59typedef struct ID3DXSprite *LPD3DXSPRITE;
60
61/**********************************************
62 *********** interface declarations ***********
63 **********************************************/
64#define INTERFACE ID3DXBuffer
66{
67 /*** IUnknown methods ***/
71 /*** ID3DXBuffer methods ***/
72 STDMETHOD_(void *, GetBufferPointer)(THIS) PURE;
73 STDMETHOD_(DWORD, GetBufferSize)(THIS) PURE;
74};
75#undef INTERFACE
76
77#if !defined(__cplusplus) || defined(CINTERFACE)
78/*** IUnknown methods ***/
79#define ID3DXBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
80#define ID3DXBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
81#define ID3DXBuffer_Release(p) (p)->lpVtbl->Release(p)
82/*** ID3DXBuffer methods ***/
83#define ID3DXBuffer_GetBufferPointer(p) (p)->lpVtbl->GetBufferPointer(p)
84#define ID3DXBuffer_GetBufferSize(p) (p)->lpVtbl->GetBufferSize(p)
85#else
86/*** IUnknown methods ***/
87#define ID3DXBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
88#define ID3DXBuffer_AddRef(p) (p)->AddRef()
89#define ID3DXBuffer_Release(p) (p)->Release()
90/*** ID3DXBuffer methods ***/
91#define ID3DXBuffer_GetBufferPointer(p) (p)->GetBufferPointer()
92#define ID3DXBuffer_GetBufferSize(p) (p)->GetBufferSize()
93#endif
94
95typedef struct _D3DXFONT_DESCA
96{
97 INT Height;
98 UINT Width;
101 BOOL Italic;
108
109typedef struct _D3DXFONT_DESCW
110{
111 INT Height;
112 UINT Width;
113 UINT Weight;
115 BOOL Italic;
122
123DECL_WINELIB_TYPE_AW(D3DXFONT_DESC)
124DECL_WINELIB_TYPE_AW(LPD3DXFONT_DESC)
125
126#define INTERFACE ID3DXFont
128{
129 /*** IUnknown methods ***/
133 /*** ID3DXFont methods ***/
139
141 STDMETHOD(GetGlyphData)(THIS_ UINT glyph, struct IDirect3DTexture9 **texture,
142 RECT *blackbox, POINT *cellinc) PURE;
143
144 STDMETHOD(PreloadCharacters)(THIS_ UINT first, UINT last) PURE;
145 STDMETHOD(PreloadGlyphs)(THIS_ UINT first, UINT last) PURE;
146 STDMETHOD(PreloadTextA)(THIS_ const char *string, INT count) PURE;
147 STDMETHOD(PreloadTextW)(THIS_ const WCHAR *string, INT count) PURE;
148
149 STDMETHOD_(INT, DrawTextA)(THIS_ struct ID3DXSprite *sprite, const char *string,
151 STDMETHOD_(INT, DrawTextW)(THIS_ struct ID3DXSprite *sprite, const WCHAR *string,
153
154 STDMETHOD(OnLostDevice)(THIS) PURE;
155 STDMETHOD(OnResetDevice)(THIS) PURE;
156};
157#undef INTERFACE
158
159#if !defined(__cplusplus) || defined(CINTERFACE)
160
161/*** IUnknown methods ***/
162#define ID3DXFont_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
163#define ID3DXFont_AddRef(p) (p)->lpVtbl->AddRef(p)
164#define ID3DXFont_Release(p) (p)->lpVtbl->Release(p)
165/*** ID3DXFont methods ***/
166#define ID3DXFont_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
167#define ID3DXFont_GetDescA(p,a) (p)->lpVtbl->GetDescA(p,a)
168#define ID3DXFont_GetDescW(p,a) (p)->lpVtbl->GetDescW(p,a)
169#define ID3DXFont_GetTextMetricsA(p,a) (p)->lpVtbl->GetTextMetricsA(p,a)
170#define ID3DXFont_GetTextMetricsW(p,a) (p)->lpVtbl->GetTextMetricsW(p,a)
171#define ID3DXFont_GetDC(p) (p)->lpVtbl->GetDC(p)
172#define ID3DXFont_GetGlyphData(p,a,b,c,d) (p)->lpVtbl->GetGlyphData(p,a,b,c,d)
173#define ID3DXFont_PreloadCharacters(p,a,b) (p)->lpVtbl->PreloadCharacters(p,a,b)
174#define ID3DXFont_PreloadGlyphs(p,a,b) (p)->lpVtbl->PreloadGlyphs(p,a,b)
175#define ID3DXFont_PreloadTextA(p,a,b) (p)->lpVtbl->PreloadTextA(p,a,b)
176#define ID3DXFont_PreloadTextW(p,a,b) (p)->lpVtbl->PreloadTextW(p,a,b)
177#define ID3DXFont_DrawTextA(p,a,b,c,d,e,f) (p)->lpVtbl->DrawTextA(p,a,b,c,d,e,f)
178#define ID3DXFont_DrawTextW(p,a,b,c,d,e,f) (p)->lpVtbl->DrawTextW(p,a,b,c,d,e,f)
179#define ID3DXFont_OnLostDevice(p) (p)->lpVtbl->OnLostDevice(p)
180#define ID3DXFont_OnResetDevice(p) (p)->lpVtbl->OnResetDevice(p)
181#else
182/*** IUnknown methods ***/
183#define ID3DXFont_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
184#define ID3DXFont_AddRef(p) (p)->AddRef()
185#define ID3DXFont_Release(p) (p)->Release()
186/*** ID3DXFont methods ***/
187#define ID3DXFont_GetDevice(p,a) (p)->GetDevice(a)
188#define ID3DXFont_GetDescA(p,a) (p)->GetDescA(a)
189#define ID3DXFont_GetDescW(p,a) (p)->GetDescW(a)
190#define ID3DXFont_GetTextMetricsA(p,a) (p)->GetTextMetricsA(a)
191#define ID3DXFont_GetTextMetricsW(p,a) (p)->GetTextMetricsW(a)
192#define ID3DXFont_GetDC(p) (p)->GetDC()
193#define ID3DXFont_GetGlyphData(p,a,b,c,d) (p)->GetGlyphData(a,b,c,d)
194#define ID3DXFont_PreloadCharacters(p,a,b) (p)->PreloadCharacters(a,b)
195#define ID3DXFont_PreloadGlyphs(p,a,b) (p)->PreloadGlyphs(a,b)
196#define ID3DXFont_PreloadTextA(p,a,b) (p)->PreloadTextA(a,b)
197#define ID3DXFont_PreloadTextW(p,a,b) (p)->PreloadTextW(a,b)
198#define ID3DXFont_DrawTextA(p,a,b,c,d,e,f) (p)->DrawTextA(a,b,c,d,e,f)
199#define ID3DXFont_DrawTextW(p,a,b,c,d,e,f) (p)->DrawTextW(a,b,c,d,e,f)
200#define ID3DXFont_OnLostDevice(p) (p)->OnLostDevice()
201#define ID3DXFont_OnResetDevice(p) (p)->OnResetDevice()
202#endif
203#define ID3DXFont_DrawText WINELIB_NAME_AW(ID3DXFont_DrawText)
204#define ID3DXFont_GetDesc WINELIB_NAME_AW(ID3DXFont_GetDesc)
205#define ID3DXFont_GetTextMetrics WINELIB_NAME_AW(ID3DXFont_GetTextMetrics)
206#define ID3DXFont_PreloadText WINELIB_NAME_AW(ID3DXFont_PreloadText)
207
208#define INTERFACE ID3DXLine
210{
211 /*** IUnknown methods ***/
215
216 /*** ID3DXLine methods ***/
218
220 STDMETHOD(Draw)(THIS_ const D3DXVECTOR2 *vertexlist, DWORD vertexlistcount, D3DCOLOR color) PURE;
221 STDMETHOD(DrawTransform)(THIS_ const D3DXVECTOR3 *vertexlist, DWORD vertexlistcount,
223 STDMETHOD(SetPattern)(THIS_ DWORD pattern) PURE;
224 STDMETHOD_(DWORD, GetPattern)(THIS) PURE;
225 STDMETHOD(SetPatternScale)(THIS_ FLOAT scale) PURE;
226 STDMETHOD_(FLOAT, GetPatternScale)(THIS) PURE;
227 STDMETHOD(SetWidth)(THIS_ FLOAT width) PURE;
228 STDMETHOD_(FLOAT, GetWidth)(THIS) PURE;
229 STDMETHOD(SetAntialias)(THIS_ BOOL antialias) PURE;
230 STDMETHOD_(BOOL, GetAntialias)(THIS) PURE;
231 STDMETHOD(SetGLLines)(THIS_ BOOL gl_lines) PURE;
232 STDMETHOD_(BOOL, GetGLLines)(THIS) PURE;
233 STDMETHOD(End)(THIS) PURE;
234
235 STDMETHOD(OnLostDevice)(THIS) PURE;
236 STDMETHOD(OnResetDevice)(THIS) PURE;
237};
238#undef INTERFACE
239
240#if !defined(__cplusplus) || defined(CINTERFACE)
241/*** IUnknown methods ***/
242#define ID3DXLine_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
243#define ID3DXLine_AddRef(p) (p)->lpVtbl->AddRef(p)
244#define ID3DXLine_Release(p) (p)->lpVtbl->Release(p)
245/*** ID3DXLine methods ***/
246#define ID3DXLine_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
247#define ID3DXLine_Begin(p) (p)->lpVtbl->Begin(p)
248#define ID3DXLine_Draw(p,a,b,c) (p)->lpVtbl->Draw(p,a,b,c)
249#define ID3DXLine_DrawTransform(p,a,b,c,d) (p)->lpVtbl->DrawTransform(p,a,b,c,d)
250#define ID3DXLine_SetPattern(p,a) (p)->lpVtbl->SetPattern(p,a)
251#define ID3DXLine_GetPattern(p) (p)->lpVtbl->GetPattern(p)
252#define ID3DXLine_SetPatternScale(p,a) (p)->lpVtbl->SetPatternScale(p,a)
253#define ID3DXLine_GetPatternScale(p) (p)->lpVtbl->GetPatternScale(p)
254#define ID3DXLine_SetWidth(p,a) (p)->lpVtbl->SetWidth(p,a)
255#define ID3DXLine_GetWidth(p) (p)->lpVtbl->GetWidth(p)
256#define ID3DXLine_SetAntialias(p,a) (p)->lpVtbl->SetAntialias(p,a)
257#define ID3DXLine_GetAntialias(p) (p)->lpVtbl->GetAntialias(p)
258#define ID3DXLine_SetGLLines(p,a) (p)->lpVtbl->SetGLLines(p,a)
259#define ID3DXLine_GetGLLines(p) (p)->lpVtbl->GetGLLines(p)
260#define ID3DXLine_End(p) (p)->lpVtbl->End(p)
261#define ID3DXLine_OnLostDevice(p) (p)->lpVtbl->OnLostDevice(p)
262#define ID3DXLine_OnResetDevice(p) (p)->lpVtbl->OnResetDevice(p)
263#else
264/*** IUnknown methods ***/
265#define ID3DXLine_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
266#define ID3DXLine_AddRef(p) (p)->AddRef()
267#define ID3DXLine_Release(p) (p)->Release()
268/*** ID3DXLine methods ***/
269#define ID3DXLine_GetDevice(p,a) (p)->GetDevice(a)
270#define ID3DXLine_Begin(p) (p)->Begin()
271#define ID3DXLine_Draw(p,a,b,c) (p)->Draw(a,b,c)
272#define ID3DXLine_DrawTransform(p,a,b,c,d) (p)->DrawTransform(a,b,c,d)
273#define ID3DXLine_SetPattern(p,a) (p)->SetPattern(a)
274#define ID3DXLine_GetPattern(p) (p)->GetPattern()
275#define ID3DXLine_SetPatternScale(p,a) (p)->SetPatternScale(a)
276#define ID3DXLine_GetPatternScale(p) (p)->GetPatternScale()
277#define ID3DXLine_SetWidth(p,a) (p)->SetWidth(a)
278#define ID3DXLine_GetWidth(p) (p)->GetWidth()
279#define ID3DXLine_SetAntialias(p,a) (p)->SetAntialias(a)
280#define ID3DXLine_GetAntialias(p) (p)->GetAntialias()
281#define ID3DXLine_SetGLLines(p,a) (p)->SetGLLines(a)
282#define ID3DXLine_GetGLLines(p) (p)->GetGLLines()
283#define ID3DXLine_End(p) (p)->End()
284#define ID3DXLine_OnLostDevice(p) (p)->OnLostDevice()
285#define ID3DXLine_OnResetDevice(p) (p)->OnResetDevice()
286#endif
287
288typedef struct _D3DXRTE_DESC
289{
290 UINT Size;
296
297#define INTERFACE ID3DXRenderToEnvMap
298DECLARE_INTERFACE_(ID3DXRenderToEnvMap, IUnknown)
299{
300 /*** IUnknown methods ***/
304
305 /*** ID3DXRenderToEnvMap methods ***/
308
309 STDMETHOD(BeginCube)(THIS_ struct IDirect3DCubeTexture9 *cubetex) PURE;
310 STDMETHOD(BeginSphere)(THIS_ struct IDirect3DTexture9 *tex) PURE;
311 STDMETHOD(BeginHemisphere)(THIS_ struct IDirect3DTexture9 *texzpos, struct IDirect3DTexture9 *texzneg) PURE;
312 STDMETHOD(BeginParabolic)(THIS_ struct IDirect3DTexture9 *texzpos, struct IDirect3DTexture9 *texzneg) PURE;
313
314 STDMETHOD(Face)(THIS_ D3DCUBEMAP_FACES face, DWORD mipfilter) PURE;
315 STDMETHOD(End)(THIS_ DWORD mipfilter) PURE;
316
317 STDMETHOD(OnLostDevice)(THIS) PURE;
318 STDMETHOD(OnResetDevice)(THIS) PURE;
319};
320#undef INTERFACE
321
322#if !defined(__cplusplus) || defined(CINTERFACE)
323/*** IUnknown methods ***/
324#define ID3DXRenderToEnvMap_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
325#define ID3DXRenderToEnvMap_AddRef(p) (p)->lpVtbl->AddRef(p)
326#define ID3DXRenderToEnvMap_Release(p) (p)->lpVtbl->Release(p)
327/*** ID3DXRenderToEnvMap methods ***/
328#define ID3DXRenderToEnvMap_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
329#define ID3DXRenderToEnvMap_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
330#define ID3DXRenderToEnvMap_BeginCube(p,a) (p)->lpVtbl->BeginCube(p,a)
331#define ID3DXRenderToEnvMap_BeginSphere(p,a) (p)->lpVtbl->BeginSphere(p,a)
332#define ID3DXRenderToEnvMap_BeginHemisphere(p,a,b) (p)->lpVtbl->BeginHemisphere(p,a,b)
333#define ID3DXRenderToEnvMap_BeginParabolic(p,a,b) (p)->lpVtbl->BeginParabolic(p,a,b)
334#define ID3DXRenderToEnvMap_Face(p,a,b) (p)->lpVtbl->Face(p,a,b)
335#define ID3DXRenderToEnvMap_End(p,a) (p)->lpVtbl->End(p,a)
336#define ID3DXRenderToEnvMap_OnLostDevice(p) (p)->lpVtbl->OnLostDevice(p)
337#define ID3DXRenderToEnvMap_OnLostDevice(p) (p)->lpVtbl->OnLostDevice(p)
338#else
339/*** IUnknown methods ***/
340#define ID3DXRenderToEnvMap_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
341#define ID3DXRenderToEnvMap_AddRef(p) (p)->AddRef()
342#define ID3DXRenderToEnvMap_Release(p) (p)->Release()
343/*** ID3DXRenderToEnvMap methods ***/
344#define ID3DXRenderToEnvMap_GetDevice(p,a) (p)->GetDevice(a)
345#define ID3DXRenderToEnvMap_GetDesc(p,a) (p)->GetDesc(a)
346#define ID3DXRenderToEnvMap_BeginCube(p,a) (p)->BeginCube(a)
347#define ID3DXRenderToEnvMap_BeginSphere(p,a) (p)->BeginSphere(a)
348#define ID3DXRenderToEnvMap_BeginHemisphere(p,a,b) (p)->BeginHemisphere(a,b)
349#define ID3DXRenderToEnvMap_BeginParabolic(p,a,b) (p)->BeginParabolic(a,b)
350#define ID3DXRenderToEnvMap_Face(p,a,b) (p)->Face(a,b)
351#define ID3DXRenderToEnvMap_End(p,a) (p)->End(a)
352#define ID3DXRenderToEnvMap_OnLostDevice(p) (p)->OnLostDevice()
353#define ID3DXRenderToEnvMap_OnLostDevice(p) (p)->OnLostDevice()
354#endif
355
356typedef struct _D3DXRTS_DESC
357{
358 UINT Width;
359 UINT Height;
364
365#define INTERFACE ID3DXRenderToSurface
366DECLARE_INTERFACE_(ID3DXRenderToSurface, IUnknown)
367{
368 /*** IUnknown methods ***/
372 /*** ID3DXRenderToSurface methods ***/
375
376 STDMETHOD(BeginScene)(THIS_ struct IDirect3DSurface9 *surface, const D3DVIEWPORT9 *viewport) PURE;
377 STDMETHOD(EndScene)(THIS_ DWORD mipfilter) PURE;
378
379 STDMETHOD(OnLostDevice)(THIS) PURE;
380 STDMETHOD(OnResetDevice)(THIS) PURE;
381};
382#undef INTERFACE
383
384#if !defined(__cplusplus) || defined(CINTERFACE)
385/*** IUnknown methods ***/
386#define ID3DXRenderToSurface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
387#define ID3DXRenderToSurface_AddRef(p) (p)->lpVtbl->AddRef(p)
388#define ID3DXRenderToSurface_Release(p) (p)->lpVtbl->Release(p)
389/*** ID3DXRenderToSurface methods ***/
390#define ID3DXRenderToSurface_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
391#define ID3DXRenderToSurface_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
392#define ID3DXRenderToSurface_BeginScene(p,a,b) (p)->lpVtbl->BeginScene(p,a,b)
393#define ID3DXRenderToSurface_EndScene(p,a) (p)->lpVtbl->EndScene(p,a)
394#define ID3DXRenderToSurface_OnLostDevice(p) (p)->lpVtbl->OnLostDevice(p)
395#define ID3DXRenderToSurface_OnResetDevice(p) (p)->lpVtbl->OnResetDevice(p)
396#else
397/*** IUnknown methods ***/
398#define ID3DXRenderToSurface_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
399#define ID3DXRenderToSurface_AddRef(p) (p)->AddRef()
400#define ID3DXRenderToSurface_Release(p) (p)->Release()
401/*** ID3DXRenderToSurface methods ***/
402#define ID3DXRenderToSurface_GetDevice(p,a) (p)->GetDevice(a)
403#define ID3DXRenderToSurface_GetDesc(p,a) (p)->GetDesc(a)
404#define ID3DXRenderToSurface_BeginScene(p,a,b) (p)->BeginScene(a,b)
405#define ID3DXRenderToSurface_EndScene(p,a) (p)->EndScene(a)
406#define ID3DXRenderToSurface_OnLostDevice(p) (p)->OnLostDevice()
407#define ID3DXRenderToSurface_OnResetDevice(p) (p)->OnResetDevice()
408#endif
409
410#define INTERFACE ID3DXSprite
412{
413 /*** IUnknown methods ***/
417 /*** ID3DXSprite methods ***/
419
421 STDMETHOD(SetTransform)(THIS_ const D3DXMATRIX *transform) PURE;
422 STDMETHOD(SetWorldViewRH)(THIS_ const D3DXMATRIX *world, const D3DXMATRIX *view) PURE;
423 STDMETHOD(SetWorldViewLH)(THIS_ const D3DXMATRIX *world, const D3DXMATRIX *view) PURE;
424
426 STDMETHOD(Draw)(THIS_ struct IDirect3DTexture9 *texture, const RECT *rect,
427 const D3DXVECTOR3 *center, const D3DXVECTOR3 *position, D3DCOLOR color) PURE;
429 STDMETHOD(End)(THIS) PURE;
430
431 STDMETHOD(OnLostDevice)(THIS) PURE;
432 STDMETHOD(OnResetDevice)(THIS) PURE;
433};
434#undef INTERFACE
435
436#if !defined(__cplusplus) || defined(CINTERFACE)
437/*** IUnknown methods ***/
438#define ID3DXSprite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
439#define ID3DXSprite_AddRef(p) (p)->lpVtbl->AddRef(p)
440#define ID3DXSprite_Release(p) (p)->lpVtbl->Release(p)
441/*** ID3DXSprite methods ***/
442#define ID3DXSprite_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
443#define ID3DXSprite_GetTransform(p,a) (p)->lpVtbl->GetTransform(p,a)
444#define ID3DXSprite_SetTransform(p,a) (p)->lpVtbl->SetTransform(p,a)
445#define ID3DXSprite_SetWorldViewRH(p,a,b) (p)->lpVtbl->SetWorldViewRH(p,a,b)
446#define ID3DXSprite_SetWorldViewLH(p,a,b) (p)->lpVtbl->SetWorldViewLH(p,a,b)
447#define ID3DXSprite_Begin(p,a) (p)->lpVtbl->Begin(p,a)
448#define ID3DXSprite_Draw(p,a,b,c,d,e) (p)->lpVtbl->Draw(p,a,b,c,d,e)
449#define ID3DXSprite_Flush(p) (p)->lpVtbl->Flush(p)
450#define ID3DXSprite_End(p) (p)->lpVtbl->End(p)
451#define ID3DXSprite_OnLostDevice(p) (p)->lpVtbl->OnLostDevice(p)
452#define ID3DXSprite_OnResetDevice(p) (p)->lpVtbl->OnResetDevice(p)
453#else
454/*** IUnknown methods ***/
455#define ID3DXSprite_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
456#define ID3DXSprite_AddRef(p) (p)->AddRef()
457#define ID3DXSprite_Release(p) (p)->Release()
458/*** ID3DXSprite methods ***/
459#define ID3DXSprite_GetDevice(p,a) (p)->GetDevice(a)
460#define ID3DXSprite_GetTransform(p,a) (p)->GetTransform(a)
461#define ID3DXSprite_SetTransform(p,a) (p)->SetTransform(a)
462#define ID3DXSprite_SetWorldViewRH(p,a,b) (p)->SetWorldViewRH(a,b)
463#define ID3DXSprite_SetWorldViewLH(p,a,b) (p)->SetWorldViewLH(a,b)
464#define ID3DXSprite_Begin(p,a) (p)->Begin(a)
465#define ID3DXSprite_Draw(p,a,b,c,d,e) (p)->Draw(a,b,c,d,e)
466#define ID3DXSprite_Flush(p) (p)->Flush()
467#define ID3DXSprite_End(p) (p)->End()
468#define ID3DXSprite_OnLostDevice(p) (p)->OnLostDevice()
469#define ID3DXSprite_OnResetDevice(p) (p)->OnResetDevice()
470#endif
471
472/**********************************************
473 ****************** functions *****************
474 **********************************************/
475#ifdef __cplusplus
476extern "C" {
477#endif
478
479BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers);
481 UINT miplevels, BOOL italic, DWORD charset, DWORD precision, DWORD quality, DWORD pitchandfamily,
482 const char *facename, struct ID3DXFont **font);
484 UINT miplevels, BOOL italic, DWORD charset, DWORD precision, DWORD quality, DWORD pitchandfamily,
485 const WCHAR *facename, struct ID3DXFont **font);
486#define D3DXCreateFont WINELIB_NAME_AW(D3DXCreateFont)
488 const D3DXFONT_DESCA *desc, struct ID3DXFont **font);
490 const D3DXFONT_DESCW *desc, struct ID3DXFont **font);
491#define D3DXCreateFontIndirect WINELIB_NAME_AW(D3DXCreateFontIndirect)
492HRESULT WINAPI D3DXCreateLine(struct IDirect3DDevice9 *device, struct ID3DXLine **line);
494 D3DFORMAT format, BOOL stencil, D3DFORMAT stencil_format, struct ID3DXRenderToEnvMap **rtem);
496 D3DFORMAT format, BOOL stencil, D3DFORMAT stencil_format, struct ID3DXRenderToSurface **rts);
497HRESULT WINAPI D3DXCreateSprite(struct IDirect3DDevice9 *device, struct ID3DXSprite **sprite);
500
501#ifdef __cplusplus
502}
503#endif
504
505#endif /* __WINE_D3DX9CORE_H */
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN Begin
Definition: acpixf.h:1301
#define DECLARE_INTERFACE_(i, b)
Definition: basetyps.h:78
#define PURE
Definition: basetyps.h:64
#define THIS_
Definition: basetyps.h:65
#define THIS
Definition: basetyps.h:66
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define STDMETHOD(m)
Definition: basetyps.h:62
_In_ BOOLEAN Release
Definition: cdrom.h:920
CFF_Charset charset
Definition: cffcmap.c:137
RECT rect
Definition: combotst.c:67
enum _D3DFORMAT D3DFORMAT
enum _D3DCUBEMAP_FACES D3DCUBEMAP_FACES
struct ID3DXBuffer ID3DXBuffer
Definition: d3dx8core.h:51
struct ID3DXFont ID3DXFont
Definition: d3dx8core.h:53
#define LF_FACESIZE
Definition: dimm.idl:39
_Check_return_ _In_ PQUERY_INTERFACE QueryInterface
Definition: dispmprt.h:1318
WORD face[3]
Definition: mesh.c:4854
HRESULT WINAPI D3DXCreateRenderToEnvMap(struct IDirect3DDevice9 *device, UINT size, UINT miplevels, D3DFORMAT format, BOOL stencil, D3DFORMAT stencil_format, struct ID3DXRenderToEnvMap **rtem)
Definition: render.c:748
HRESULT WINAPI D3DXCreateSprite(struct IDirect3DDevice9 *device, struct ID3DXSprite **sprite)
Definition: sprite.c:561
struct ID3DXFont * LPD3DXFONT
Definition: d3dx9core.h:57
struct ID3DXLine * LPD3DXLINE
Definition: d3dx9core.h:58
HRESULT WINAPI D3DXCreateFontW(struct IDirect3DDevice9 *device, INT height, UINT width, UINT weight, UINT miplevels, BOOL italic, DWORD charset, DWORD precision, DWORD quality, DWORD pitchandfamily, const WCHAR *facename, struct ID3DXFont **font)
Definition: font.c:870
struct ID3DXRenderToEnvMap * LPD3DXRenderToEnvMap
Definition: d3dx9core.h:59
struct _D3DXFONT_DESCW D3DXFONT_DESCW
struct _D3DXRTS_DESC D3DXRTS_DESC
HRESULT WINAPI D3DXCreateFontA(struct IDirect3DDevice9 *device, INT height, UINT width, UINT weight, UINT miplevels, BOOL italic, DWORD charset, DWORD precision, DWORD quality, DWORD pitchandfamily, const char *facename, struct ID3DXFont **font)
Definition: font.c:847
HRESULT WINAPI D3DXCreateLine(struct IDirect3DDevice9 *device, struct ID3DXLine **line)
Definition: line.c:303
UINT WINAPI D3DXGetDriverLevel(struct IDirect3DDevice9 *device)
Definition: util.c:403
struct _D3DXFONT_DESCW * LPD3DXFONT_DESCW
struct _D3DXFONT_DESCA * LPD3DXFONT_DESCA
HRESULT WINAPI D3DXCreateFontIndirectA(struct IDirect3DDevice9 *device, const D3DXFONT_DESCA *desc, struct ID3DXFont **font)
Definition: font.c:895
struct ID3DXBuffer * LPD3DXBUFFER
Definition: d3dx9core.h:56
struct ID3DXSprite * LPD3DXSPRITE
Definition: d3dx9core.h:61
struct ID3DXRenderToSurface * LPD3DXRENDERTOSURFACE
Definition: d3dx9core.h:60
HRESULT WINAPI D3DXCreateFontIndirectW(struct IDirect3DDevice9 *device, const D3DXFONT_DESCW *desc, struct ID3DXFont **font)
Definition: font.c:911
struct _D3DXFONT_DESCA D3DXFONT_DESCA
struct _D3DXRTE_DESC D3DXRTE_DESC
HRESULT WINAPI D3DXCreateRenderToSurface(struct IDirect3DDevice9 *device, UINT width, UINT height, D3DFORMAT format, BOOL stencil, D3DFORMAT stencil_format, struct ID3DXRenderToSurface **rts)
Definition: render.c:372
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
Definition: main.c:44
BOOL WINAPI D3DXDebugMute(BOOL mute)
Definition: util.c:394
DWORD IDirect3DSurface9
Definition: dxva2api.idl:23
DWORD IDirect3DDevice9
Definition: dxva2api.idl:22
@ Flush
Definition: fatprocs.h:1055
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
return pList GetDevice()
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546
GLuint GLenum GLenum transform
Definition: glext.h:9407
GLenum GLuint texture
Definition: glext.h:6295
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:9032
GLsizeiptr size
Definition: glext.h:5919
GLuint color
Definition: glext.h:6243
GLubyte * pattern
Definition: glext.h:7787
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
Definition: glext.h:11745
GLbitfield flags
Definition: glext.h:7161
const GLint * first
Definition: glext.h:5794
GLenum GLint GLint * precision
Definition: glext.h:7539
GLint GLfloat GLint stencil
Definition: glext.h:6260
unsigned int UINT
Definition: sysinfo.c:13
REFIID riid
Definition: atlbase.h:39
int quality
Definition: jpeglib.h:994
void Draw(HDC aDc)
Definition: magnifier.c:359
char string[160]
Definition: util.h:11
static HDC
Definition: imagelist.c:88
D3D11_SHADER_VARIABLE_DESC desc
Definition: reflection.c:1683
static const LARGE_INTEGER *static const HANDLE const LARGE_INTEGER *static PSLIST_ENTRY PSLIST_ENTRY last
Definition: sync.c:64
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:83
Definition: mk_font.cpp:20
INT WINAPI DrawTextW(HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags)
Definition: defwnd.c:16
short WCHAR
Definition: pedump.c:58
char CHAR
Definition: pedump.c:57
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:68
#define REFIID
Definition: guiddef.h:118
HDC WINAPI GetDC(_In_opt_ HWND)
weight
Definition: sortkey.c:157
Definition: dcommon.idl:28
BYTE PitchAndFamily
Definition: d3dx9core.h:107
BYTE OutputPrecision
Definition: d3dx9core.h:105
CHAR FaceName[LF_FACESIZE]
Definition: d3dx9core.h:108
BYTE PitchAndFamily
Definition: d3dx9core.h:121
BYTE OutputPrecision
Definition: d3dx9core.h:119
WCHAR FaceName[LF_FACESIZE]
Definition: d3dx9core.h:122
UINT MipLevels
Definition: d3dx9core.h:293
BOOL DepthStencil
Definition: d3dx9core.h:295
D3DFORMAT DepthStencilFormat
Definition: d3dx9core.h:296
D3DFORMAT Format
Definition: d3dx9core.h:294
D3DFORMAT Format
Definition: d3dx9core.h:362
BOOL DepthStencil
Definition: d3dx9core.h:363
D3DFORMAT DepthStencilFormat
Definition: d3dx9core.h:364
Definition: devices.h:37
Definition: parser.c:49
Definition: sprite.c:36
float FLOAT
Definition: typedefs.h:69
int32_t INT
Definition: typedefs.h:58
uint32_t ULONG
Definition: typedefs.h:59
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition: wcsftime.cpp:383
INT WINAPI DrawTextA(HDC hdc, LPCSTR str, INT count, LPRECT rect, UINT flags)
Definition: font.c:373
#define DECL_WINELIB_TYPE_AW(type)
Definition: windef.h:195
#define WINAPI
Definition: msvc.h:6
BOOL WINAPI GetTextMetricsW(_In_ HDC, _Out_ LPTEXTMETRICW)
Definition: text.c:221
BOOL WINAPI GetTransform(HDC, DWORD, XFORM *)
BOOL WINAPI GetTextMetricsA(_In_ HDC, _Out_ LPTEXTMETRICA)
Definition: text.c:200
unsigned char BYTE
Definition: xxhash.c:193