mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-09-09 03:30:17 -04:00
Document vtxstores
This commit is contained in:
@@ -3170,13 +3170,13 @@
|
||||
#define OBJHFLAG_GRABBED 0x08000000
|
||||
|
||||
// obj->hidden2
|
||||
#define OBJH2FLAG_HASOPA 0x01 // obj has opaque polygons (ie. most objects)
|
||||
#define OBJH2FLAG_HASXLU 0x02 // obj has translucent polygons
|
||||
#define OBJH2FLAG_CANREGEN 0x04
|
||||
#define OBJH2FLAG_CORE_GEO_EXISTS 0x08
|
||||
#define OBJH2FLAG_10 0x10
|
||||
#define OBJH2FLAG_DESTROYED 0x40
|
||||
#define OBJH2FLAG_80 0x80
|
||||
#define OBJH2FLAG_HASOPA 0x01 // obj has opaque polygons (ie. most objects)
|
||||
#define OBJH2FLAG_HASXLU 0x02 // obj has translucent polygons
|
||||
#define OBJH2FLAG_CANREGEN 0x04
|
||||
#define OBJH2FLAG_CORE_GEO_EXISTS 0x08
|
||||
#define OBJH2FLAG_10 0x10
|
||||
#define OBJH2FLAG_DESTROYED 0x40
|
||||
#define OBJH2FLAG_DEFORMED 0x80
|
||||
|
||||
#define OBJTYPE_DOOR 0x01
|
||||
#define OBJTYPE_DOORSCALE 0x02
|
||||
|
||||
@@ -130,7 +130,7 @@ void current_player_queue_pickup_weapon_hudmsg(u32 weaponnum, bool dual);
|
||||
s32 prop_pickup_by_player(struct prop *prop, bool showhudmsg);
|
||||
s32 obj_test_for_pickup(struct prop *prop);
|
||||
bool func0f0899dc(struct prop *prop, struct coord *arg1, f32 *xrange, f32 *yrange);
|
||||
void model_free_vertices(s32 vtxstoretype, struct model *model);
|
||||
void model_free_vtxstores(s32 vtxstoretype, struct model *model);
|
||||
void hat_assign_to_chr(struct hatobj *hat, struct chrdata *chr);
|
||||
struct prop *hat_create_for_chr(struct chrdata *chr, s32 modelnum, u32 flags);
|
||||
void player_activate_remote_mine_detonator(s32 playernum);
|
||||
@@ -172,7 +172,7 @@ bool gas_is_active(void);
|
||||
Gfx *countdown_timer_render(Gfx *gdl);
|
||||
void projectiles_debug(void);
|
||||
void alarm_tick(void);
|
||||
void func0f091030(void);
|
||||
void obj_free_all_offscreen_deformed_objs(void);
|
||||
void current_player_drop_all_items(void);
|
||||
void weapon_create_for_player_drop(s32 weaponnum);
|
||||
void projectile_create(struct prop *fromprop, struct fireslotthing *arg1, struct coord *pos, struct coord *direction, u8 weaponnum, struct prop *targetprop);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
void vtxstore_reset(void);
|
||||
|
||||
void vtxstore_tick(void);
|
||||
void *vtxstore_allocate(s32 count, s32 index, struct modelnode *node, s32 level);
|
||||
void vtxstore_free(s32 type, void *arg1);
|
||||
void *vtxstore_allocate(s32 count, s32 type, struct modelnode *node, s32 level);
|
||||
void vtxstore_free(s32 type, void *allocation);
|
||||
|
||||
#endif
|
||||
|
||||
+20
-20
@@ -5359,28 +5359,28 @@ struct pschannel {
|
||||
#endif
|
||||
};
|
||||
|
||||
struct var8007e3d0_data {
|
||||
void *unk00;
|
||||
struct modelnode *node;
|
||||
s32 level;
|
||||
s16 count;
|
||||
s16 unk0e;
|
||||
struct vtxstoretype {
|
||||
s32 spmaxunits;
|
||||
s32 spnumbatches;
|
||||
s32 mpmaxunits;
|
||||
s32 mpnumbatches;
|
||||
s32 othermaxunits;
|
||||
s32 othernumbatches;
|
||||
s32 unused18;
|
||||
s32 unused1c;
|
||||
s32 unused20;
|
||||
struct vtxstorebatch *batches;
|
||||
s32 numunitsmax;
|
||||
s32 numunitsfree;
|
||||
s32 numbatches;
|
||||
};
|
||||
|
||||
struct vtxstoretype {
|
||||
s32 valifsp;
|
||||
s32 numifsp;
|
||||
s32 valifmp;
|
||||
s32 numifmp;
|
||||
s32 valifspecial;
|
||||
s32 numifspecial;
|
||||
s32 unk18;
|
||||
s32 unk1c;
|
||||
s32 unk20;
|
||||
struct var8007e3d0_data *unk24;
|
||||
s32 val1;
|
||||
s32 val2;
|
||||
s32 numallocated;
|
||||
struct vtxstorebatch {
|
||||
void *allocation;
|
||||
struct modelnode *node;
|
||||
s32 level;
|
||||
s16 numunitsalloced;
|
||||
s16 refcount;
|
||||
};
|
||||
|
||||
struct wallhit {
|
||||
|
||||
Reference in New Issue
Block a user