1 | /*
|
---|
2 | * Copyright (C) 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 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #include <d3dx9.h>
|
---|
29 |
|
---|
30 | #ifndef __WINE_D3DX9TEX_H
|
---|
31 | #define __WINE_D3DX9TEX_H
|
---|
32 |
|
---|
33 | /**********************************************
|
---|
34 | ***************** Definitions ****************
|
---|
35 | **********************************************/
|
---|
36 | #define D3DX_FILTER_NONE 0x00000001
|
---|
37 | #define D3DX_FILTER_POINT 0x00000002
|
---|
38 | #define D3DX_FILTER_LINEAR 0x00000003
|
---|
39 | #define D3DX_FILTER_TRIANGLE 0x00000004
|
---|
40 | #define D3DX_FILTER_BOX 0x00000005
|
---|
41 | #define D3DX_FILTER_MIRROR_U 0x00010000
|
---|
42 | #define D3DX_FILTER_MIRROR_V 0x00020000
|
---|
43 | #define D3DX_FILTER_MIRROR_W 0x00040000
|
---|
44 | #define D3DX_FILTER_MIRROR 0x00070000
|
---|
45 | #define D3DX_FILTER_DITHER 0x00080000
|
---|
46 | #define D3DX_FILTER_DITHER_DIFFUSION 0x00100000
|
---|
47 | #define D3DX_FILTER_SRGB_IN 0x00200000
|
---|
48 | #define D3DX_FILTER_SRGB_OUT 0x00400000
|
---|
49 | #define D3DX_FILTER_SRGB 0x00600000
|
---|
50 |
|
---|
51 | #define D3DX_NORMALMAP_MIRROR_U 0x00010000
|
---|
52 | #define D3DX_NORMALMAP_MIRROR_V 0x00020000
|
---|
53 | #define D3DX_NORMALMAP_MIRROR 0x00030000
|
---|
54 | #define D3DX_NORMALMAP_INVERTSIGN 0x00080000
|
---|
55 | #define D3DX_NORMALMAP_COMPUTE_OCCLUSION 0x00100000
|
---|
56 |
|
---|
57 | #define D3DX_CHANNEL_RED 0x00000001
|
---|
58 | #define D3DX_CHANNEL_BLUE 0x00000002
|
---|
59 | #define D3DX_CHANNEL_GREEN 0x00000004
|
---|
60 | #define D3DX_CHANNEL_ALPHA 0x00000008
|
---|
61 | #define D3DX_CHANNEL_LUMINANCE 0x00000010
|
---|
62 |
|
---|
63 | /**********************************************
|
---|
64 | **************** Typedefs ****************
|
---|
65 | **********************************************/
|
---|
66 | typedef enum _D3DXIMAGE_FILEFORMAT
|
---|
67 | {
|
---|
68 | D3DXIFF_BMP,
|
---|
69 | D3DXIFF_JPG,
|
---|
70 | D3DXIFF_TGA,
|
---|
71 | D3DXIFF_PNG,
|
---|
72 | D3DXIFF_DDS,
|
---|
73 | D3DXIFF_PPM,
|
---|
74 | D3DXIFF_DIB,
|
---|
75 | D3DXIFF_FORCE_DWORD = 0x7fffffff
|
---|
76 | } D3DXIMAGE_FILEFORMAT;
|
---|
77 |
|
---|
78 | typedef struct _D3DXIMAGE_INFO
|
---|
79 | {
|
---|
80 | UINT Width;
|
---|
81 | UINT Height;
|
---|
82 | UINT Depth;
|
---|
83 | UINT MipLevels;
|
---|
84 | D3DFORMAT Format;
|
---|
85 | D3DRESOURCETYPE ResourceType;
|
---|
86 | D3DXIMAGE_FILEFORMAT ImageFileFormat;
|
---|
87 | } D3DXIMAGE_INFO;
|
---|
88 |
|
---|
89 | /**********************************************
|
---|
90 | ****************** Functions *****************
|
---|
91 | **********************************************/
|
---|
92 | /* Typedefs for callback functions */
|
---|
93 | typedef VOID (WINAPI *LPD3DXFILL2D)(D3DXVECTOR4 *out, CONST D3DXVECTOR2 *texcoord, CONST D3DXVECTOR2 *texelsize, LPVOID data);
|
---|
94 | typedef VOID (WINAPI *LPD3DXFILL3D)(D3DXVECTOR4 *out, CONST D3DXVECTOR3 *texcoord, CONST D3DXVECTOR3 *texelsize, LPVOID data);
|
---|
95 |
|
---|
96 | #ifdef __cplusplus
|
---|
97 | extern "C" {
|
---|
98 | #endif
|
---|
99 |
|
---|
100 |
|
---|
101 | /* Image Information */
|
---|
102 | HRESULT WINAPI D3DXGetImageInfoFromFileA(LPCSTR file, D3DXIMAGE_INFO *info);
|
---|
103 | HRESULT WINAPI D3DXGetImageInfoFromFileW(LPCWSTR file, D3DXIMAGE_INFO *info);
|
---|
104 | #define D3DXGetImageInfoFromFile WINELIB_NAME_AW(D3DXGetImageInfoFromFile)
|
---|
105 |
|
---|
106 | HRESULT WINAPI D3DXGetImageInfoFromResourceA(HMODULE module, LPCSTR resource, D3DXIMAGE_INFO *info);
|
---|
107 | HRESULT WINAPI D3DXGetImageInfoFromResourceW(HMODULE module, LPCWSTR resource, D3DXIMAGE_INFO *info);
|
---|
108 | #define D3DXGetImageInfoFromResource WINELIB_NAME_AW(D3DXGetImageInfoFromResource)
|
---|
109 |
|
---|
110 | HRESULT WINAPI D3DXGetImageInfoFromFileInMemory(LPCVOID data, UINT datasize, D3DXIMAGE_INFO *info);
|
---|
111 |
|
---|
112 |
|
---|
113 | /* Surface Loading/Saving */
|
---|
114 | HRESULT WINAPI D3DXLoadSurfaceFromFileA( LPDIRECT3DSURFACE9 destsurface,
|
---|
115 | CONST PALETTEENTRY *destpalette,
|
---|
116 | CONST RECT *destrect,
|
---|
117 | LPCSTR srcfile,
|
---|
118 | CONST RECT *srcrect,
|
---|
119 | DWORD filter,
|
---|
120 | D3DCOLOR colorkey,
|
---|
121 | D3DXIMAGE_INFO *srcinfo);
|
---|
122 |
|
---|
123 | HRESULT WINAPI D3DXLoadSurfaceFromFileW( LPDIRECT3DSURFACE9 destsurface,
|
---|
124 | CONST PALETTEENTRY *destpalette,
|
---|
125 | CONST RECT *destrect,
|
---|
126 | LPCWSTR srcfile,
|
---|
127 | CONST RECT *srcrect,
|
---|
128 | DWORD filter,
|
---|
129 | D3DCOLOR colorkey,
|
---|
130 | D3DXIMAGE_INFO *srcinfo);
|
---|
131 | #define D3DXLoadSurfaceFromFile WINELIB_NAME_AW(D3DXLoadSurfaceFromFile)
|
---|
132 |
|
---|
133 | HRESULT WINAPI D3DXLoadSurfaceFromResourceA( LPDIRECT3DSURFACE9 destsurface,
|
---|
134 | CONST PALETTEENTRY *destpalette,
|
---|
135 | CONST RECT *destrect,
|
---|
136 | HMODULE srcmodule,
|
---|
137 | LPCSTR resource,
|
---|
138 | CONST RECT *srcrect,
|
---|
139 | DWORD filter,
|
---|
140 | D3DCOLOR colorkey,
|
---|
141 | D3DXIMAGE_INFO *srcinfo);
|
---|
142 |
|
---|
143 | HRESULT WINAPI D3DXLoadSurfaceFromResourceW( LPDIRECT3DSURFACE9 destsurface,
|
---|
144 | CONST PALETTEENTRY *destpalette,
|
---|
145 | CONST RECT *destrect,
|
---|
146 | HMODULE srcmodule,
|
---|
147 | LPCWSTR resource,
|
---|
148 | CONST RECT *srcrect,
|
---|
149 | DWORD filter,
|
---|
150 | D3DCOLOR colorkey,
|
---|
151 | D3DXIMAGE_INFO *srcinfo);
|
---|
152 | #define D3DXLoadSurfaceFromResource WINELIB_NAME_AW(D3DXLoadSurfaceFromResource)
|
---|
153 |
|
---|
154 | HRESULT WINAPI D3DXLoadSurfaceFromFileInMemory(LPDIRECT3DSURFACE9 destsurface,
|
---|
155 | CONST PALETTEENTRY *destpalette,
|
---|
156 | CONST RECT*destrect,
|
---|
157 | LPCVOID srcdata,
|
---|
158 | UINT srcdatasize,
|
---|
159 | CONST RECT *srcrect,
|
---|
160 | DWORD filter,
|
---|
161 | D3DCOLOR colorkey,
|
---|
162 | D3DXIMAGE_INFO *srcinfo);
|
---|
163 |
|
---|
164 | HRESULT WINAPI D3DXLoadSurfaceFromSurface( LPDIRECT3DSURFACE9 destsurface,
|
---|
165 | CONST PALETTEENTRY *destpalette,
|
---|
166 | CONST RECT *destrect,
|
---|
167 | LPDIRECT3DSURFACE9 srcsurface,
|
---|
168 | CONST PALETTEENTRY *srcpalette,
|
---|
169 | CONST RECT *srcrect,
|
---|
170 | DWORD filter,
|
---|
171 | D3DCOLOR colorkey);
|
---|
172 |
|
---|
173 | HRESULT WINAPI D3DXLoadSurfaceFromMemory( LPDIRECT3DSURFACE9 destsurface,
|
---|
174 | CONST PALETTEENTRY *destpalette,
|
---|
175 | CONST RECT *destrect,
|
---|
176 | LPCVOID srcmemory,
|
---|
177 | D3DFORMAT srcformat,
|
---|
178 | UINT srcpitch,
|
---|
179 | CONST PALETTEENTRY *srcpalette,
|
---|
180 | CONST RECT *srcrect,
|
---|
181 | DWORD filter,
|
---|
182 | D3DCOLOR colorkey);
|
---|
183 |
|
---|
184 | HRESULT WINAPI D3DXSaveSurfaceToFileA( LPCSTR destfile,
|
---|
185 | D3DXIMAGE_FILEFORMAT destformat,
|
---|
186 | LPDIRECT3DSURFACE9 srcsurface,
|
---|
187 | CONST PALETTEENTRY *srcpalette,
|
---|
188 | CONST RECT *srcrect);
|
---|
189 |
|
---|
190 | HRESULT WINAPI D3DXSaveSurfaceToFileW( LPCWSTR destfile,
|
---|
191 | D3DXIMAGE_FILEFORMAT destformat,
|
---|
192 | LPDIRECT3DSURFACE9 srcsurface,
|
---|
193 | CONST PALETTEENTRY *srcpalette,
|
---|
194 | CONST RECT *srcrect);
|
---|
195 | #define D3DXSaveSurfaceToFile WINELIB_NAME_AW(D3DXSaveSurfaceToFile)
|
---|
196 |
|
---|
197 |
|
---|
198 | /* Volume Loading/Saving */
|
---|
199 | HRESULT WINAPI D3DXLoadVolumeFromFileA( LPDIRECT3DVOLUME9 destvolume,
|
---|
200 | CONST PALETTEENTRY *destpalette,
|
---|
201 | CONST D3DBOX *destbox,
|
---|
202 | LPCSTR srcfile,
|
---|
203 | CONST D3DBOX *srcbox,
|
---|
204 | DWORD filter,
|
---|
205 | D3DCOLOR colorkey,
|
---|
206 | D3DXIMAGE_INFO *srcinfo);
|
---|
207 |
|
---|
208 | HRESULT WINAPI D3DXLoadVolumeFromFileW( LPDIRECT3DVOLUME9 destVolume,
|
---|
209 | CONST PALETTEENTRY *destpalette,
|
---|
210 | CONST D3DBOX *destbox,
|
---|
211 | LPCWSTR srcfile,
|
---|
212 | CONST D3DBOX *srcbox,
|
---|
213 | DWORD filter,
|
---|
214 | D3DCOLOR colorkey,
|
---|
215 | D3DXIMAGE_INFO *srcinfo);
|
---|
216 | #define D3DXLoadVolumeFromFile WINELIB_NAME_AW(D3DXLoadVolumeFromFile)
|
---|
217 |
|
---|
218 | HRESULT WINAPI D3DXLoadVolumeFromResourceA( LPDIRECT3DVOLUME9 destVolume,
|
---|
219 | CONST PALETTEENTRY *destpalette,
|
---|
220 | CONST D3DBOX *destbox,
|
---|
221 | HMODULE srcmodule,
|
---|
222 | LPCSTR resource,
|
---|
223 | CONST D3DBOX *srcbox,
|
---|
224 | DWORD filter,
|
---|
225 | D3DCOLOR colorkey,
|
---|
226 | D3DXIMAGE_INFO *srcinfo);
|
---|
227 |
|
---|
228 | HRESULT WINAPI D3DXLoadVolumeFromResourceW( LPDIRECT3DVOLUME9 destVolume,
|
---|
229 | CONST PALETTEENTRY *destpalette,
|
---|
230 | CONST D3DBOX *destbox,
|
---|
231 | HMODULE srcmodule,
|
---|
232 | LPCWSTR resource,
|
---|
233 | CONST D3DBOX *srcbox,
|
---|
234 | DWORD filter,
|
---|
235 | D3DCOLOR colorkey,
|
---|
236 | D3DXIMAGE_INFO *srcinfo);
|
---|
237 | #define D3DXLoadVolumeFromResource WINELIB_NAME_AW(D3DXLoadVolumeFromResource)
|
---|
238 |
|
---|
239 | HRESULT WINAPI D3DXLoadVolumeFromFileInMemory(LPDIRECT3DVOLUME9 destvolume,
|
---|
240 | CONST PALETTEENTRY *destpalette,
|
---|
241 | CONST D3DBOX *destbox,
|
---|
242 | LPCVOID srcdata,
|
---|
243 | UINT srcdatasize,
|
---|
244 | CONST D3DBOX *srcbox,
|
---|
245 | DWORD filter,
|
---|
246 | D3DCOLOR colorkey,
|
---|
247 | D3DXIMAGE_INFO *srcinfo);
|
---|
248 |
|
---|
249 | HRESULT WINAPI D3DXLoadVolumeFromVolume( LPDIRECT3DVOLUME9 destvolume,
|
---|
250 | CONST PALETTEENTRY *destpalette,
|
---|
251 | CONST D3DBOX *destbox,
|
---|
252 | LPDIRECT3DVOLUME9 srcvolume,
|
---|
253 | CONST PALETTEENTRY *srcpalette,
|
---|
254 | CONST D3DBOX *srcbox,
|
---|
255 | DWORD filter,
|
---|
256 | D3DCOLOR colorkey);
|
---|
257 |
|
---|
258 | HRESULT WINAPI D3DXLoadVolumeFromMemory( LPDIRECT3DVOLUME9 destvolume,
|
---|
259 | CONST PALETTEENTRY *destpalette,
|
---|
260 | CONST D3DBOX *destbox,
|
---|
261 | LPCVOID srcmemory,
|
---|
262 | D3DFORMAT srcformat,
|
---|
263 | UINT srcrowpitch,
|
---|
264 | UINT srcslicepitch,
|
---|
265 | CONST PALETTEENTRY *srcpalette,
|
---|
266 | CONST D3DBOX *srcbox,
|
---|
267 | DWORD filter,
|
---|
268 | D3DCOLOR colorkey);
|
---|
269 |
|
---|
270 | HRESULT WINAPI D3DXSaveVolumeToFileA( LPCSTR destfile,
|
---|
271 | D3DXIMAGE_FILEFORMAT destformat,
|
---|
272 | LPDIRECT3DVOLUME9 srcvolume,
|
---|
273 | CONST PALETTEENTRY *srcpalette,
|
---|
274 | CONST D3DBOX *srcbox);
|
---|
275 |
|
---|
276 | HRESULT WINAPI D3DXSaveVolumeToFileW( LPCWSTR destfile,
|
---|
277 | D3DXIMAGE_FILEFORMAT destformat,
|
---|
278 | LPDIRECT3DVOLUME9 srcvolume,
|
---|
279 | CONST PALETTEENTRY *srcpalette,
|
---|
280 | CONST D3DBOX *srcbox);
|
---|
281 | #define D3DXSaveVolumeToFile WINELIB_NAME_AW(D3DXSaveVolumeToFile)
|
---|
282 |
|
---|
283 |
|
---|
284 | /* Texture, cube texture and volume texture creation */
|
---|
285 | HRESULT WINAPI D3DXCheckTextureRequirements( LPDIRECT3DDEVICE9 device,
|
---|
286 | UINT *width,
|
---|
287 | UINT *height,
|
---|
288 | UINT *miplevels,
|
---|
289 | DWORD usage,
|
---|
290 | D3DFORMAT *format,
|
---|
291 | D3DPOOL pool);
|
---|
292 | HRESULT WINAPI D3DXCheckCubeTextureRequirements( LPDIRECT3DDEVICE9 device,
|
---|
293 | UINT *size,
|
---|
294 | UINT *miplevels,
|
---|
295 | DWORD usage,
|
---|
296 | D3DFORMAT *format,
|
---|
297 | D3DPOOL pool);
|
---|
298 |
|
---|
299 | HRESULT WINAPI D3DXCheckVolumeTextureRequirements(LPDIRECT3DDEVICE9 device,
|
---|
300 | UINT *width,
|
---|
301 | UINT *height,
|
---|
302 | UINT *depth,
|
---|
303 | UINT *miplevels,
|
---|
304 | DWORD usage,
|
---|
305 | D3DFORMAT *format,
|
---|
306 | D3DPOOL pool);
|
---|
307 |
|
---|
308 | HRESULT WINAPI D3DXCreateTexture( LPDIRECT3DDEVICE9 device,
|
---|
309 | UINT width,
|
---|
310 | UINT height,
|
---|
311 | UINT miplevels,
|
---|
312 | DWORD usage,
|
---|
313 | D3DFORMAT format,
|
---|
314 | D3DPOOL pool,
|
---|
315 | LPDIRECT3DTEXTURE9 *texture);
|
---|
316 |
|
---|
317 | HRESULT WINAPI D3DXCreateCubeTexture( LPDIRECT3DDEVICE9 device,
|
---|
318 | UINT size,
|
---|
319 | UINT miplevels,
|
---|
320 | DWORD usage,
|
---|
321 | D3DFORMAT format,
|
---|
322 | D3DPOOL pool,
|
---|
323 | LPDIRECT3DCUBETEXTURE9 *cube);
|
---|
324 |
|
---|
325 | HRESULT WINAPI D3DXCreateVolumeTexture(LPDIRECT3DDEVICE9 device,
|
---|
326 | UINT width,
|
---|
327 | UINT height,
|
---|
328 | UINT depth,
|
---|
329 | UINT miplevels,
|
---|
330 | DWORD usage,
|
---|
331 | D3DFORMAT format,
|
---|
332 | D3DPOOL pool,
|
---|
333 | LPDIRECT3DVOLUMETEXTURE9 *volume);
|
---|
334 |
|
---|
335 | HRESULT WINAPI D3DXCreateTextureFromFileA( LPDIRECT3DDEVICE9 device,
|
---|
336 | LPCSTR srcfile,
|
---|
337 | LPDIRECT3DTEXTURE9 *texture);
|
---|
338 |
|
---|
339 | HRESULT WINAPI D3DXCreateTextureFromFileW( LPDIRECT3DDEVICE9 device,
|
---|
340 | LPCWSTR srcfile,
|
---|
341 | LPDIRECT3DTEXTURE9 *texture);
|
---|
342 | #define D3DXCreateTextureFromFile WINELIB_NAME_AW(D3DXCreateTextureFromFile)
|
---|
343 |
|
---|
344 | HRESULT WINAPI D3DXCreateCubeTextureFromFileA( LPDIRECT3DDEVICE9 device,
|
---|
345 | LPCSTR srcfile,
|
---|
346 | LPDIRECT3DCUBETEXTURE9 *cube);
|
---|
347 |
|
---|
348 | HRESULT WINAPI D3DXCreateCubeTextureFromFileW( LPDIRECT3DDEVICE9 device,
|
---|
349 | LPCWSTR srcfile,
|
---|
350 | LPDIRECT3DCUBETEXTURE9 *cube);
|
---|
351 | #define D3DXCreateCubeTextureFromFile WINELIB_NAME_AW(D3DXCreateCubeTextureFromFile)
|
---|
352 |
|
---|
353 | HRESULT WINAPI D3DXCreateVolumeTextureFromFileA(LPDIRECT3DDEVICE9 device,
|
---|
354 | LPCSTR srcfile,
|
---|
355 | LPDIRECT3DVOLUMETEXTURE9 *volume);
|
---|
356 |
|
---|
357 | HRESULT WINAPI D3DXCreateVolumeTextureFromFileW(LPDIRECT3DDEVICE9 device,
|
---|
358 | LPCWSTR srcfile,
|
---|
359 | LPDIRECT3DVOLUMETEXTURE9 *volume);
|
---|
360 | #define D3DXCreateVolumeTextureFromFile WINELIB_NAME_AW(D3DXCreateVolumeTextureFromFile)
|
---|
361 |
|
---|
362 | HRESULT WINAPI D3DXCreateTextureFromResourceA( LPDIRECT3DDEVICE9 device,
|
---|
363 | HMODULE srcmodule,
|
---|
364 | LPCSTR resource,
|
---|
365 | LPDIRECT3DTEXTURE9 *texture);
|
---|
366 |
|
---|
367 | HRESULT WINAPI D3DXCreateTextureFromResourceW( LPDIRECT3DDEVICE9 device,
|
---|
368 | HMODULE srcmodule,
|
---|
369 | LPCWSTR resource,
|
---|
370 | LPDIRECT3DTEXTURE9 *texture);
|
---|
371 | #define D3DXCreateTextureFromResource WINELIB_NAME_AW(D3DXCreateTextureFromResource)
|
---|
372 |
|
---|
373 | HRESULT WINAPI D3DXCreateCubeTextureFromResourceA( LPDIRECT3DDEVICE9 device,
|
---|
374 | HMODULE srcmodule,
|
---|
375 | LPCSTR resource,
|
---|
376 | LPDIRECT3DCUBETEXTURE9 *cube);
|
---|
377 | HRESULT WINAPI D3DXCreateCubeTextureFromResourceW( LPDIRECT3DDEVICE9 device,
|
---|
378 | HMODULE srcmodule,
|
---|
379 | LPCWSTR resource,
|
---|
380 | LPDIRECT3DCUBETEXTURE9 *cube);
|
---|
381 | #define D3DXCreateCubeTextureFromResource WINELIB_NAME_AW(D3DXCreateCubeTextureFromResource)
|
---|
382 |
|
---|
383 | HRESULT WINAPI D3DXCreateVolumeTextureFromResourceA(LPDIRECT3DDEVICE9 device,
|
---|
384 | HMODULE srcmodule,
|
---|
385 | LPCSTR resource,
|
---|
386 | LPDIRECT3DVOLUMETEXTURE9 *volume);
|
---|
387 | HRESULT WINAPI D3DXCreateVolumeTextureFromResourceW(LPDIRECT3DDEVICE9 device,
|
---|
388 | HMODULE srcmodule,
|
---|
389 | LPCWSTR resource,
|
---|
390 | LPDIRECT3DVOLUMETEXTURE9 *volume);
|
---|
391 | #define D3DXCreateVolumeTextureFromResource WINELIB_NAME_AW(D3DXCreateVolumeTextureFromResource)
|
---|
392 |
|
---|
393 | HRESULT WINAPI D3DXCreateTextureFromFileExA( LPDIRECT3DDEVICE9 device,
|
---|
394 | LPCSTR srcfile,
|
---|
395 | UINT width,
|
---|
396 | UINT height,
|
---|
397 | UINT miplevels,
|
---|
398 | DWORD usage,
|
---|
399 | D3DFORMAT format,
|
---|
400 | D3DPOOL pool,
|
---|
401 | DWORD filter,
|
---|
402 | DWORD mipfilter,
|
---|
403 | D3DCOLOR colorkey,
|
---|
404 | D3DXIMAGE_INFO *srcinfo,
|
---|
405 | PALETTEENTRY *palette,
|
---|
406 | LPDIRECT3DTEXTURE9 *texture);
|
---|
407 |
|
---|
408 | HRESULT WINAPI D3DXCreateTextureFromFileExW( LPDIRECT3DDEVICE9 device,
|
---|
409 | LPCWSTR srcfile,
|
---|
410 | UINT width,
|
---|
411 | UINT height,
|
---|
412 | UINT miplevels,
|
---|
413 | DWORD usage,
|
---|
414 | D3DFORMAT format,
|
---|
415 | D3DPOOL pool,
|
---|
416 | DWORD filter,
|
---|
417 | DWORD mipfilter,
|
---|
418 | D3DCOLOR colorkey,
|
---|
419 | D3DXIMAGE_INFO *srcinfo,
|
---|
420 | PALETTEENTRY *palette,
|
---|
421 | LPDIRECT3DTEXTURE9 *texture);
|
---|
422 | #define D3DXCreateTextureFromFileEx WINELIB_NAME_AW(D3DXCreateTextureFromFileEx)
|
---|
423 |
|
---|
424 | HRESULT WINAPI D3DXCreateCubeTextureFromFileExA( LPDIRECT3DDEVICE9 device,
|
---|
425 | LPCSTR srcfile,
|
---|
426 | UINT size,
|
---|
427 | UINT miplevels,
|
---|
428 | DWORD usage,
|
---|
429 | D3DFORMAT format,
|
---|
430 | D3DPOOL pool,
|
---|
431 | DWORD filter,
|
---|
432 | DWORD mipfilter,
|
---|
433 | D3DCOLOR colorkey,
|
---|
434 | D3DXIMAGE_INFO *srcinfo,
|
---|
435 | PALETTEENTRY *palette,
|
---|
436 | LPDIRECT3DCUBETEXTURE9 *cube);
|
---|
437 |
|
---|
438 | HRESULT WINAPI D3DXCreateCubeTextureFromFileExW( LPDIRECT3DDEVICE9 device,
|
---|
439 | LPCWSTR srcfile,
|
---|
440 | UINT size,
|
---|
441 | UINT miplevels,
|
---|
442 | DWORD usage,
|
---|
443 | D3DFORMAT format,
|
---|
444 | D3DPOOL pool,
|
---|
445 | DWORD filter,
|
---|
446 | DWORD mipfilter,
|
---|
447 | D3DCOLOR colorkey,
|
---|
448 | D3DXIMAGE_INFO *srcinfo,
|
---|
449 | PALETTEENTRY *palette,
|
---|
450 | LPDIRECT3DCUBETEXTURE9 *cube);
|
---|
451 | #define D3DXCreateCubeTextureFromFileEx WINELIB_NAME_AW(D3DXCreateCubeTextureFromFileEx)
|
---|
452 |
|
---|
453 | HRESULT WINAPI D3DXCreateVolumeTextureFromFileExA(LPDIRECT3DDEVICE9 device,
|
---|
454 | LPCSTR srcfile,
|
---|
455 | UINT width,
|
---|
456 | UINT height,
|
---|
457 | UINT depth,
|
---|
458 | UINT miplevels,
|
---|
459 | DWORD usage,
|
---|
460 | D3DFORMAT format,
|
---|
461 | D3DPOOL pool,
|
---|
462 | DWORD filter,
|
---|
463 | DWORD mipfilter,
|
---|
464 | D3DCOLOR colorkey,
|
---|
465 | D3DXIMAGE_INFO *srcinfo,
|
---|
466 | PALETTEENTRY *palette,
|
---|
467 | LPDIRECT3DVOLUMETEXTURE9 *volume);
|
---|
468 |
|
---|
469 | HRESULT WINAPI D3DXCreateVolumeTextureFromFileExW(LPDIRECT3DDEVICE9 device,
|
---|
470 | LPCWSTR srcfile,
|
---|
471 | UINT width,
|
---|
472 | UINT height,
|
---|
473 | UINT depth,
|
---|
474 | UINT miplevels,
|
---|
475 | DWORD usage,
|
---|
476 | D3DFORMAT format,
|
---|
477 | D3DPOOL pool,
|
---|
478 | DWORD filter,
|
---|
479 | DWORD mipfilter,
|
---|
480 | D3DCOLOR colorkey,
|
---|
481 | D3DXIMAGE_INFO *srcinfo,
|
---|
482 | PALETTEENTRY *palette,
|
---|
483 | LPDIRECT3DVOLUMETEXTURE9 *volume);
|
---|
484 | #define D3DXCreateVolumeTextureFromFileEx WINELIB_NAME_AW(D3DXCreateVolumeTextureFromFileEx)
|
---|
485 |
|
---|
486 | HRESULT WINAPI D3DXCreateTextureFromResourceExA( LPDIRECT3DDEVICE9 device,
|
---|
487 | HMODULE srcmodule,
|
---|
488 | LPCSTR resource,
|
---|
489 | UINT width,
|
---|
490 | UINT height,
|
---|
491 | UINT miplevels,
|
---|
492 | DWORD usage,
|
---|
493 | D3DFORMAT format,
|
---|
494 | D3DPOOL pool,
|
---|
495 | DWORD filter,
|
---|
496 | DWORD mipfilter,
|
---|
497 | D3DCOLOR colorkey,
|
---|
498 | D3DXIMAGE_INFO *srcinfo,
|
---|
499 | PALETTEENTRY *palette,
|
---|
500 | LPDIRECT3DTEXTURE9 *texture);
|
---|
501 |
|
---|
502 | HRESULT WINAPI D3DXCreateTextureFromResourceExW( LPDIRECT3DDEVICE9 device,
|
---|
503 | HMODULE srcmodule,
|
---|
504 | LPCWSTR resource,
|
---|
505 | UINT width,
|
---|
506 | UINT height,
|
---|
507 | UINT miplevels,
|
---|
508 | DWORD usage,
|
---|
509 | D3DFORMAT format,
|
---|
510 | D3DPOOL pool,
|
---|
511 | DWORD filter,
|
---|
512 | DWORD mipfilter,
|
---|
513 | D3DCOLOR colorkey,
|
---|
514 | D3DXIMAGE_INFO *srcinfo,
|
---|
515 | PALETTEENTRY *palette,
|
---|
516 | LPDIRECT3DTEXTURE9 *texture);
|
---|
517 | #define D3DXCreateTextureFromResourceEx WINELIB_NAME_AW(D3DXCreateTextureFromResourceEx)
|
---|
518 |
|
---|
519 | HRESULT WINAPI D3DXCreateCubeTextureFromResourceExA( LPDIRECT3DDEVICE9 device,
|
---|
520 | HMODULE srcmodule,
|
---|
521 | LPCSTR resource,
|
---|
522 | UINT size,
|
---|
523 | UINT miplevels,
|
---|
524 | DWORD usage,
|
---|
525 | D3DFORMAT format,
|
---|
526 | D3DPOOL pool,
|
---|
527 | DWORD filter,
|
---|
528 | DWORD mipfilter,
|
---|
529 | D3DCOLOR colorkey,
|
---|
530 | D3DXIMAGE_INFO *srcinfo,
|
---|
531 | PALETTEENTRY *palette,
|
---|
532 | LPDIRECT3DCUBETEXTURE9 *cube);
|
---|
533 |
|
---|
534 | HRESULT WINAPI D3DXCreateCubeTextureFromResourceExW( LPDIRECT3DDEVICE9 device,
|
---|
535 | HMODULE srcmodule,
|
---|
536 | LPCWSTR resource,
|
---|
537 | UINT size,
|
---|
538 | UINT miplevels,
|
---|
539 | DWORD usage,
|
---|
540 | D3DFORMAT format,
|
---|
541 | D3DPOOL pool,
|
---|
542 | DWORD filter,
|
---|
543 | DWORD mipfilter,
|
---|
544 | D3DCOLOR colorkey,
|
---|
545 | D3DXIMAGE_INFO *srcinfo,
|
---|
546 | PALETTEENTRY *palette,
|
---|
547 | LPDIRECT3DCUBETEXTURE9 *cube);
|
---|
548 | #define D3DXCreateCubeTextureFromResourceEx WINELIB_NAME_AW(D3DXCreateCubeTextureFromResourceEx)
|
---|
549 |
|
---|
550 | HRESULT WINAPI D3DXCreateVolumeTextureFromResourceExA(LPDIRECT3DDEVICE9 device,
|
---|
551 | HMODULE srcmodule,
|
---|
552 | LPCSTR resource,
|
---|
553 | UINT width,
|
---|
554 | UINT height,
|
---|
555 | UINT depth,
|
---|
556 | UINT miplevels,
|
---|
557 | DWORD usage,
|
---|
558 | D3DFORMAT format,
|
---|
559 | D3DPOOL pool,
|
---|
560 | DWORD filter,
|
---|
561 | DWORD mipfilter,
|
---|
562 | D3DCOLOR colorkey,
|
---|
563 | D3DXIMAGE_INFO *srcinfo,
|
---|
564 | PALETTEENTRY *palette,
|
---|
565 | LPDIRECT3DVOLUMETEXTURE9 *volume);
|
---|
566 |
|
---|
567 | HRESULT WINAPI D3DXCreateVolumeTextureFromResourceExW(LPDIRECT3DDEVICE9 device,
|
---|
568 | HMODULE srcmodule,
|
---|
569 | LPCWSTR resource,
|
---|
570 | UINT width,
|
---|
571 | UINT height,
|
---|
572 | UINT depth,
|
---|
573 | UINT miplevels,
|
---|
574 | DWORD usage,
|
---|
575 | D3DFORMAT format,
|
---|
576 | D3DPOOL pool,
|
---|
577 | DWORD filter,
|
---|
578 | DWORD mipfilter,
|
---|
579 | D3DCOLOR colorkey,
|
---|
580 | D3DXIMAGE_INFO *srcinfo,
|
---|
581 | PALETTEENTRY *palette,
|
---|
582 | LPDIRECT3DVOLUMETEXTURE9 *volume);
|
---|
583 | #define D3DXCreateVolumeTextureFromResourceEx WINELIB_NAME_AW(D3DXCreateVolumeTextureFromResourceEx)
|
---|
584 |
|
---|
585 | HRESULT WINAPI D3DXCreateTextureFromFileInMemory( LPDIRECT3DDEVICE9 device,
|
---|
586 | LPCVOID srcdata,
|
---|
587 | UINT srcdatasize,
|
---|
588 | LPDIRECT3DTEXTURE9* texture);
|
---|
589 |
|
---|
590 | HRESULT WINAPI D3DXCreateCubeTextureFromFileInMemory( LPDIRECT3DDEVICE9 device,
|
---|
591 | LPCVOID srcdata,
|
---|
592 | UINT srcdatasize,
|
---|
593 | LPDIRECT3DCUBETEXTURE9* cube);
|
---|
594 |
|
---|
595 | HRESULT WINAPI D3DXCreateVolumeTextureFromFileInMemory(LPDIRECT3DDEVICE9 device,
|
---|
596 | LPCVOID srcdata,
|
---|
597 | UINT srcdatasize,
|
---|
598 | LPDIRECT3DVOLUMETEXTURE9 *volume);
|
---|
599 |
|
---|
600 | HRESULT WINAPI D3DXCreateTextureFromFileInMemoryEx( LPDIRECT3DDEVICE9 device,
|
---|
601 | LPCVOID srcdata,
|
---|
602 | UINT srcdatasize,
|
---|
603 | UINT width,
|
---|
604 | UINT height,
|
---|
605 | UINT miplevels,
|
---|
606 | DWORD usage,
|
---|
607 | D3DFORMAT format,
|
---|
608 | D3DPOOL pool,
|
---|
609 | DWORD filter,
|
---|
610 | DWORD mipfilter,
|
---|
611 | D3DCOLOR colorkey,
|
---|
612 | D3DXIMAGE_INFO *srcinfo,
|
---|
613 | PALETTEENTRY *palette,
|
---|
614 | LPDIRECT3DTEXTURE9 *texture);
|
---|
615 |
|
---|
616 | HRESULT WINAPI D3DXCreateCubeTextureFromFileInMemoryEx( LPDIRECT3DDEVICE9 device,
|
---|
617 | LPCVOID srcdata,
|
---|
618 | UINT srcdatasize,
|
---|
619 | UINT size,
|
---|
620 | UINT miplevels,
|
---|
621 | DWORD usage,
|
---|
622 | D3DFORMAT format,
|
---|
623 | D3DPOOL pool,
|
---|
624 | DWORD filter,
|
---|
625 | DWORD mipfilter,
|
---|
626 | D3DCOLOR colorkey,
|
---|
627 | D3DXIMAGE_INFO *srcinfo,
|
---|
628 | PALETTEENTRY *palette,
|
---|
629 | LPDIRECT3DCUBETEXTURE9 *cube);
|
---|
630 |
|
---|
631 | HRESULT WINAPI D3DXCreateVolumeTextureFromFileInMemoryEx(LPDIRECT3DDEVICE9 device,
|
---|
632 | LPCVOID srcdata,
|
---|
633 | UINT srcdatasize,
|
---|
634 | UINT width,
|
---|
635 | UINT height,
|
---|
636 | UINT depth,
|
---|
637 | UINT miplevels,
|
---|
638 | DWORD usage,
|
---|
639 | D3DFORMAT format,
|
---|
640 | D3DPOOL pool,
|
---|
641 | DWORD filter,
|
---|
642 | DWORD mipfilter,
|
---|
643 | D3DCOLOR colorkey,
|
---|
644 | D3DXIMAGE_INFO *srcinfo,
|
---|
645 | PALETTEENTRY *palette,
|
---|
646 | LPDIRECT3DVOLUMETEXTURE9 *volume);
|
---|
647 |
|
---|
648 | HRESULT WINAPI D3DXSaveTextureToFileA(LPCSTR destfile,
|
---|
649 | D3DXIMAGE_FILEFORMAT destformat,
|
---|
650 | LPDIRECT3DBASETEXTURE9 srctexture,
|
---|
651 | CONST PALETTEENTRY *srcpalette);
|
---|
652 | HRESULT WINAPI D3DXSaveTextureToFileW(LPCWSTR destfile,
|
---|
653 | D3DXIMAGE_FILEFORMAT destformat,
|
---|
654 | LPDIRECT3DBASETEXTURE9 srctexture,
|
---|
655 | CONST PALETTEENTRY *srcpalette);
|
---|
656 | #define D3DXSaveTextureToFile WINELIB_NAME_AW(D3DXSaveTextureToFile)
|
---|
657 |
|
---|
658 |
|
---|
659 | /* Other functions */
|
---|
660 | HRESULT WINAPI D3DXFilterTexture( LPDIRECT3DBASETEXTURE9 texture,
|
---|
661 | CONST PALETTEENTRY *palette,
|
---|
662 | UINT srclevel,
|
---|
663 | DWORD filter);
|
---|
664 | #define D3DXFilterCubeTexture D3DXFilterTexture
|
---|
665 | #define D3DXFilterVolumeTexture D3DXFilterTexture
|
---|
666 |
|
---|
667 | HRESULT WINAPI D3DXFillTexture( LPDIRECT3DTEXTURE9 texture,
|
---|
668 | LPD3DXFILL2D function,
|
---|
669 | LPVOID data);
|
---|
670 |
|
---|
671 | HRESULT WINAPI D3DXFillCubeTexture( LPDIRECT3DCUBETEXTURE9 cube,
|
---|
672 | LPD3DXFILL3D function,
|
---|
673 | LPVOID data);
|
---|
674 |
|
---|
675 | HRESULT WINAPI D3DXFillVolumeTexture( LPDIRECT3DVOLUMETEXTURE9 volume,
|
---|
676 | LPD3DXFILL3D function,
|
---|
677 | LPVOID data);
|
---|
678 |
|
---|
679 | HRESULT WINAPI D3DXFillTextureTX( LPDIRECT3DTEXTURE9 texture,
|
---|
680 | CONST DWORD *function,
|
---|
681 | CONST D3DXVECTOR4 *constants,
|
---|
682 | UINT numconstants);
|
---|
683 |
|
---|
684 | HRESULT WINAPI D3DXFillCubeTextureTX( LPDIRECT3DCUBETEXTURE9 cube,
|
---|
685 | CONST DWORD *function,
|
---|
686 | CONST D3DXVECTOR4 *constants,
|
---|
687 | UINT numconstants);
|
---|
688 |
|
---|
689 | HRESULT WINAPI D3DXFillVolumeTextureTX(LPDIRECT3DVOLUMETEXTURE9 volume,
|
---|
690 | CONST DWORD *function,
|
---|
691 | CONST D3DXVECTOR4 *constants,
|
---|
692 | UINT numconstants);
|
---|
693 |
|
---|
694 | HRESULT WINAPI D3DXComputeNormalMap( LPDIRECT3DTEXTURE9 texture,
|
---|
695 | LPDIRECT3DTEXTURE9 srctexture,
|
---|
696 | CONST PALETTEENTRY *srcpalette,
|
---|
697 | DWORD flags,
|
---|
698 | DWORD channel,
|
---|
699 | FLOAT amplitude);
|
---|
700 |
|
---|
701 |
|
---|
702 | #ifdef __cplusplus
|
---|
703 | }
|
---|
704 | #endif
|
---|
705 |
|
---|
706 | #endif /* __WINE_D3DX9TEX_H */
|
---|