Microsoft DirectX 8.0 (Visual Basic) |
The table below shows which words are reserved and must not be used.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The variable-length header is compulsory and must be at the beginning of the data stream. The header contains the following data.
Type | Size | Contents | Content meaning |
---|---|---|---|
Magic Number (required) | 4 bytes | "xof" | |
Version Number (required) | 2 bytes | 03 | Major Version 3 |
2 bytes | 02 | Major Version 2 | |
Format Type (required) | 4 bytes | "txt" | Text File |
"bin" | Binary File | ||
"tzip" | MSZip Compressed Text File | ||
"bzip" | MSZip Compressed Binary File | ||
Float Size (required) | 4 bytes | 0064 | 64-bit floats |
0032 | 32-bit floats |
The following example shows a valid header.
xof 0302txt 0064
Comments are applicable only in text files. Comments can occur anywhere in the data stream. A comment begins with either C++ style double-slashes (//), or a number sign (#). The comment runs to the next new line. The following example shows valid comments.
# This is a comment. // This is another comment.