D3DXF
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXF


These constant values are used to specify operations with .x file data.

D3DXF_FILEFORMAT

The following flags specify what file type to use when saving data. All but D3DXF_FILEFORMAT_COMPRESSED are mutually exclusive.

#defineValueDescription
D3DXF_FILEFORMAT_BINARY0Legacy-format binary file. See X File Reference (Legacy).
D3DXF_FILEFORMAT_COMPRESSED2Compressed file. May be used in combination with other D3DXF_FILEFORMAT_ flags. This flag is not sufficient to completely specify the saved file format.
D3DXF_FILEFORMAT_TEXT1Text file.

D3DXF_FILELOADOPTIONS

The following flags specify what file type to use when loading data. All flags are mutually exclusive.

#defineValueDescription
D3DXF_FILELOAD_FROMFILE0x00LLoad data from a file, with the file name specified with an LPCSTR.
D3DXF_FILELOAD_FROMMEMORY0x03LLoad data from memory.
D3DXF_FILELOAD_FROMRESOURCE0x02LLoad data from a resource.
D3DXF_FILELOAD_FROMWFILE0x01LLoad data from a file, with the file name specified with an LPWSTR.

D3DXF_FILESAVEOPTIONS

The following flags are used to specify the name of a file to which data is to be saved. All flags are mutually exclusive.

#defineValueDescription
D3DXF_FILESAVE_TOFILE0x00LSave to the file with its name specified with an LPCSTR.
D3DXF_FILESAVE_TOWFILE0x01LSave to the file with its name specified with an LPWSTR.

Constant Information

Headerd3dx9xof.h
Minimum operating systemWindows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.