Data Structures | |
| struct | entity_t |
| In-memory representation of an entity as parsed from the map script. More... | |
| struct | epair_s |
| struct | mbrush_s |
| struct | mface_s |
Macros | |
| #define | ENTITIES_CHUNK 16 |
| #define | MAX_FACES 256 |
| #define | MIPTEXNAME_CHUNK 16 |
Typedefs | |
| typedef struct epair_s | epair_t |
| typedef struct mbrush_s | mbrush_t |
| typedef struct mface_s | mface_t |
Functions | |
| int | FindMiptex (const char *name) |
| Allocate a miptex handle for the named miptex. More... | |
| void | GetVectorForKey (const entity_t *ent, const char *key, vec3_t vec) |
| Parse a vector value from an entity's key. More... | |
| void | LoadMapFile (const char *filename) |
| Load and parse the map script. More... | |
| void | PrintEntity (const entity_t *ent) |
| Dump an entity's data to stdout. More... | |
| void | SetKeyValue (entity_t *ent, const char *key, const char *value) |
| Set the value of the entity's key. More... | |
| const char * | ValueForKey (const entity_t *ent, const char *key) |
| Get the value for the specified key from an entity. More... | |
| void | WriteEntitiesToString (void) |
| Write all valid entities to the bsp file. More... | |
Variables | |
| vec3_t | baseaxis [18] |
| entity_t * | entities |
| entity_t * | entities |
| script_t * | map_script |
| entity_t * | mapent |
| int | max_entities |
| int | maxmiptexnames |
| hashtab_t * | miptex_hash |
| const char ** | miptexnames |
| const char ** | miptexnames |
| int | num_entities |
| int | num_entities |
| int | numdetailbrushes |
| int | nummapbrushes |
| int | nummapbrushfaces |
| int | nummiptexnames |
| int | nummiptexnames |
| #define ENTITIES_CHUNK 16 |
| #define MAX_FACES 256 |
| #define MIPTEXNAME_CHUNK 16 |
Allocate a miptex handle for the named miptex.
If the a miptex with the same name already exists, the previous handle will be returned. hint and skip textures are handled specially, returning TEX_HINT and TEX_SKIP respectively.
| name | The name of the texture. |
Parse a vector value from an entity's key.
| ent | The entity from which to fetch the key. |
| key | The key of wich to parse the vector value. |
| vec | The destination of the vector value. |
| void LoadMapFile | ( | const char * | filename | ) |
Load and parse the map script.
Fills in the entities and miptexnames arrays.
| filename | Path of the map script to parse. |
Dump an entity's data to stdout.
| ent | The entity to dump. |
Set the value of the entity's key.
If the key does not exist, one will be added.
| ent | The entity owning the key. |
| key | The key to set. |
| value | The value to which the key is to be set. |
Get the value for the specified key from an entity.
| ent | The entity from which to fetch the value. |
| key | The key for which to fetch the value. |
| void WriteEntitiesToString | ( | void | ) |
Write all valid entities to the bsp file.
Writes all entities that still have key=value pairs to the bsp file. Only the key=value pairs are written: any brush data is left out.
| vec3_t baseaxis[18] |
| entity_t* entities |
| entity_t* entities |
| script_t* map_script |
| entity_t* mapent |
| int max_entities |
| int maxmiptexnames |
| hashtab_t* miptex_hash |
| const char** miptexnames |
| const char** miptexnames |
| int num_entities |
| int num_entities |
| int numdetailbrushes |
| int nummapbrushes |
| int nummapbrushfaces |
| int nummiptexnames |
| int nummiptexnames |