-
Notifications
You must be signed in to change notification settings - Fork 30
File format: bsp
chino edited this page Jan 5, 2013
·
1 revision
// constants
#define BSP_VERSION_NUMBER (1)
#define MAGIC_NUMBER 0x584A5250
// This represents a single bsp node in binary .BSP file.
// You can use this to cast the binary data in a .BSP file.
typedef struct BSP_RAWNODE
{
VECTOR Normal;
float Offset;
int Front;
int Back;
int Colour;
}BSP_RAWNODE;
// File .BSP (Binary Space Partitions)
// Holds the level's BSP information
// A description of the format proceeds
MAGIC_NUMBER (uint32)
BSP_VERSION_NUMBER (uint32)
number_of_groups (int16)
for_each_group:
{
number_of_nodes (int16)
for_each_node: BSP_RAWNODE
}