RetroArch
d3dx8tex.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (C) Microsoft Corporation. All Rights Reserved.
4  *
5  * File: d3dx8tex.h
6  * Content: D3DX texturing APIs
7  */
8 
9 #include "d3dx8.h"
10 
11 #ifndef __D3DX8TEX_H__
12 #define __D3DX8TEX_H__
13 
14 /*
15  * D3DX_FILTER flags:
16  * ------------------
17  *
18  * A valid filter must contain one of these values:
19  *
20  * D3DX_FILTER_NONE
21  * No scaling or filtering will take place. Pixels outside the bounds
22  * of the source image are assumed to be transparent black.
23  * D3DX_FILTER_POINT
24  * Each destination pixel is computed by sampling the nearest pixel
25  * from the source image.
26  * D3DX_FILTER_LINEAR
27  * Each destination pixel is computed by linearly interpolating between
28  * the nearest pixels in the source image. This filter works best
29  * when the scale on each axis is less than 2.
30  * D3DX_FILTER_TRIANGLE
31  * Every pixel in the source image contributes equally to the
32  * destination image. This is the slowest of all the filters.
33  * D3DX_FILTER_BOX
34  * Each pixel is computed by averaging a 2x2(x2) box pixels from
35  * the source image. Only works when the dimensions of the
36  * destination are half those of the source. (as with mip maps)
37  *
38  * And can be OR'd with any of these optional flags:
39  *
40  * D3DX_FILTER_MIRROR_U
41  * Indicates that pixels off the edge of the texture on the U-axis
42  * should be mirrored, not wraped.
43  * D3DX_FILTER_MIRROR_V
44  * Indicates that pixels off the edge of the texture on the V-axis
45  * should be mirrored, not wraped.
46  * D3DX_FILTER_MIRROR_W
47  * Indicates that pixels off the edge of the texture on the W-axis
48  * should be mirrored, not wraped.
49  * D3DX_FILTER_MIRROR
50  * Same as specifying D3DX_FILTER_MIRROR_U | D3DX_FILTER_MIRROR_V |
51  * D3DX_FILTER_MIRROR_V
52  * D3DX_FILTER_DITHER
53  * Dithers the resulting image.
54  *
55  */
56 
57 #define D3DX_FILTER_NONE (1 << 0)
58 #define D3DX_FILTER_POINT (2 << 0)
59 #define D3DX_FILTER_LINEAR (3 << 0)
60 #define D3DX_FILTER_TRIANGLE (4 << 0)
61 #define D3DX_FILTER_BOX (5 << 0)
62 
63 #define D3DX_FILTER_MIRROR_U (1 << 16)
64 #define D3DX_FILTER_MIRROR_V (2 << 16)
65 #define D3DX_FILTER_MIRROR_W (4 << 16)
66 #define D3DX_FILTER_MIRROR (7 << 16)
67 #define D3DX_FILTER_DITHER (8 << 16)
68 
69 /*
70  * D3DX_NORMALMAP flags:
71  * ---------------------
72  * These flags are used to control how D3DXComputeNormalMap generates normal
73  * maps. Any number of these flags may be OR'd together in any combination.
74  *
75  * D3DX_NORMALMAP_MIRROR_U
76  * Indicates that pixels off the edge of the texture on the U-axis
77  * should be mirrored, not wraped.
78  * D3DX_NORMALMAP_MIRROR_V
79  * Indicates that pixels off the edge of the texture on the V-axis
80  * should be mirrored, not wraped.
81  * D3DX_NORMALMAP_MIRROR
82  * Same as specifying D3DX_NORMALMAP_MIRROR_U | D3DX_NORMALMAP_MIRROR_V
83  * D3DX_NORMALMAP_INVERTSIGN
84  * Inverts the direction of each normal
85  * D3DX_NORMALMAP_COMPUTE_OCCLUSION
86  * Compute the per pixel Occlusion term and encodes it into the alpha.
87  * An Alpha of 1 means that the pixel is not obscured in anyway, and
88  * an alpha of 0 would mean that the pixel is completly obscured.
89  *
90  */
91 
92 #define D3DX_NORMALMAP_MIRROR_U (1 << 16)
93 #define D3DX_NORMALMAP_MIRROR_V (2 << 16)
94 #define D3DX_NORMALMAP_MIRROR (3 << 16)
95 #define D3DX_NORMALMAP_INVERTSIGN (8 << 16)
96 #define D3DX_NORMALMAP_COMPUTE_OCCLUSION (16 << 16)
97 
98 /*
99  * D3DX_CHANNEL flags:
100  * -------------------
101  * These flags are used by functions which operate on or more channels
102  * in a texture.
103  *
104  * D3DX_CHANNEL_RED
105  * Indicates the red channel should be used
106  * D3DX_CHANNEL_BLUE
107  * Indicates the blue channel should be used
108  * D3DX_CHANNEL_GREEN
109  * Indicates the green channel should be used
110  * D3DX_CHANNEL_ALPHA
111  * Indicates the alpha channel should be used
112  * D3DX_CHANNEL_LUMINANCE
113  * Indicates the luminaces of the red green and blue channels should be
114  * used.
115  *
116  */
117 
118 #define D3DX_CHANNEL_RED (1 << 0)
119 #define D3DX_CHANNEL_BLUE (1 << 1)
120 #define D3DX_CHANNEL_GREEN (1 << 2)
121 #define D3DX_CHANNEL_ALPHA (1 << 3)
122 #define D3DX_CHANNEL_LUMINANCE (1 << 4)
123 
124 
125 
126 
127 /*
128  * D3DXIMAGE_FILEFORMAT:
129  * ---------------------
130  * This enum is used to describe supported image file formats.
131  *
132  */
133 
135 {
143  D3DXIFF_FORCE_DWORD = 0x7fffffff
144 
146 
147 
148 /*
149  * LPD3DXFILL2D and LPD3DXFILL3D:
150  * ------------------------------
151  * Function types used by the texture fill functions.
152  *
153  * Parameters:
154  * pOut
155  * Pointer to a vector which the function uses to return its result.
156  * X,Y,Z,W will be mapped to R,G,B,A respectivly.
157  * pTexCoord
158  * Pointer to a vector containing the coordinates of the texel currently
159  * being evaluated. Textures and VolumeTexture texcoord components
160  * range from 0 to 1. CubeTexture texcoord component range from -1 to 1.
161  * pTexelSize
162  * Pointer to a vector containing the dimensions of the current texel.
163  * pData
164  * Pointer to user data.
165  *
166  */
167 
168 typedef VOID (*LPD3DXFILL2D)(D3DXVECTOR4 *pOut, D3DXVECTOR2 *pTexCoord, D3DXVECTOR2 *pTexelSize, LPVOID pData);
169 typedef VOID (*LPD3DXFILL3D)(D3DXVECTOR4 *pOut, D3DXVECTOR3 *pTexCoord, D3DXVECTOR3 *pTexelSize, LPVOID pData);
170 
171 /*
172  * D3DXIMAGE_INFO:
173  * ---------------
174  * This structure is used to return a rough description of what the
175  * the original contents of an image file looked like.
176  *
177  * Width
178  * Width of original image in pixels
179  * Height
180  * Height of original image in pixels
181  * Depth
182  * Depth of original image in pixels
183  * MipLevels
184  * Number of mip levels in original image
185  * Format
186  * D3D format which most closely describes the data in original image
187  * ResourceType
188  * D3DRESOURCETYPE representing the type of texture stored in the file.
189  * D3DRTYPE_TEXTURE, D3DRTYPE_VOLUMETEXTURE, or D3DRTYPE_CUBETEXTURE.
190  * ImageFileFormat
191  * D3DXIMAGE_FILEFORMAT representing the format of the image file.
192  *
193  */
194 
195 typedef struct _D3DXIMAGE_INFO
196 {
204 
206 
207 #ifdef __cplusplus
208 extern "C" {
209 #endif /* __cplusplus */
210 
211 /*
212  * Image File APIs
213  */
214 
215 /*
216  * GetImageInfoFromFile/Resource:
217  * ------------------------------
218  * Fills in a D3DXIMAGE_INFO struct with information about an image file.
219  *
220  * Parameters:
221  * pSrcFile
222  * File name of the source image.
223  * pSrcModule
224  * Module where resource is located, or NULL for module associated
225  * with image the os used to create the current process.
226  * pSrcResource
227  * Resource name
228  * pSrcData
229  * Pointer to file in memory.
230  * SrcDataSize
231  * Size in bytes of file in memory.
232  * pSrcInfo
233  * Pointer to a D3DXIMAGE_INFO structure to be filled in with the
234  * description of the data in the source image file.
235  *
236  */
237 
238 HRESULT WINAPI
240  LPCSTR pSrcFile,
241  D3DXIMAGE_INFO* pSrcInfo);
242 
243 HRESULT WINAPI
245  LPCWSTR pSrcFile,
246  D3DXIMAGE_INFO* pSrcInfo);
247 
248 #ifdef UNICODE
249 #define D3DXGetImageInfoFromFile D3DXGetImageInfoFromFileW
250 #else
251 #define D3DXGetImageInfoFromFile D3DXGetImageInfoFromFileA
252 #endif
253 
254 
255 HRESULT WINAPI
257  HMODULE hSrcModule,
258  LPCSTR pSrcResource,
259  D3DXIMAGE_INFO* pSrcInfo);
260 
261 HRESULT WINAPI
263  HMODULE hSrcModule,
264  LPCWSTR pSrcResource,
265  D3DXIMAGE_INFO* pSrcInfo);
266 
267 #ifdef UNICODE
268 #define D3DXGetImageInfoFromResource D3DXGetImageInfoFromResourceW
269 #else
270 #define D3DXGetImageInfoFromResource D3DXGetImageInfoFromResourceA
271 #endif
272 
273 
274 HRESULT WINAPI
276  LPCVOID pSrcData,
277  UINT SrcDataSize,
278  D3DXIMAGE_INFO* pSrcInfo);
279 
280 /*
281  * Load/Save Surface APIs
282  */
283 
284 /*
285  * D3DXLoadSurfaceFromFile/Resource:
286  * ---------------------------------
287  * Load surface from a file or resource
288  *
289  * Parameters:
290  * pDestSurface
291  * Destination surface, which will receive the image.
292  * pDestPalette
293  * Destination palette of 256 colors, or NULL
294  * pDestRect
295  * Destination rectangle, or NULL for entire surface
296  * pSrcFile
297  * File name of the source image.
298  * pSrcModule
299  * Module where resource is located, or NULL for module associated
300  * with image the os used to create the current process.
301  * pSrcResource
302  * Resource name
303  * pSrcData
304  * Pointer to file in memory.
305  * SrcDataSize
306  * Size in bytes of file in memory.
307  * pSrcRect
308  * Source rectangle, or NULL for entire image
309  * Filter
310  * D3DX_FILTER flags controlling how the image is filtered.
311  * Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE.
312  * ColorKey
313  * Color to replace with transparent black, or 0 to disable colorkey.
314  * This is always a 32-bit ARGB color, independent of the source image
315  * format. Alpha is significant, and should usually be set to FF for
316  * opaque colorkeys. (ex. Opaque black == 0xff000000)
317  * pSrcInfo
318  * Pointer to a D3DXIMAGE_INFO structure to be filled in with the
319  * description of the data in the source image file, or NULL.
320  *
321  */
322 
323 HRESULT WINAPI
325  LPDIRECT3DSURFACE8 pDestSurface,
326  CONST PALETTEENTRY* pDestPalette,
327  CONST RECT* pDestRect,
328  LPCSTR pSrcFile,
329  CONST RECT* pSrcRect,
330  DWORD Filter,
331  D3DCOLOR ColorKey,
332  D3DXIMAGE_INFO* pSrcInfo);
333 
334 HRESULT WINAPI
336  LPDIRECT3DSURFACE8 pDestSurface,
337  CONST PALETTEENTRY* pDestPalette,
338  CONST RECT* pDestRect,
339  LPCWSTR pSrcFile,
340  CONST RECT* pSrcRect,
341  DWORD Filter,
342  D3DCOLOR ColorKey,
343  D3DXIMAGE_INFO* pSrcInfo);
344 
345 #ifdef UNICODE
346 #define D3DXLoadSurfaceFromFile D3DXLoadSurfaceFromFileW
347 #else
348 #define D3DXLoadSurfaceFromFile D3DXLoadSurfaceFromFileA
349 #endif
350 
351 
352 
353 HRESULT WINAPI
355  LPDIRECT3DSURFACE8 pDestSurface,
356  CONST PALETTEENTRY* pDestPalette,
357  CONST RECT* pDestRect,
358  HMODULE hSrcModule,
359  LPCSTR pSrcResource,
360  CONST RECT* pSrcRect,
361  DWORD Filter,
362  D3DCOLOR ColorKey,
363  D3DXIMAGE_INFO* pSrcInfo);
364 
365 HRESULT WINAPI
367  LPDIRECT3DSURFACE8 pDestSurface,
368  CONST PALETTEENTRY* pDestPalette,
369  CONST RECT* pDestRect,
370  HMODULE hSrcModule,
371  LPCWSTR pSrcResource,
372  CONST RECT* pSrcRect,
373  DWORD Filter,
374  D3DCOLOR ColorKey,
375  D3DXIMAGE_INFO* pSrcInfo);
376 
377 
378 #ifdef UNICODE
379 #define D3DXLoadSurfaceFromResource D3DXLoadSurfaceFromResourceW
380 #else
381 #define D3DXLoadSurfaceFromResource D3DXLoadSurfaceFromResourceA
382 #endif
383 
384 
385 
386 HRESULT WINAPI
388  LPDIRECT3DSURFACE8 pDestSurface,
389  CONST PALETTEENTRY* pDestPalette,
390  CONST RECT* pDestRect,
391  LPCVOID pSrcData,
392  UINT SrcDataSize,
393  CONST RECT* pSrcRect,
394  DWORD Filter,
395  D3DCOLOR ColorKey,
396  D3DXIMAGE_INFO* pSrcInfo);
397 
398 /*
399  * D3DXLoadSurfaceFromSurface:
400  * ---------------------------
401  * Load surface from another surface (with color conversion)
402  *
403  * Parameters:
404  * pDestSurface
405  * Destination surface, which will receive the image.
406  * pDestPalette
407  * Destination palette of 256 colors, or NULL
408  * pDestRect
409  * Destination rectangle, or NULL for entire surface
410  * pSrcSurface
411  * Source surface
412  * pSrcPalette
413  * Source palette of 256 colors, or NULL
414  * pSrcRect
415  * Source rectangle, or NULL for entire surface
416  * Filter
417  * D3DX_FILTER flags controlling how the image is filtered.
418  * Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE.
419  * ColorKey
420  * Color to replace with transparent black, or 0 to disable colorkey.
421  * This is always a 32-bit ARGB color, independent of the source image
422  * format. Alpha is significant, and should usually be set to FF for
423  * opaque colorkeys. (ex. Opaque black == 0xff000000)
424  *
425  */
426 
427 HRESULT WINAPI
429  LPDIRECT3DSURFACE8 pDestSurface,
430  CONST PALETTEENTRY* pDestPalette,
431  CONST RECT* pDestRect,
432  LPDIRECT3DSURFACE8 pSrcSurface,
433  CONST PALETTEENTRY* pSrcPalette,
434  CONST RECT* pSrcRect,
435  DWORD Filter,
436  D3DCOLOR ColorKey);
437 
438 /*
439  * D3DXLoadSurfaceFromMemory:
440  * --------------------------
441  * Load surface from memory.
442  *
443  * Parameters:
444  * pDestSurface
445  * Destination surface, which will receive the image.
446  * pDestPalette
447  * Destination palette of 256 colors, or NULL
448  * pDestRect
449  * Destination rectangle, or NULL for entire surface
450  * pSrcMemory
451  * Pointer to the top-left corner of the source image in memory
452  * SrcFormat
453  * Pixel format of the source image.
454  * SrcPitch
455  * Pitch of source image, in bytes. For DXT formats, this number
456  * should represent the width of one row of cells, in bytes.
457  * pSrcPalette
458  * Source palette of 256 colors, or NULL
459  * pSrcRect
460  * Source rectangle.
461  * Filter
462  * D3DX_FILTER flags controlling how the image is filtered.
463  * Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE.
464  * ColorKey
465  * Color to replace with transparent black, or 0 to disable colorkey.
466  * This is always a 32-bit ARGB color, independent of the source image
467  * format. Alpha is significant, and should usually be set to FF for
468  * opaque colorkeys. (ex. Opaque black == 0xff000000)
469  *
470  */
471 
472 HRESULT WINAPI
474  LPDIRECT3DSURFACE8 pDestSurface,
475  CONST PALETTEENTRY* pDestPalette,
476  CONST RECT* pDestRect,
477  LPCVOID pSrcMemory,
478  D3DFORMAT SrcFormat,
479  UINT SrcPitch,
480  CONST PALETTEENTRY* pSrcPalette,
481  CONST RECT* pSrcRect,
482  DWORD Filter,
483  D3DCOLOR ColorKey);
484 
485 
486 /*
487  * D3DXSaveSurfaceToFile:
488  * ----------------------
489  * Save a surface to a image file.
490  *
491  * Parameters:
492  * pDestFile
493  * File name of the destination file
494  * DestFormat
495  * D3DXIMAGE_FILEFORMAT specifying file format to use when saving.
496  * pSrcSurface
497  * Source surface, containing the image to be saved
498  * pSrcPalette
499  * Source palette of 256 colors, or NULL
500  * pSrcRect
501  * Source rectangle, or NULL for the entire image
502  *
503  */
504 
505 HRESULT WINAPI
507  LPCSTR pDestFile,
508  D3DXIMAGE_FILEFORMAT DestFormat,
509  LPDIRECT3DSURFACE8 pSrcSurface,
510  CONST PALETTEENTRY* pSrcPalette,
511  CONST RECT* pSrcRect);
512 
513 HRESULT WINAPI
515  LPCWSTR pDestFile,
516  D3DXIMAGE_FILEFORMAT DestFormat,
517  LPDIRECT3DSURFACE8 pSrcSurface,
518  CONST PALETTEENTRY* pSrcPalette,
519  CONST RECT* pSrcRect);
520 
521 #ifdef UNICODE
522 #define D3DXSaveSurfaceToFile D3DXSaveSurfaceToFileW
523 #else
524 #define D3DXSaveSurfaceToFile D3DXSaveSurfaceToFileA
525 #endif
526 
527 /*
528  * Load/Save Volume APIs
529  */
530 
531 /*
532  * D3DXLoadVolumeFromFile/Resource:
533  * --------------------------------
534  * Load volume from a file or resource
535  *
536  * Parameters:
537  * pDestVolume
538  * Destination volume, which will receive the image.
539  * pDestPalette
540  * Destination palette of 256 colors, or NULL
541  * pDestBox
542  * Destination box, or NULL for entire volume
543  * pSrcFile
544  * File name of the source image.
545  * pSrcModule
546  * Module where resource is located, or NULL for module associated
547  * with image the os used to create the current process.
548  * pSrcResource
549  * Resource name
550  * pSrcData
551  * Pointer to file in memory.
552  * SrcDataSize
553  * Size in bytes of file in memory.
554  * pSrcBox
555  * Source box, or NULL for entire image
556  * Filter
557  * D3DX_FILTER flags controlling how the image is filtered.
558  * Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE.
559  * ColorKey
560  * Color to replace with transparent black, or 0 to disable colorkey.
561  * This is always a 32-bit ARGB color, independent of the source image
562  * format. Alpha is significant, and should usually be set to FF for
563  * opaque colorkeys. (ex. Opaque black == 0xff000000)
564  * pSrcInfo
565  * Pointer to a D3DXIMAGE_INFO structure to be filled in with the
566  * description of the data in the source image file, or NULL.
567  *
568  */
569 
570 HRESULT WINAPI
572  LPDIRECT3DVOLUME8 pDestVolume,
573  CONST PALETTEENTRY* pDestPalette,
574  CONST D3DBOX* pDestBox,
575  LPCSTR pSrcFile,
576  CONST D3DBOX* pSrcBox,
577  DWORD Filter,
578  D3DCOLOR ColorKey,
579  D3DXIMAGE_INFO* pSrcInfo);
580 
581 HRESULT WINAPI
583  LPDIRECT3DVOLUME8 pDestVolume,
584  CONST PALETTEENTRY* pDestPalette,
585  CONST D3DBOX* pDestBox,
586  LPCWSTR pSrcFile,
587  CONST D3DBOX* pSrcBox,
588  DWORD Filter,
589  D3DCOLOR ColorKey,
590  D3DXIMAGE_INFO* pSrcInfo);
591 
592 #ifdef UNICODE
593 #define D3DXLoadVolumeFromFile D3DXLoadVolumeFromFileW
594 #else
595 #define D3DXLoadVolumeFromFile D3DXLoadVolumeFromFileA
596 #endif
597 
598 
599 HRESULT WINAPI
601  LPDIRECT3DVOLUME8 pDestVolume,
602  CONST PALETTEENTRY* pDestPalette,
603  CONST D3DBOX* pDestBox,
604  HMODULE hSrcModule,
605  LPCSTR pSrcResource,
606  CONST D3DBOX* pSrcBox,
607  DWORD Filter,
608  D3DCOLOR ColorKey,
609  D3DXIMAGE_INFO* pSrcInfo);
610 
611 HRESULT WINAPI
613  LPDIRECT3DVOLUME8 pDestVolume,
614  CONST PALETTEENTRY* pDestPalette,
615  CONST D3DBOX* pDestBox,
616  HMODULE hSrcModule,
617  LPCWSTR pSrcResource,
618  CONST D3DBOX* pSrcBox,
619  DWORD Filter,
620  D3DCOLOR ColorKey,
621  D3DXIMAGE_INFO* pSrcInfo);
622 
623 #ifdef UNICODE
624 #define D3DXLoadVolumeFromResource D3DXLoadVolumeFromResourceW
625 #else
626 #define D3DXLoadVolumeFromResource D3DXLoadVolumeFromResourceA
627 #endif
628 
629 
630 
631 HRESULT WINAPI
633  LPDIRECT3DVOLUME8 pDestVolume,
634  CONST PALETTEENTRY* pDestPalette,
635  CONST D3DBOX* pDestBox,
636  LPCVOID pSrcData,
637  UINT SrcDataSize,
638  CONST D3DBOX* pSrcBox,
639  DWORD Filter,
640  D3DCOLOR ColorKey,
641  D3DXIMAGE_INFO* pSrcInfo);
642 
643 /*
644  * D3DXLoadVolumeFromVolume:
645  * -------------------------
646  * Load volume from another volume (with color conversion)
647  *
648  * Parameters:
649  * pDestVolume
650  * Destination volume, which will receive the image.
651  * pDestPalette
652  * Destination palette of 256 colors, or NULL
653  * pDestBox
654  * Destination box, or NULL for entire volume
655  * pSrcVolume
656  * Source volume
657  * pSrcPalette
658  * Source palette of 256 colors, or NULL
659  * pSrcBox
660  * Source box, or NULL for entire volume
661  * Filter
662  * D3DX_FILTER flags controlling how the image is filtered.
663  * Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE.
664  * ColorKey
665  * Color to replace with transparent black, or 0 to disable colorkey.
666  * This is always a 32-bit ARGB color, independent of the source image
667  * format. Alpha is significant, and should usually be set to FF for
668  * opaque colorkeys. (ex. Opaque black == 0xff000000)
669  *
670  */
671 
672 HRESULT WINAPI
674  LPDIRECT3DVOLUME8 pDestVolume,
675  CONST PALETTEENTRY* pDestPalette,
676  CONST D3DBOX* pDestBox,
677  LPDIRECT3DVOLUME8 pSrcVolume,
678  CONST PALETTEENTRY* pSrcPalette,
679  CONST D3DBOX* pSrcBox,
680  DWORD Filter,
681  D3DCOLOR ColorKey);
682 
683 /*
684  * D3DXLoadVolumeFromMemory:
685  * -------------------------
686  * Load volume from memory.
687  *
688  * Parameters:
689  * pDestVolume
690  * Destination volume, which will receive the image.
691  * pDestPalette
692  * Destination palette of 256 colors, or NULL
693  * pDestBox
694  * Destination box, or NULL for entire volume
695  * pSrcMemory
696  * Pointer to the top-left corner of the source volume in memory
697  * SrcFormat
698  * Pixel format of the source volume.
699  * SrcRowPitch
700  * Pitch of source image, in bytes. For DXT formats, this number
701  * should represent the size of one row of cells, in bytes.
702  * SrcSlicePitch
703  * Pitch of source image, in bytes. For DXT formats, this number
704  * should represent the size of one slice of cells, in bytes.
705  * pSrcPalette
706  * Source palette of 256 colors, or NULL
707  * pSrcBox
708  * Source box.
709  * Filter
710  * D3DX_FILTER flags controlling how the image is filtered.
711  * Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE.
712  * ColorKey
713  * Color to replace with transparent black, or 0 to disable colorkey.
714  * This is always a 32-bit ARGB color, independent of the source image
715  * format. Alpha is significant, and should usually be set to FF for
716  * opaque colorkeys. (ex. Opaque black == 0xff000000)
717  *
718  */
719 
720 HRESULT WINAPI
722  LPDIRECT3DVOLUME8 pDestVolume,
723  CONST PALETTEENTRY* pDestPalette,
724  CONST D3DBOX* pDestBox,
725  LPCVOID pSrcMemory,
726  D3DFORMAT SrcFormat,
727  UINT SrcRowPitch,
728  UINT SrcSlicePitch,
729  CONST PALETTEENTRY* pSrcPalette,
730  CONST D3DBOX* pSrcBox,
731  DWORD Filter,
732  D3DCOLOR ColorKey);
733 
734 /*
735  * D3DXSaveVolumeToFile:
736  * ---------------------
737  * Save a volume to a image file.
738  *
739  * Parameters:
740  * pDestFile
741  * File name of the destination file
742  * DestFormat
743  * D3DXIMAGE_FILEFORMAT specifying file format to use when saving.
744  * pSrcVolume
745  * Source volume, containing the image to be saved
746  * pSrcPalette
747  * Source palette of 256 colors, or NULL
748  * pSrcBox
749  * Source box, or NULL for the entire volume
750  *
751  */
752 
753 HRESULT WINAPI
755  LPCSTR pDestFile,
756  D3DXIMAGE_FILEFORMAT DestFormat,
757  LPDIRECT3DVOLUME8 pSrcVolume,
758  CONST PALETTEENTRY* pSrcPalette,
759  CONST D3DBOX* pSrcBox);
760 
761 HRESULT WINAPI
763  LPCWSTR pDestFile,
764  D3DXIMAGE_FILEFORMAT DestFormat,
765  LPDIRECT3DVOLUME8 pSrcVolume,
766  CONST PALETTEENTRY* pSrcPalette,
767  CONST D3DBOX* pSrcBox);
768 
769 #ifdef UNICODE
770 #define D3DXSaveVolumeToFile D3DXSaveVolumeToFileW
771 #else
772 #define D3DXSaveVolumeToFile D3DXSaveVolumeToFileA
773 #endif
774 
775 /*
776  * Create/Save Texture APIs
777  */
778 
779 /*
780  * D3DXCheckTextureRequirements:
781  * -----------------------------
782  * Checks texture creation parameters. If parameters are invalid, this
783  * function returns corrected parameters.
784  *
785  * Parameters:
786  *
787  * pDevice
788  * The D3D device to be used
789  * pWidth, pHeight, pDepth, pSize
790  * Desired size in pixels, or NULL. Returns corrected size.
791  * pNumMipLevels
792  * Number of desired mipmap levels, or NULL. Returns corrected number.
793  * Usage
794  * Texture usage flags
795  * pFormat
796  * Desired pixel format, or NULL. Returns corrected format.
797  * Pool
798  * Memory pool to be used to create texture
799  *
800  */
801 
802 HRESULT WINAPI
804  LPDIRECT3DDEVICE8 pDevice,
805  UINT* pWidth,
806  UINT* pHeight,
807  UINT* pNumMipLevels,
808  DWORD Usage,
809  D3DFORMAT* pFormat,
810  D3DPOOL Pool);
811 
812 HRESULT WINAPI
814  LPDIRECT3DDEVICE8 pDevice,
815  UINT* pSize,
816  UINT* pNumMipLevels,
817  DWORD Usage,
818  D3DFORMAT* pFormat,
819  D3DPOOL Pool);
820 
821 HRESULT WINAPI
823  LPDIRECT3DDEVICE8 pDevice,
824  UINT* pWidth,
825  UINT* pHeight,
826  UINT* pDepth,
827  UINT* pNumMipLevels,
828  DWORD Usage,
829  D3DFORMAT* pFormat,
830  D3DPOOL Pool);
831 
832 
833 /*
834  * D3DXCreateTexture:
835  * ------------------
836  * Create an empty texture
837  *
838  * Parameters:
839  *
840  * pDevice
841  * The D3D device with which the texture is going to be used.
842  * Width, Height, Depth, Size
843  * size in pixels; these must be non-zero
844  * MipLevels
845  * number of mip levels desired; if zero or D3DX_DEFAULT, a complete
846  * mipmap chain will be created.
847  * Usage
848  * Texture usage flags
849  * Format
850  * Pixel format.
851  * Pool
852  * Memory pool to be used to create texture
853  * ppTexture, ppCubeTexture, ppVolumeTexture
854  * The texture object that will be created
855  *
856  */
857 
858 HRESULT WINAPI
860  LPDIRECT3DDEVICE8 pDevice,
861  UINT Width,
862  UINT Height,
863  UINT MipLevels,
864  DWORD Usage,
866  D3DPOOL Pool,
867  LPDIRECT3DTEXTURE8* ppTexture);
868 
869 HRESULT WINAPI
871  LPDIRECT3DDEVICE8 pDevice,
872  UINT Size,
873  UINT MipLevels,
874  DWORD Usage,
876  D3DPOOL Pool,
877  LPDIRECT3DCUBETEXTURE8* ppCubeTexture);
878 
879 HRESULT WINAPI
881  LPDIRECT3DDEVICE8 pDevice,
882  UINT Width,
883  UINT Height,
884  UINT Depth,
885  UINT MipLevels,
886  DWORD Usage,
888  D3DPOOL Pool,
889  LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture);
890 
891 /*
892  * D3DXCreateTextureFromFile/Resource:
893  * -----------------------------------
894  * Create a texture object from a file or resource.
895  *
896  * Parameters:
897  *
898  * pDevice
899  * The D3D device with which the texture is going to be used.
900  * pSrcFile
901  * File name.
902  * hSrcModule
903  * Module handle. if NULL, current module will be used.
904  * pSrcResource
905  * Resource name in module
906  * pvSrcData
907  * Pointer to file in memory.
908  * SrcDataSize
909  * Size in bytes of file in memory.
910  * Width, Height, Depth, Size
911  * Size in pixels; if zero or D3DX_DEFAULT, the size will be taken
912  * from the file.
913  * MipLevels
914  * Number of mip levels; if zero or D3DX_DEFAULT, a complete mipmap
915  * chain will be created.
916  * Usage
917  * Texture usage flags
918  * Format
919  * Desired pixel format. If D3DFMT_UNKNOWN, the format will be
920  * taken from the file.
921  * Pool
922  * Memory pool to be used to create texture
923  * Filter
924  * D3DX_FILTER flags controlling how the image is filtered.
925  * Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE.
926  * MipFilter
927  * D3DX_FILTER flags controlling how each miplevel is filtered.
928  * Or D3DX_DEFAULT for D3DX_FILTER_BOX,
929  * ColorKey
930  * Color to replace with transparent black, or 0 to disable colorkey.
931  * This is always a 32-bit ARGB color, independent of the source image
932  * format. Alpha is significant, and should usually be set to FF for
933  * opaque colorkeys. (ex. Opaque black == 0xff000000)
934  * pSrcInfo
935  * Pointer to a D3DXIMAGE_INFO structure to be filled in with the
936  * description of the data in the source image file, or NULL.
937  * pPalette
938  * 256 color palette to be filled in, or NULL
939  * ppTexture, ppCubeTexture, ppVolumeTexture
940  * The texture object that will be created
941  *
942  */
943 
944 /* FromFile */
945 
946 HRESULT WINAPI
948  LPDIRECT3DDEVICE8 pDevice,
949  LPCSTR pSrcFile,
950  LPDIRECT3DTEXTURE8* ppTexture);
951 
952 HRESULT WINAPI
954  LPDIRECT3DDEVICE8 pDevice,
955  LPCWSTR pSrcFile,
956  LPDIRECT3DTEXTURE8* ppTexture);
957 
958 #ifdef UNICODE
959 #define D3DXCreateTextureFromFile D3DXCreateTextureFromFileW
960 #else
961 #define D3DXCreateTextureFromFile D3DXCreateTextureFromFileA
962 #endif
963 
964 
965 HRESULT WINAPI
967  LPDIRECT3DDEVICE8 pDevice,
968  LPCSTR pSrcFile,
969  LPDIRECT3DCUBETEXTURE8* ppCubeTexture);
970 
971 HRESULT WINAPI
973  LPDIRECT3DDEVICE8 pDevice,
974  LPCWSTR pSrcFile,
975  LPDIRECT3DCUBETEXTURE8* ppCubeTexture);
976 
977 #ifdef UNICODE
978 #define D3DXCreateCubeTextureFromFile D3DXCreateCubeTextureFromFileW
979 #else
980 #define D3DXCreateCubeTextureFromFile D3DXCreateCubeTextureFromFileA
981 #endif
982 
983 
984 HRESULT WINAPI
986  LPDIRECT3DDEVICE8 pDevice,
987  LPCSTR pSrcFile,
988  LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture);
989 
990 HRESULT WINAPI
992  LPDIRECT3DDEVICE8 pDevice,
993  LPCWSTR pSrcFile,
994  LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture);
995 
996 #ifdef UNICODE
997 #define D3DXCreateVolumeTextureFromFile D3DXCreateVolumeTextureFromFileW
998 #else
999 #define D3DXCreateVolumeTextureFromFile D3DXCreateVolumeTextureFromFileA
1000 #endif
1001 
1002 /* FromResource */
1003 
1004 HRESULT WINAPI
1006  LPDIRECT3DDEVICE8 pDevice,
1007  HMODULE hSrcModule,
1008  LPCSTR pSrcResource,
1009  LPDIRECT3DTEXTURE8* ppTexture);
1010 
1011 HRESULT WINAPI
1013  LPDIRECT3DDEVICE8 pDevice,
1014  HMODULE hSrcModule,
1015  LPCWSTR pSrcResource,
1016  LPDIRECT3DTEXTURE8* ppTexture);
1017 
1018 #ifdef UNICODE
1019 #define D3DXCreateTextureFromResource D3DXCreateTextureFromResourceW
1020 #else
1021 #define D3DXCreateTextureFromResource D3DXCreateTextureFromResourceA
1022 #endif
1023 
1024 
1025 HRESULT WINAPI
1027  LPDIRECT3DDEVICE8 pDevice,
1028  HMODULE hSrcModule,
1029  LPCSTR pSrcResource,
1030  LPDIRECT3DCUBETEXTURE8* ppCubeTexture);
1031 
1032 HRESULT WINAPI
1034  LPDIRECT3DDEVICE8 pDevice,
1035  HMODULE hSrcModule,
1036  LPCWSTR pSrcResource,
1037  LPDIRECT3DCUBETEXTURE8* ppCubeTexture);
1038 
1039 #ifdef UNICODE
1040 #define D3DXCreateCubeTextureFromResource D3DXCreateCubeTextureFromResourceW
1041 #else
1042 #define D3DXCreateCubeTextureFromResource D3DXCreateCubeTextureFromResourceA
1043 #endif
1044 
1045 
1046 HRESULT WINAPI
1048  LPDIRECT3DDEVICE8 pDevice,
1049  HMODULE hSrcModule,
1050  LPCSTR pSrcResource,
1051  LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture);
1052 
1053 HRESULT WINAPI
1055  LPDIRECT3DDEVICE8 pDevice,
1056  HMODULE hSrcModule,
1057  LPCWSTR pSrcResource,
1058  LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture);
1059 
1060 #ifdef UNICODE
1061 #define D3DXCreateVolumeTextureFromResource D3DXCreateVolumeTextureFromResourceW
1062 #else
1063 #define D3DXCreateVolumeTextureFromResource D3DXCreateVolumeTextureFromResourceA
1064 #endif
1065 
1066 /* FromFileEx */
1067 
1068 HRESULT WINAPI
1070  LPDIRECT3DDEVICE8 pDevice,
1071  LPCSTR pSrcFile,
1072  UINT Width,
1073  UINT Height,
1074  UINT MipLevels,
1075  DWORD Usage,
1076  D3DFORMAT Format,
1077  D3DPOOL Pool,
1078  DWORD Filter,
1079  DWORD MipFilter,
1080  D3DCOLOR ColorKey,
1081  D3DXIMAGE_INFO* pSrcInfo,
1082  PALETTEENTRY* pPalette,
1083  LPDIRECT3DTEXTURE8* ppTexture);
1084 
1085 HRESULT WINAPI
1087  LPDIRECT3DDEVICE8 pDevice,
1088  LPCWSTR pSrcFile,
1089  UINT Width,
1090  UINT Height,
1091  UINT MipLevels,
1092  DWORD Usage,
1093  D3DFORMAT Format,
1094  D3DPOOL Pool,
1095  DWORD Filter,
1096  DWORD MipFilter,
1097  D3DCOLOR ColorKey,
1098  D3DXIMAGE_INFO* pSrcInfo,
1099  PALETTEENTRY* pPalette,
1100  LPDIRECT3DTEXTURE8* ppTexture);
1101 
1102 #ifdef UNICODE
1103 #define D3DXCreateTextureFromFileEx D3DXCreateTextureFromFileExW
1104 #else
1105 #define D3DXCreateTextureFromFileEx D3DXCreateTextureFromFileExA
1106 #endif
1107 
1108 
1109 HRESULT WINAPI
1111  LPDIRECT3DDEVICE8 pDevice,
1112  LPCSTR pSrcFile,
1113  UINT Size,
1114  UINT MipLevels,
1115  DWORD Usage,
1116  D3DFORMAT Format,
1117  D3DPOOL Pool,
1118  DWORD Filter,
1119  DWORD MipFilter,
1120  D3DCOLOR ColorKey,
1121  D3DXIMAGE_INFO* pSrcInfo,
1122  PALETTEENTRY* pPalette,
1123  LPDIRECT3DCUBETEXTURE8* ppCubeTexture);
1124 
1125 HRESULT WINAPI
1127  LPDIRECT3DDEVICE8 pDevice,
1128  LPCWSTR pSrcFile,
1129  UINT Size,
1130  UINT MipLevels,
1131  DWORD Usage,
1132  D3DFORMAT Format,
1133  D3DPOOL Pool,
1134  DWORD Filter,
1135  DWORD MipFilter,
1136  D3DCOLOR ColorKey,
1137  D3DXIMAGE_INFO* pSrcInfo,
1138  PALETTEENTRY* pPalette,
1139  LPDIRECT3DCUBETEXTURE8* ppCubeTexture);
1140 
1141 #ifdef UNICODE
1142 #define D3DXCreateCubeTextureFromFileEx D3DXCreateCubeTextureFromFileExW
1143 #else
1144 #define D3DXCreateCubeTextureFromFileEx D3DXCreateCubeTextureFromFileExA
1145 #endif
1146 
1147 
1148 HRESULT WINAPI
1150  LPDIRECT3DDEVICE8 pDevice,
1151  LPCSTR pSrcFile,
1152  UINT Width,
1153  UINT Height,
1154  UINT Depth,
1155  UINT MipLevels,
1156  DWORD Usage,
1157  D3DFORMAT Format,
1158  D3DPOOL Pool,
1159  DWORD Filter,
1160  DWORD MipFilter,
1161  D3DCOLOR ColorKey,
1162  D3DXIMAGE_INFO* pSrcInfo,
1163  PALETTEENTRY* pPalette,
1164  LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture);
1165 
1166 HRESULT WINAPI
1168  LPDIRECT3DDEVICE8 pDevice,
1169  LPCWSTR pSrcFile,
1170  UINT Width,
1171  UINT Height,
1172  UINT Depth,
1173  UINT MipLevels,
1174  DWORD Usage,
1175  D3DFORMAT Format,
1176  D3DPOOL Pool,
1177  DWORD Filter,
1178  DWORD MipFilter,
1179  D3DCOLOR ColorKey,
1180  D3DXIMAGE_INFO* pSrcInfo,
1181  PALETTEENTRY* pPalette,
1182  LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture);
1183 
1184 #ifdef UNICODE
1185 #define D3DXCreateVolumeTextureFromFileEx D3DXCreateVolumeTextureFromFileExW
1186 #else
1187 #define D3DXCreateVolumeTextureFromFileEx D3DXCreateVolumeTextureFromFileExA
1188 #endif
1189 
1190 /* FromResourceEx */
1191 
1192 HRESULT WINAPI
1194  LPDIRECT3DDEVICE8 pDevice,
1195  HMODULE hSrcModule,
1196  LPCSTR pSrcResource,
1197  UINT Width,
1198  UINT Height,
1199  UINT MipLevels,
1200  DWORD Usage,
1201  D3DFORMAT Format,
1202  D3DPOOL Pool,
1203  DWORD Filter,
1204  DWORD MipFilter,
1205  D3DCOLOR ColorKey,
1206  D3DXIMAGE_INFO* pSrcInfo,
1207  PALETTEENTRY* pPalette,
1208  LPDIRECT3DTEXTURE8* ppTexture);
1209 
1210 HRESULT WINAPI
1212  LPDIRECT3DDEVICE8 pDevice,
1213  HMODULE hSrcModule,
1214  LPCWSTR pSrcResource,
1215  UINT Width,
1216  UINT Height,
1217  UINT MipLevels,
1218  DWORD Usage,
1219  D3DFORMAT Format,
1220  D3DPOOL Pool,
1221  DWORD Filter,
1222  DWORD MipFilter,
1223  D3DCOLOR ColorKey,
1224  D3DXIMAGE_INFO* pSrcInfo,
1225  PALETTEENTRY* pPalette,
1226  LPDIRECT3DTEXTURE8* ppTexture);
1227 
1228 #ifdef UNICODE
1229 #define D3DXCreateTextureFromResourceEx D3DXCreateTextureFromResourceExW
1230 #else
1231 #define D3DXCreateTextureFromResourceEx D3DXCreateTextureFromResourceExA
1232 #endif
1233 
1234 
1235 HRESULT WINAPI
1237  LPDIRECT3DDEVICE8 pDevice,
1238  HMODULE hSrcModule,
1239  LPCSTR pSrcResource,
1240  UINT Size,
1241  UINT MipLevels,
1242  DWORD Usage,
1243  D3DFORMAT Format,
1244  D3DPOOL Pool,
1245  DWORD Filter,
1246  DWORD MipFilter,
1247  D3DCOLOR ColorKey,
1248  D3DXIMAGE_INFO* pSrcInfo,
1249  PALETTEENTRY* pPalette,
1250  LPDIRECT3DCUBETEXTURE8* ppCubeTexture);
1251 
1252 HRESULT WINAPI
1254  LPDIRECT3DDEVICE8 pDevice,
1255  HMODULE hSrcModule,
1256  LPCWSTR pSrcResource,
1257  UINT Size,
1258  UINT MipLevels,
1259  DWORD Usage,
1260  D3DFORMAT Format,
1261  D3DPOOL Pool,
1262  DWORD Filter,
1263  DWORD MipFilter,
1264  D3DCOLOR ColorKey,
1265  D3DXIMAGE_INFO* pSrcInfo,
1266  PALETTEENTRY* pPalette,
1267  LPDIRECT3DCUBETEXTURE8* ppCubeTexture);
1268 
1269 #ifdef UNICODE
1270 #define D3DXCreateCubeTextureFromResourceEx D3DXCreateCubeTextureFromResourceExW
1271 #else
1272 #define D3DXCreateCubeTextureFromResourceEx D3DXCreateCubeTextureFromResourceExA
1273 #endif
1274 
1275 
1276 HRESULT WINAPI
1278  LPDIRECT3DDEVICE8 pDevice,
1279  HMODULE hSrcModule,
1280  LPCSTR pSrcResource,
1281  UINT Width,
1282  UINT Height,
1283  UINT Depth,
1284  UINT MipLevels,
1285  DWORD Usage,
1286  D3DFORMAT Format,
1287  D3DPOOL Pool,
1288  DWORD Filter,
1289  DWORD MipFilter,
1290  D3DCOLOR ColorKey,
1291  D3DXIMAGE_INFO* pSrcInfo,
1292  PALETTEENTRY* pPalette,
1293  LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture);
1294 
1295 HRESULT WINAPI
1297  LPDIRECT3DDEVICE8 pDevice,
1298  HMODULE hSrcModule,
1299  LPCWSTR pSrcResource,
1300  UINT Width,
1301  UINT Height,
1302  UINT Depth,
1303  UINT MipLevels,
1304  DWORD Usage,
1305  D3DFORMAT Format,
1306  D3DPOOL Pool,
1307  DWORD Filter,
1308  DWORD MipFilter,
1309  D3DCOLOR ColorKey,
1310  D3DXIMAGE_INFO* pSrcInfo,
1311  PALETTEENTRY* pPalette,
1312  LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture);
1313 
1314 #ifdef UNICODE
1315 #define D3DXCreateVolumeTextureFromResourceEx D3DXCreateVolumeTextureFromResourceExW
1316 #else
1317 #define D3DXCreateVolumeTextureFromResourceEx D3DXCreateVolumeTextureFromResourceExA
1318 #endif
1319 
1320 /* FromFileInMemory */
1321 
1322 HRESULT WINAPI
1324  LPDIRECT3DDEVICE8 pDevice,
1325  LPCVOID pSrcData,
1326  UINT SrcDataSize,
1327  LPDIRECT3DTEXTURE8* ppTexture);
1328 
1329 HRESULT WINAPI
1331  LPDIRECT3DDEVICE8 pDevice,
1332  LPCVOID pSrcData,
1333  UINT SrcDataSize,
1334  LPDIRECT3DCUBETEXTURE8* ppCubeTexture);
1335 
1336 HRESULT WINAPI
1338  LPDIRECT3DDEVICE8 pDevice,
1339  LPCVOID pSrcData,
1340  UINT SrcDataSize,
1341  LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture);
1342 
1343 
1344 /* FromFileInMemoryEx */
1345 
1346 HRESULT WINAPI
1348  LPDIRECT3DDEVICE8 pDevice,
1349  LPCVOID pSrcData,
1350  UINT SrcDataSize,
1351  UINT Width,
1352  UINT Height,
1353  UINT MipLevels,
1354  DWORD Usage,
1355  D3DFORMAT Format,
1356  D3DPOOL Pool,
1357  DWORD Filter,
1358  DWORD MipFilter,
1359  D3DCOLOR ColorKey,
1360  D3DXIMAGE_INFO* pSrcInfo,
1361  PALETTEENTRY* pPalette,
1362  LPDIRECT3DTEXTURE8* ppTexture);
1363 
1364 HRESULT WINAPI
1366  LPDIRECT3DDEVICE8 pDevice,
1367  LPCVOID pSrcData,
1368  UINT SrcDataSize,
1369  UINT Size,
1370  UINT MipLevels,
1371  DWORD Usage,
1372  D3DFORMAT Format,
1373  D3DPOOL Pool,
1374  DWORD Filter,
1375  DWORD MipFilter,
1376  D3DCOLOR ColorKey,
1377  D3DXIMAGE_INFO* pSrcInfo,
1378  PALETTEENTRY* pPalette,
1379  LPDIRECT3DCUBETEXTURE8* ppCubeTexture);
1380 
1381 HRESULT WINAPI
1383  LPDIRECT3DDEVICE8 pDevice,
1384  LPCVOID pSrcData,
1385  UINT SrcDataSize,
1386  UINT Width,
1387  UINT Height,
1388  UINT Depth,
1389  UINT MipLevels,
1390  DWORD Usage,
1391  D3DFORMAT Format,
1392  D3DPOOL Pool,
1393  DWORD Filter,
1394  DWORD MipFilter,
1395  D3DCOLOR ColorKey,
1396  D3DXIMAGE_INFO* pSrcInfo,
1397  PALETTEENTRY* pPalette,
1398  LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture);
1399 
1400 /*
1401  * D3DXSaveTextureToFile:
1402  * ----------------------
1403  * Save a texture to a file.
1404  *
1405  * Parameters:
1406  * pDestFile
1407  * File name of the destination file
1408  * DestFormat
1409  * D3DXIMAGE_FILEFORMAT specifying file format to use when saving.
1410  * pSrcTexture
1411  * Source texture, containing the image to be saved
1412  * pSrcPalette
1413  * Source palette of 256 colors, or NULL
1414  *
1415  */
1416 
1417 HRESULT WINAPI
1419  LPCSTR pDestFile,
1420  D3DXIMAGE_FILEFORMAT DestFormat,
1421  LPDIRECT3DBASETEXTURE8 pSrcTexture,
1422  CONST PALETTEENTRY* pSrcPalette);
1423 
1424 HRESULT WINAPI
1426  LPCWSTR pDestFile,
1427  D3DXIMAGE_FILEFORMAT DestFormat,
1428  LPDIRECT3DBASETEXTURE8 pSrcTexture,
1429  CONST PALETTEENTRY* pSrcPalette);
1430 
1431 #ifdef UNICODE
1432 #define D3DXSaveTextureToFile D3DXSaveTextureToFileW
1433 #else
1434 #define D3DXSaveTextureToFile D3DXSaveTextureToFileA
1435 #endif
1436 
1437 /*
1438  * Misc Texture APIs
1439  */
1440 
1441 /*
1442  * D3DXFilterTexture:
1443  * ------------------
1444  * Filters mipmaps levels of a texture.
1445  *
1446  * Parameters:
1447  * pBaseTexture
1448  * The texture object to be filtered
1449  * pPalette
1450  * 256 color palette to be used, or NULL for non-palettized formats
1451  * SrcLevel
1452  * The level whose image is used to generate the subsequent levels.
1453  * Filter
1454  * D3DX_FILTER flags controlling how each miplevel is filtered.
1455  * Or D3DX_DEFAULT for D3DX_FILTER_BOX,
1456  *
1457  */
1458 
1459 HRESULT WINAPI
1461  LPDIRECT3DBASETEXTURE8 pBaseTexture,
1462  CONST PALETTEENTRY* pPalette,
1463  UINT SrcLevel,
1464  DWORD Filter);
1465 
1466 #define D3DXFilterCubeTexture D3DXFilterTexture
1467 #define D3DXFilterVolumeTexture D3DXFilterTexture
1468 
1469 /*
1470  * D3DXFillTexture:
1471  * ----------------
1472  * Uses a user provided function to fill each texel of each mip level of a
1473  * given texture.
1474  *
1475  * Paramters:
1476  * pTexture, pCubeTexture, pVolumeTexture
1477  * Pointer to the texture to be filled.
1478  * pFunction
1479  * Pointer to user provided evalutor function which will be used to
1480  * compute the value of each texel.
1481  * pData
1482  * Pointer to an arbitrary block of user defined data. This pointer
1483  * will be passed to the function provided in pFunction
1484  */
1485 
1486 HRESULT WINAPI
1488  LPDIRECT3DTEXTURE8 pTexture,
1489  LPD3DXFILL2D pFunction,
1490  LPVOID pData);
1491 
1492 HRESULT WINAPI
1494  LPDIRECT3DCUBETEXTURE8 pCubeTexture,
1495  LPD3DXFILL3D pFunction,
1496  LPVOID pData);
1497 
1498 HRESULT WINAPI
1500  LPDIRECT3DVOLUMETEXTURE8 pVolumeTexture,
1501  LPD3DXFILL3D pFunction,
1502  LPVOID pData);
1503 
1504 /*
1505  * D3DXComputeNormalMap:
1506  * ---------------------
1507  * Converts a height map into a normal map. The (x,y,z) components of each
1508  * normal are mapped to the (r,g,b) channels of the output texture.
1509  *
1510  * Parameters
1511  * pTexture
1512  * Pointer to the destination texture
1513  * pSrcTexture
1514  * Pointer to the source heightmap texture
1515  * pSrcPalette
1516  * Source palette of 256 colors, or NULL
1517  * Flags
1518  * D3DX_NORMALMAP flags
1519  * Channel
1520  * D3DX_CHANNEL specifying source of height information
1521  * Amplitude
1522  * The constant value which the height information is multiplied by.
1523  */
1524 
1525 HRESULT WINAPI
1527  LPDIRECT3DTEXTURE8 pTexture,
1528  LPDIRECT3DTEXTURE8 pSrcTexture,
1529  CONST PALETTEENTRY* pSrcPalette,
1530  DWORD Flags,
1531  DWORD Channel,
1532  FLOAT Amplitude);
1533 
1534 
1535 
1536 
1537 #ifdef __cplusplus
1538 }
1539 #endif /* __cplusplus */
1540 
1541 #endif /* __D3DX8TEX_H__ */
HRESULT WINAPI D3DXFillCubeTexture(LPDIRECT3DCUBETEXTURE8 pCubeTexture, LPD3DXFILL3D pFunction, LPVOID pData)
HRESULT WINAPI D3DXCreateVolumeTextureFromFileA(LPDIRECT3DDEVICE8 pDevice, LPCSTR pSrcFile, LPDIRECT3DVOLUMETEXTURE8 *ppVolumeTexture)
enum _D3DPOOL D3DPOOL
struct IDirect3DDevice8 * LPDIRECT3DDEVICE8
Definition: d3d8.h:326
HRESULT WINAPI D3DXCreateTextureFromFileA(LPDIRECT3DDEVICE8 pDevice, LPCSTR pSrcFile, LPDIRECT3DTEXTURE8 *ppTexture)
enum _D3DXIMAGE_FILEFORMAT D3DXIMAGE_FILEFORMAT
struct IDirect3DSurface8 * LPDIRECT3DSURFACE8
Definition: d3d8.h:1020
HRESULT WINAPI D3DXCreateVolumeTextureFromFileExA(LPDIRECT3DDEVICE8 pDevice, LPCSTR pSrcFile, UINT Width, UINT Height, UINT Depth, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DVOLUMETEXTURE8 *ppVolumeTexture)
HRESULT WINAPI D3DXCreateCubeTextureFromResourceExW(LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCWSTR pSrcResource, UINT Size, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DCUBETEXTURE8 *ppCubeTexture)
HRESULT WINAPI D3DXLoadVolumeFromResourceA(LPDIRECT3DVOLUME8 pDestVolume, CONST PALETTEENTRY *pDestPalette, CONST D3DBOX *pDestBox, HMODULE hSrcModule, LPCSTR pSrcResource, CONST D3DBOX *pSrcBox, DWORD Filter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo)
Definition: d3d8types.h:48
HRESULT WINAPI D3DXLoadVolumeFromFileInMemory(LPDIRECT3DVOLUME8 pDestVolume, CONST PALETTEENTRY *pDestPalette, CONST D3DBOX *pDestBox, LPCVOID pSrcData, UINT SrcDataSize, CONST D3DBOX *pSrcBox, DWORD Filter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo)
Unknown compiler Device disconnected from port File already exists Saving to backup buffer Got connection Port Mapping Successful No arguments supplied and no menu displaying help Waiting for client You have joined as player u Player *s has left the game *s has joined with input devices *s The netplay peer is running an old version of RetroArch Cannot connect A netplay peer is running a different core Cannot connect This core does not support inter architecture netplay between these systems Enter netplay server Incorrect password A netplay client has disconnected You do not have permission to play The input devices requested are not available Netplay peer s paused Give hardware rendered cores their own private context Avoids having to assume hardware state changes inbetween frames Adjusts menu screen appearance settings Improves performance at the cost of latency and more video stuttering Use only if you cannot obtain full speed otherwise Autodetect Capabilities Connecting to port Password Username Accounts List Endpoint Achievements Resume Achievements Hardcore Mode Scan Content Import content Ask Block Frames Audio Driver Audio Enable Turbo Deadzone Audio Maximum Timing Skew Audio Output Dynamic Audio Rate Control Audio Audio Volume WASAPI Exclusive Mode WASAPI Shared Buffer Length Load Override Files Automatically Load Shader Presets Automatically Confirm Quit Scroll Up Toggle Keyboard Basic menu controls Info Scroll Up Toggle Keyboard Don t overwrite SaveRAM on loading savestate Buildbot Assets URL Allow Camera Cheat Start Search For New Cheat Code Cheat File Load Cheat Load Cheat Save Cheat File As Description Leaderboards Locked Locked Test Unofficial Achievements Unlocked Verbose Mode Close Content Load Configuration Save Configuration on Exit Database History List Size Quick Menu Downloads Core Counters Core Information Categories Core name Permissions System manufacturer Controls Install or Restore a Core Core installation succesful Core Automatically extract downloaded archive Core Updater CPU CPU Cursor Custom Ratio Database Selection Start directory< Default > Directory not found Disk Cycle Tray Status Disk Index Don t care Download a Core DPI Override Enable Driver Check for Missing Firmware Before Loading Dynamic Backgrounds Menu entry hover color False Favorites Include Memory Details Sync to Exact Content Frame Throttle Load Content Specific Core Options Automatically Save Game options file Audio Video Troubleshooting Basic Menu Controls Loading Content What Is A Core History Image Information All Users Control Menu Left analog Left analog Left Analog Y Left analog Right Analog X Right analog Right Analog Y Right analog Gun Trigger Gun Aux A Gun Aux C Gun Select Gun D pad Down Gun D pad Right Analog Stick Deadzone Bind All Bind Timeout Hide Unbound Core Input Descriptors Device Index Mouse Index Duty Cycle Keyboard Gamepad Mapping Enable B Down D pad L3 L Left D pad R3 R Right D pad Start button X Y Mouse Mouse Mouse Wheel Down Wheel Right Max Users Cheat index Cheat toggle Disk next Enable hotkeys Fast forward toggle FPS toggle Grab mouse toggle Desktop menu toggle Menu toggle Audio mute toggle On screen keyboard toggle Pause toggle Reset game Cheat Details Save state Next shader Slow motion hold Savestate slot Volume Display Overlay Show Inputs On Overlay Poll Type Behavior Late Prefer Front Touch Remap Binds Enable Input Touch Enable Turbo Period Latency Input Autoconfig Services Dutch Esperanto German Japanese Polish Russian Vietnamese Greek Core Core Logging Level Load Archive Load Content Allow Location Logging Main Menu Menu Color Theme Blue Grey Green Red Footer Opacity Menu Driver Settings Horizontal Animation Background Missing Mouse Support Music Navigation Wrap Around Netplay Netplay Check Frames Input Latency Frames Range Disconnect from netplay host Connect to netplay host Stop netplay host Scan local network Username Publicly Announce Netplay Disallow Non Slave Mode Clients Analog Input Sharing Average Share Vote No preference Netplay Stateless Mode Netplay Spectator Enable Netplay NAT Traversal Network Command Port Network Gamepad Network None No achievements to display No cores available No core options available No history available No items No networks found No playlists No settings found OFF Online Onscreen Display Adjust Bezels and Onscreen controls Adjust the Onscreen Notifications Optional Autoload Preferred Overlay Overlay Opacity Overlay Scale Use PAL60 Mode Pause when menu activated Performance Counters Playlist Touch Support Present MIDI Analog supported CERO Rating CRC32 Developer Edge Magazine Rating ELSPA Rating ESRB Rating Franchise MD5 Origin Publisher Releasedate Year Serial Start Content Reboot Recording Output Custom Record Config Record Driver Enable Recording Save Recordings in Output Dir Load Remap File Save Content Directory Remap File Delete Core Remap File Delete Game Content Directory Remap File Restart Resume RetroKeyboard RetroPad w Analog Rewind Enable Auto Apply Cheats During Game Load Rewind Buffer Size(MB)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_REWIND_BUFFER_SIZE_STEP
HRESULT WINAPI D3DXCreateTextureFromResourceExA(LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCSTR pSrcResource, UINT Width, UINT Height, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DTEXTURE8 *ppTexture)
Definition: glslang_tab.cpp:129
Definition: d3dx8tex.h:142
HRESULT WINAPI D3DXLoadVolumeFromVolume(LPDIRECT3DVOLUME8 pDestVolume, CONST PALETTEENTRY *pDestPalette, CONST D3DBOX *pDestBox, LPDIRECT3DVOLUME8 pSrcVolume, CONST PALETTEENTRY *pSrcPalette, CONST D3DBOX *pSrcBox, DWORD Filter, D3DCOLOR ColorKey)
HRESULT WINAPI D3DXLoadSurfaceFromResourceW(LPDIRECT3DSURFACE8 pDestSurface, CONST PALETTEENTRY *pDestPalette, CONST RECT *pDestRect, HMODULE hSrcModule, LPCWSTR pSrcResource, CONST RECT *pSrcRect, DWORD Filter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo)
HRESULT WINAPI D3DXSaveSurfaceToFileW(LPCWSTR pDestFile, D3DXIMAGE_FILEFORMAT DestFormat, LPDIRECT3DSURFACE8 pSrcSurface, CONST PALETTEENTRY *pSrcPalette, CONST RECT *pSrcRect)
_D3DXIMAGE_FILEFORMAT
Definition: d3dx8tex.h:134
struct IDirect3DTexture8 * LPDIRECT3DTEXTURE8
Definition: d3d8.h:693
HRESULT WINAPI D3DXSaveTextureToFileA(LPCSTR pDestFile, D3DXIMAGE_FILEFORMAT DestFormat, LPDIRECT3DBASETEXTURE8 pSrcTexture, CONST PALETTEENTRY *pSrcPalette)
struct IDirect3DVolumeTexture8 * LPDIRECT3DVOLUMETEXTURE8
Definition: d3d8.h:766
HRESULT WINAPI D3DXLoadVolumeFromMemory(LPDIRECT3DVOLUME8 pDestVolume, CONST PALETTEENTRY *pDestPalette, CONST D3DBOX *pDestBox, LPCVOID pSrcMemory, D3DFORMAT SrcFormat, UINT SrcRowPitch, UINT SrcSlicePitch, CONST PALETTEENTRY *pSrcPalette, CONST D3DBOX *pSrcBox, DWORD Filter, D3DCOLOR ColorKey)
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
VOID(* LPD3DXFILL2D)(D3DXVECTOR4 *pOut, D3DXVECTOR2 *pTexCoord, D3DXVECTOR2 *pTexelSize, LPVOID pData)
Definition: d3dx8tex.h:168
HRESULT WINAPI D3DXCheckCubeTextureRequirements(LPDIRECT3DDEVICE8 pDevice, UINT *pSize, UINT *pNumMipLevels, DWORD Usage, D3DFORMAT *pFormat, D3DPOOL Pool)
HRESULT WINAPI D3DXGetImageInfoFromFileA(LPCSTR pSrcFile, D3DXIMAGE_INFO *pSrcInfo)
struct IDirect3DBaseTexture8 * LPDIRECT3DBASETEXTURE8
Definition: d3d8.h:630
HRESULT WINAPI D3DXCreateTexture(LPDIRECT3DDEVICE8 pDevice, UINT Width, UINT Height, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, LPDIRECT3DTEXTURE8 *ppTexture)
HRESULT WINAPI D3DXCreateVolumeTextureFromFileExW(LPDIRECT3DDEVICE8 pDevice, LPCWSTR pSrcFile, UINT Width, UINT Height, UINT Depth, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DVOLUMETEXTURE8 *ppVolumeTexture)
enum _D3DRESOURCETYPE D3DRESOURCETYPE
HRESULT WINAPI D3DXLoadSurfaceFromMemory(LPDIRECT3DSURFACE8 pDestSurface, CONST PALETTEENTRY *pDestPalette, CONST RECT *pDestRect, LPCVOID pSrcMemory, D3DFORMAT SrcFormat, UINT SrcPitch, CONST PALETTEENTRY *pSrcPalette, CONST RECT *pSrcRect, DWORD Filter, D3DCOLOR ColorKey)
D3DXIMAGE_FILEFORMAT ImageFileFormat
Definition: d3dx8tex.h:203
HRESULT WINAPI D3DXCreateTextureFromResourceA(LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCSTR pSrcResource, LPDIRECT3DTEXTURE8 *ppTexture)
UINT MipLevels
Definition: d3dx8tex.h:200
HRESULT WINAPI D3DXCreateCubeTextureFromFileExA(LPDIRECT3DDEVICE8 pDevice, LPCSTR pSrcFile, UINT Size, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DCUBETEXTURE8 *ppCubeTexture)
HRESULT WINAPI D3DXSaveVolumeToFileW(LPCWSTR pDestFile, D3DXIMAGE_FILEFORMAT DestFormat, LPDIRECT3DVOLUME8 pSrcVolume, CONST PALETTEENTRY *pSrcPalette, CONST D3DBOX *pSrcBox)
enum _D3DFORMAT D3DFORMAT
HRESULT WINAPI D3DXCreateVolumeTextureFromFileW(LPDIRECT3DDEVICE8 pDevice, LPCWSTR pSrcFile, LPDIRECT3DVOLUMETEXTURE8 *ppVolumeTexture)
Definition: d3dx8math.h:127
HRESULT WINAPI D3DXCreateCubeTextureFromFileInMemory(LPDIRECT3DDEVICE8 pDevice, LPCVOID pSrcData, UINT SrcDataSize, LPDIRECT3DCUBETEXTURE8 *ppCubeTexture)
HRESULT WINAPI D3DXCreateTextureFromResourceW(LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCWSTR pSrcResource, LPDIRECT3DTEXTURE8 *ppTexture)
struct IDirect3DVolume8 * LPDIRECT3DVOLUME8
Definition: d3d8.h:1069
HRESULT WINAPI D3DXCreateCubeTextureFromFileW(LPDIRECT3DDEVICE8 pDevice, LPCWSTR pSrcFile, LPDIRECT3DCUBETEXTURE8 *ppCubeTexture)
D3DFORMAT Format
Definition: d3dx8tex.h:201
VOID(* LPD3DXFILL3D)(D3DXVECTOR4 *pOut, D3DXVECTOR3 *pTexCoord, D3DXVECTOR3 *pTexelSize, LPVOID pData)
Definition: d3dx8tex.h:169
HRESULT WINAPI D3DXCreateVolumeTextureFromResourceA(LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCSTR pSrcResource, LPDIRECT3DVOLUMETEXTURE8 *ppVolumeTexture)
HRESULT WINAPI D3DXLoadSurfaceFromFileA(LPDIRECT3DSURFACE8 pDestSurface, CONST PALETTEENTRY *pDestPalette, CONST RECT *pDestRect, LPCSTR pSrcFile, CONST RECT *pSrcRect, DWORD Filter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo)
UINT Height
Definition: d3dx8tex.h:198
HRESULT WINAPI D3DXGetImageInfoFromFileW(LPCWSTR pSrcFile, D3DXIMAGE_INFO *pSrcInfo)
HRESULT WINAPI D3DXLoadSurfaceFromFileW(LPDIRECT3DSURFACE8 pDestSurface, CONST PALETTEENTRY *pDestPalette, CONST RECT *pDestRect, LPCWSTR pSrcFile, CONST RECT *pSrcRect, DWORD Filter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo)
HRESULT WINAPI D3DXCreateCubeTexture(LPDIRECT3DDEVICE8 pDevice, UINT Size, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, LPDIRECT3DCUBETEXTURE8 *ppCubeTexture)
HRESULT WINAPI D3DXCreateVolumeTextureFromFileInMemory(LPDIRECT3DDEVICE8 pDevice, LPCVOID pSrcData, UINT SrcDataSize, LPDIRECT3DVOLUMETEXTURE8 *ppVolumeTexture)
DWORD D3DCOLOR
Definition: d3d8types.h:32
HRESULT WINAPI D3DXGetImageInfoFromResourceA(HMODULE hSrcModule, LPCSTR pSrcResource, D3DXIMAGE_INFO *pSrcInfo)
Definition: d3dx8tex.h:195
HRESULT WINAPI D3DXCreateTextureFromFileW(LPDIRECT3DDEVICE8 pDevice, LPCWSTR pSrcFile, LPDIRECT3DTEXTURE8 *ppTexture)
HRESULT WINAPI D3DXLoadVolumeFromFileA(LPDIRECT3DVOLUME8 pDestVolume, CONST PALETTEENTRY *pDestPalette, CONST D3DBOX *pDestBox, LPCSTR pSrcFile, CONST D3DBOX *pSrcBox, DWORD Filter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo)
HRESULT WINAPI D3DXFillTexture(LPDIRECT3DTEXTURE8 pTexture, LPD3DXFILL2D pFunction, LPVOID pData)
D3DRESOURCETYPE ResourceType
Definition: d3dx8tex.h:202
HRESULT WINAPI D3DXCreateTextureFromFileInMemory(LPDIRECT3DDEVICE8 pDevice, LPCVOID pSrcData, UINT SrcDataSize, LPDIRECT3DTEXTURE8 *ppTexture)
Definition: d3dx8math.h:40
HRESULT WINAPI D3DXSaveVolumeToFileA(LPCSTR pDestFile, D3DXIMAGE_FILEFORMAT DestFormat, LPDIRECT3DVOLUME8 pSrcVolume, CONST PALETTEENTRY *pSrcPalette, CONST D3DBOX *pSrcBox)
HRESULT WINAPI D3DXCreateCubeTextureFromResourceA(LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCSTR pSrcResource, LPDIRECT3DCUBETEXTURE8 *ppCubeTexture)
HRESULT WINAPI D3DXCreateVolumeTexture(LPDIRECT3DDEVICE8 pDevice, UINT Width, UINT Height, UINT Depth, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, LPDIRECT3DVOLUMETEXTURE8 *ppVolumeTexture)
HRESULT WINAPI D3DXCreateCubeTextureFromFileA(LPDIRECT3DDEVICE8 pDevice, LPCSTR pSrcFile, LPDIRECT3DCUBETEXTURE8 *ppCubeTexture)
HRESULT WINAPI D3DXCheckTextureRequirements(LPDIRECT3DDEVICE8 pDevice, UINT *pWidth, UINT *pHeight, UINT *pNumMipLevels, DWORD Usage, D3DFORMAT *pFormat, D3DPOOL Pool)
UINT Depth
Definition: d3dx8tex.h:199
HRESULT WINAPI D3DXCreateVolumeTextureFromResourceExW(LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCWSTR pSrcResource, UINT Width, UINT Height, UINT Depth, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DVOLUMETEXTURE8 *ppVolumeTexture)
HRESULT WINAPI D3DXFillVolumeTexture(LPDIRECT3DVOLUMETEXTURE8 pVolumeTexture, LPD3DXFILL3D pFunction, LPVOID pData)
Definition: d3dx8tex.h:140
HRESULT WINAPI D3DXLoadVolumeFromFileW(LPDIRECT3DVOLUME8 pDestVolume, CONST PALETTEENTRY *pDestPalette, CONST D3DBOX *pDestBox, LPCWSTR pSrcFile, CONST D3DBOX *pSrcBox, DWORD Filter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo)
HRESULT WINAPI D3DXLoadSurfaceFromSurface(LPDIRECT3DSURFACE8 pDestSurface, CONST PALETTEENTRY *pDestPalette, CONST RECT *pDestRect, LPDIRECT3DSURFACE8 pSrcSurface, CONST PALETTEENTRY *pSrcPalette, CONST RECT *pSrcRect, DWORD Filter, D3DCOLOR ColorKey)
Definition: d3dx8tex.h:143
Definition: Filter.h:16
HRESULT WINAPI D3DXCreateTextureFromFileExA(LPDIRECT3DDEVICE8 pDevice, LPCSTR pSrcFile, UINT Width, UINT Height, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DTEXTURE8 *ppTexture)
HRESULT WINAPI D3DXCreateCubeTextureFromResourceExA(LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCSTR pSrcResource, UINT Size, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DCUBETEXTURE8 *ppCubeTexture)
HRESULT WINAPI D3DXCreateCubeTextureFromResourceW(LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCWSTR pSrcResource, LPDIRECT3DCUBETEXTURE8 *ppCubeTexture)
HRESULT WINAPI D3DXCreateTextureFromResourceExW(LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCWSTR pSrcResource, UINT Width, UINT Height, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DTEXTURE8 *ppTexture)
Definition: d3dx8tex.h:141
HRESULT WINAPI D3DXSaveSurfaceToFileA(LPCSTR pDestFile, D3DXIMAGE_FILEFORMAT DestFormat, LPDIRECT3DSURFACE8 pSrcSurface, CONST PALETTEENTRY *pSrcPalette, CONST RECT *pSrcRect)
Format
Definition: vulkan.hpp:7957
HRESULT WINAPI D3DXLoadSurfaceFromResourceA(LPDIRECT3DSURFACE8 pDestSurface, CONST PALETTEENTRY *pDestPalette, CONST RECT *pDestRect, HMODULE hSrcModule, LPCSTR pSrcResource, CONST RECT *pSrcRect, DWORD Filter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo)
HRESULT WINAPI D3DXLoadVolumeFromResourceW(LPDIRECT3DVOLUME8 pDestVolume, CONST PALETTEENTRY *pDestPalette, CONST D3DBOX *pDestBox, HMODULE hSrcModule, LPCWSTR pSrcResource, CONST D3DBOX *pSrcBox, DWORD Filter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo)
Definition: glslang_tab.cpp:136
Definition: glslang_tab.cpp:133
HRESULT WINAPI D3DXFilterTexture(LPDIRECT3DBASETEXTURE8 pBaseTexture, CONST PALETTEENTRY *pPalette, UINT SrcLevel, DWORD Filter)
struct _D3DXIMAGE_INFO D3DXIMAGE_INFO
HRESULT WINAPI D3DXCreateCubeTextureFromFileInMemoryEx(LPDIRECT3DDEVICE8 pDevice, LPCVOID pSrcData, UINT SrcDataSize, UINT Size, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DCUBETEXTURE8 *ppCubeTexture)
Definition: d3dx8tex.h:138
HRESULT WINAPI D3DXCreateCubeTextureFromFileExW(LPDIRECT3DDEVICE8 pDevice, LPCWSTR pSrcFile, UINT Size, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DCUBETEXTURE8 *ppCubeTexture)
HRESULT WINAPI D3DXSaveTextureToFileW(LPCWSTR pDestFile, D3DXIMAGE_FILEFORMAT DestFormat, LPDIRECT3DBASETEXTURE8 pSrcTexture, CONST PALETTEENTRY *pSrcPalette)
Definition: d3dx8tex.h:136
Definition: d3dx8tex.h:137
#define VOID(p)
Definition: luac.c:224
HRESULT WINAPI D3DXGetImageInfoFromResourceW(HMODULE hSrcModule, LPCWSTR pSrcResource, D3DXIMAGE_INFO *pSrcInfo)
HRESULT WINAPI D3DXCreateVolumeTextureFromResourceExA(LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCSTR pSrcResource, UINT Width, UINT Height, UINT Depth, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DVOLUMETEXTURE8 *ppVolumeTexture)
Definition: d3dx8tex.h:139
HRESULT WINAPI D3DXComputeNormalMap(LPDIRECT3DTEXTURE8 pTexture, LPDIRECT3DTEXTURE8 pSrcTexture, CONST PALETTEENTRY *pSrcPalette, DWORD Flags, DWORD Channel, FLOAT Amplitude)
HRESULT WINAPI D3DXGetImageInfoFromFileInMemory(LPCVOID pSrcData, UINT SrcDataSize, D3DXIMAGE_INFO *pSrcInfo)
HRESULT WINAPI D3DXLoadSurfaceFromFileInMemory(LPDIRECT3DSURFACE8 pDestSurface, CONST PALETTEENTRY *pDestPalette, CONST RECT *pDestRect, LPCVOID pSrcData, UINT SrcDataSize, CONST RECT *pSrcRect, DWORD Filter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo)
HRESULT WINAPI D3DXCreateVolumeTextureFromFileInMemoryEx(LPDIRECT3DDEVICE8 pDevice, LPCVOID pSrcData, UINT SrcDataSize, UINT Width, UINT Height, UINT Depth, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DVOLUMETEXTURE8 *ppVolumeTexture)
struct IDirect3DCubeTexture8 * LPDIRECT3DCUBETEXTURE8
Definition: d3d8.h:839
HRESULT WINAPI D3DXCheckVolumeTextureRequirements(LPDIRECT3DDEVICE8 pDevice, UINT *pWidth, UINT *pHeight, UINT *pDepth, UINT *pNumMipLevels, DWORD Usage, D3DFORMAT *pFormat, D3DPOOL Pool)
HRESULT WINAPI D3DXCreateTextureFromFileExW(LPDIRECT3DDEVICE8 pDevice, LPCWSTR pSrcFile, UINT Width, UINT Height, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DTEXTURE8 *ppTexture)
UINT Width
Definition: d3dx8tex.h:197
HRESULT WINAPI D3DXCreateTextureFromFileInMemoryEx(LPDIRECT3DDEVICE8 pDevice, LPCVOID pSrcData, UINT SrcDataSize, UINT Width, UINT Height, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DTEXTURE8 *ppTexture)
HRESULT WINAPI D3DXCreateVolumeTextureFromResourceW(LPDIRECT3DDEVICE8 pDevice, HMODULE hSrcModule, LPCWSTR pSrcResource, LPDIRECT3DVOLUMETEXTURE8 *ppVolumeTexture)
Definition: d3d8types.h:1513