- TOctreeFileHeader = packed record
- Magic : Cardinal; // $88888888
- Verts, // number of vertices
- Elements, // number of Octree nodes
- Shaders : integer; // number of shaders used
- Norm, // vertex normals present ?
- Color, // vertex colors present ?
- SecondaryColor, // secondary vertex colors present ?
- FogCoord : LongBool; // vertex fog coordinates present ?
- TexCoordSets, // number of texture coordinate sets (0..32)
- Attribs : integer; // number of general per-vertex attributes (0..32)
- ColorComponents : integer; // color components used (3, 4)
- TexCoordComponents: array[0..31] of integer; // texture components used per texture set (1..4)
- TexCoordUnits : array[0..31] of GLenum; // OpenGL texture units to send texture coordinates to (GL_TEXTURE0..GL_TEXTURE31)
- AttribComponents : array[0..31] of integer; // attribute components used per attribute (1..4)
- AttribIndices : array[0..31] of Cardinal; // attribute indices to send attributes to (0..31)
- VertOffset, // relative offset to vertex data
- NormOffset, // relative offset to normal data (if present)
- ColorOffset, // relative offset to color data (if present)
- SecondaryColorOffset, // relative offset to secondary color data (if present)
- FogCoordOffset : Cardinal; // relative offset to fog coordinate data (if present)
- TexCoordOffsets : array[0..31] of Cardinal; // relative offset to texture coordinate data of set n (if present)
- AttribOffsets : array[0..31] of Cardinal; // relative offset to attribute data n (if present)
- ElementOffset : Cardinal; // relative offset to octree elements
- PVSOffset : Cardinal; // relative offset to visibility map table
- end;