D3DXF
X file format, load, and save options.
File Formats
The following table specifies the type of file data:
#defines for File Format | Value | Description |
---|---|---|
D3DXF_FILEFORMAT_BINARY | 0 | Legacy-format binary file. See X File Reference (Legacy). |
D3DXF_FILEFORMAT_TEXT | 1 | Text file. |
D3DXF_FILEFORMAT_COMPRESSED | 2 | Compressed file. With this flag, you must also specify the binary format or the text format. |
File Load Options
The following table specifies file load options with .x files:
#define | Value | Description |
---|---|---|
D3DXF_FILELOAD_FromFile | 0 | Load data from a file. |
D3DXF_FILELOAD_FROMWFILE | 1 | Load data from a file. |
D3DXF_FILELOAD_FROMRESOURCE | 2 | Load data from a resource. |
D3DXF_FILELOAD_FROMMEMORY | 3 | Load data from memory. |
File Save Options
The following table specifies file save and load options with .x files:
#define | Value | Description |
---|---|---|
D3DXF_FILESAVE_TOFILE | 0 | Save to a file. |
D3DXF_FILESAVE_TOWFILE | 1 | Save to a wide-character file. |
Constant Information
Requirement | Value |
---|---|
Header | d3dx9xof.h |
Minimum operating system | Windows 98 |
Related topics