Repository navigation
Expand file tree
/
Copy pathmodel.h
More file actions
578 lines (494 loc) · 20.5 KB
/
Copy pathmodel.h
File metadata and controls
578 lines (494 loc) · 20.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
#ifndef BANJO_KAZOOIE_CORE2_MODEL_H
#define BANJO_KAZOOIE_CORE2_MODEL_H
#include <ultra64.h>
#include "bool.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Model header
* Contains offsets relative to the start of the file to the various sections
* If a section is not present in the file, the offset will be zero
*
*/
typedef struct bk_model_header_s {
u32 magic_number;
s32 geo_list_offset;
s16 texture_list_offset;
s16 geo_type;
s32 gfx_list_offset;
s32 vtx_list_offset;
s32 unk14_list_offset; // collision volumes: boxes, cylinders and spheres
s32 animation_list_offset;
s32 collision_list_offset;
s32 camera_area_list_offset; // boxes the geo CAMERA command draws inside or outside of
s32 mesh_list_offset; // named groups of vertices, addressed and moved at run time
s32 anim_vertices_list_offset; // pins each group of vertices onto one point on one matrix
s32 animated_texture_list_offset;
u16 tri_count; // number of triangles drawn by the gfx list (G_TRI1 + 2 * G_TRI2)
u16 vertex_count; // same as the vertex list's count
f32 unk34;
} BKModelBin;
/* Geometry Setup structs and typedefs
* Geometry Setup contains list of commands that control the rendering (called in modelRender_draw)
*
* Command overview:
* - UNK0 0x00 Calls a sublist, ...
* - SORT 0x01 Call sublist based on points distance
* - BONE 0x02 Applies an animation matrix and then calls a sublist
* - LOADDL 0x03 Draw Display List
* - NOP 0x04 No operation
* - SKINNING 0x05 Draw multiple Display Lists and with pre-applying matrices
* - CALL 0x06 Calls a sublist
* - LOADDL2 0x07 Draw Display List
* - LOD 0x08 Call sublist if Level of Detail matches
* - NOP2 0x09 No operation
* - REFPOINT 0x0A Transforms a point relative to the camera and feedbacks it back to the object
* - NOP3 0x0B No operation
* - SELECTOR 0x0C ???
* - DRAWDIST 0x0D Draw with Frustum Culling
* - UNKE 0x0E ???
* - CAMERA 0x0F Calls a sublist if the camera is inside or outside a bounding box, depending on the flag
* - TEXWRAP 0x10 Sets the texture wrapping mode
*
*/
struct geo_cmd_0_s {
u32 cmd;
s32 next_offset;
s16 branch_offset;
s16 do_pitch_rotate;
f32 position[3];
};
struct geo_cmd_sort_s {
u32 cmd;
s32 next_offset;
f32 point_1[3];
f32 point_2[3];
s16 flags;
s16 branch_offset_1;
s32 branch_offset_2;
};
#define BK_GEO_CMD_SORT_RUN_BOTH_BIT 0x01
struct geo_cmd_bone_s {
u32 cmd;
s32 next_offset;
u8 branch_offset;
s8 anim_matrix_id;
};
struct geo_cmd_load_dl_s {
u32 cmd;
s32 next_offset;
s16 gfx_index;
};
struct geo_cmd_skinning_s {
u32 cmd;
s32 next_offset;
s16 gfx_index[];
};
struct geo_cmd_call_s {
u32 cmd;
s32 next_offset;
s32 branch_offset;
};
struct geo_cmd_load_dl_2_s {
u32 cmd;
s32 next_offset;
s16 pad;
s16 gfx_index;
};
struct geo_cmd_lod_s {
u32 cmd;
s32 next_offset;
f32 max;
f32 min;
f32 position[3];
s32 branch_offset;
};
struct geo_cmd_reference_point_s {
u32 cmd;
s32 next_offset;
s16 index;
s16 anim_mtx_id;
f32 point[3];
};
struct geo_cmd_selector_s {
u32 cmd;
s32 next_offset;
s16 branch_offset_count;
s16 index;
s32 branch_offsets[];
};
struct geo_cmd_draw_distance_s {
u32 cmd;
s32 next_offset;
s16 min[3];
s16 max[3];
s16 branch_offset;
};
struct geo_cmd_E_s {
u32 cmd;
s32 next_offset;
s16 position[3];
s16 distance;
s16 branch_offset;
s16 anim_mtx_id;
};
struct geo_cmd_camera_s {
u32 cmd;
s32 next_offset;
s16 branch_offset;
u8 count;
u8 flags;
u8 id_list[];
};
#define BK_GEO_CMD_CAMERA_IS_OUTSIDE_BIT 0x01
#define BK_GEO_CMD_CAMERA_IS_INSIDE_BIT 0x02
struct geo_cmd_set_texture_wrap_mode_s {
u32 cmd;
s32 next_offset;
s32 mode;
};
struct bk_geo_cmd_s {
u32 cmd;
s32 next_offset;
u8 data[];
};
typedef struct bk_geo_cmd_s BKGeoCmd;
typedef void (*BKGeoCmdFunc)(Gfx **gfx, Mtx **mtx, struct bk_geo_cmd_s *data);
/* Texture List and Texture Data
*
*/
typedef struct bk_texture_info_s {
s32 offset;
s16 type;
u8 pad6[2];
u8 width;
u8 height;
u8 padA[6];
} BKTextureInfo;
#define BK_TEXTURE_INFO_TYPE_CI4_BIT 0x01
#define BK_TEXTURE_INFO_TYPE_CI8_BIT 0x02
#define BK_TEXTURE_INFO_TYPE_RGBA16_BIT 0x04
#define BK_TEXTURE_INFO_TYPE_RGBA32_BIT 0x08
typedef struct bk_texture_list_s {
s32 size;
s16 count;
u16 pad;
BKTextureInfo texture_infos[];
} BKTextureList;
/* Geo Type
*
*/
typedef u32 BkGeoType;
#define BK_GEO_TYPE_MIPMAP_TRILINEAR_BIT 0x02
#define BK_GEO_TYPE_ENV_MAP_BIT 0x04
/* Gfx Display Lists
*
*/
typedef struct bk_gfx_list_s {
u32 size;
u32 pad;
Gfx list[];
} BKGfxList;
/* Vertex Lists
*
*/
typedef struct bk_vertex_list_s {
s16 minCoord[3];
s16 maxCoord[3];
s16 centerCoord[3];
s16 local_norm; //(distance to furthest vtx relative to model center)
s16 count;
s16 global_norm; //(distance to furthest vtx relative to model origin)
Vtx vertices[];
} BKVertexList;
/* Unk14 Lists
*
*/
typedef struct {
s16 unk0[3];
s16 unk6[3];
s16 unkC[3];
u8 unk12[3];
u8 unk15;
s8 unk16;
u8 pad17[1];
}BKModelUnk14_0;
typedef struct {
s16 unk0;
s16 unk2;
s16 unk4[3];
u8 unkA[3];
u8 unkD;
s8 unkE;
u8 padF[1];
}BKModelUnk14_1;
typedef struct {
s16 unk0;
s16 unk2[3];
u8 unk8;
s8 unk9;
u8 padA[2];
}BKModelUnk14_2;
typedef struct {
s16 cnt0; //number of BKModelUnk14_0 structs
s16 cnt2; //number of BKModelUnk14_1 structs
s16 unk4; //number of BKModelUnk14_2 structs
s16 unk6;
u8 data[];
//BKModelUnk14_0[]
//BKModelUnk14_1[]
//BKModelUnk14_2[]
}BKModelUnk14List;
/* Animation Lists
*
*/
typedef struct bk_animation_s {
f32 translation[3];
s16 bone_id;
s16 mtx_id;
} BKAnimation;
typedef struct bk_animation_list_s {
f32 unk0; // scale factor ?
s16 count;
BKAnimation animations[];
} BKAnimationList;
/* Collision Lists
*
*/
typedef struct bk_collision_geometry_s {
s16 start_tri_index; //start_tri
s16 tri_count; //tri_cnt
} BKCollisionGeometry;
/* Collision triangle
* unk0 holds three indices into the model's vertex list. The normal is
* cross(v1 - v0, v2 - v0).
* unk6 bit 1 (0x2): standing on this floor doesn't tint the player (see core2_12F30_getFloorTint).
*
* A collision query's flag filter skips every triangle with any of the filter's bits set.
*
* Known flag bits:
* - 0x00000080 knocks the player back when they fly into it (bsbfly)
* - 0x00001F00 surface type, used to pick footstep sounds (see func_803246B4). With 0x80000000
* set it is looked up in a global table, otherwise bits 0x200-0x1000 pick an
* entry from a per-map table.
* - 0x00004000 hurts the player on contact; only checked in Gobi's Valley (see hazards_update)
* and only used by the cactus model (asset 0x424)
* - 0x00010000 two-sided: the normal is flipped to face the tested point
* - 0x001E0000 water surface: always in the player's floor/wall collision filter
* - 0x00400000 always in the player's collision filter (see baMarker_8028D694)
* - 0x08000000 << n added to the player's filter while touching an actor whose marker has
* unk40_31 == 0xB + n and bit n of unk40_27 set (see baMarker_8028D694)
*/
typedef struct bk_collision_triangle_s {
s16 unk0[3]; //vtx_indx
s16 unk6;
s32 flags;
} BKCollisionTriangle;
/* Collision list
* The model is divided into a grid of cubic cells `scale` units wide. Each
* BKCollisionGeometry is one cell and lists the triangles touching it; a
* triangle spanning several cells is stored once per cell. Cell (x, y, z)
* (relative to `min`) is at index x + y * y_stride + z * z_stride.
* A scale of 0 means a single cell that holds every triangle.
* Moving-sphere tests process at most 100 triangles per query (sActiveCollTris).
*/
typedef struct bk_collision_list_s {
s16 min[3]; // first cell, in cell units
s16 max[3]; // last cell (inclusive), in cell units
s16 y_stride; // number of cells along x
s16 z_stride; // number of cells in one x-y layer
s16 geo_count; // total number of cells
s16 scale; // cell size in world units
s16 tri_count; // number of triangle entries (including per-cell duplicates)
u8 pad16[0x2];
u8 data[];
// BKCollisionGeometry[geo_count];
// BKCollisionTriangle[tri_count];
} BKCollisionList;
/* Camera Area Lists
* Contains a list of areas with bounding boxes that control which parts of maps are rendered if
* the camera is inside a box
*/
typedef struct bk_camera_area_s {
s16 min[3];
s16 max[3];
u8 in_bounds;
u8 pad;
}BKCameraArea;
typedef struct bk_camera_area_list_s {
u8 count;
u8 pad;
BKCameraArea data[];
} BKCameraAreaList;
/* Mesh Lists
*
*/
typedef struct bk_mesh_s {
s16 uid;
s16 vtx_count;
s16 vertices[];
} BKMesh;
typedef struct bk_mesh_list_s {
s16 count;
u8 data[];
} BKMeshList;
/* Animated Vertices Lists
* Stores a list of vertices that is affected by a specific animation
*/
typedef struct {
s16 coord[3];
s8 anim_index;
u8 vtx_count;
s16 vtx_list[1];
} BKAnimVertices;
typedef struct {
s16 count;
u16 pad;
u8 data[];
} BKAnimVerticesList;
/* Animated Texture Lists
* There is space for four animated texture info blocks
*/
typedef struct bk_animated_texture_s {
s16 frame_size;
s16 frame_cnt;
f32 frame_rate;
} BKAnimTexture;
typedef struct bk_animated_texture_list_s {
BKAnimTexture anim_textures[4];
} BKAnimTextureList;
/* Model
* These structs are not part of the model file, but are created at runtime.
* They are used to transform meshes
*
* A Model has the following structure:
* - 1 BKModel as header (contains pointers to BKMeshList and BKVertexList)
* - A list of BKModelMesh, each directly followed by lists of BKModelVtxRef
*/
typedef struct bk_model_mesh_vtx_ref_s {
Vtx v;
s16 vtx_id;
s16 pad12;
s32 pad14;
} BKModelVtxRef;
typedef struct bk_model_mesh_s {
s16 uid;
s16 vtx_count;
u8 data[]; // BKModelVtxRef[], but must be declared as u8[]
} BKModelMesh;
typedef struct bk_model_s {
BKMeshList *mesh_list;
BKVertexList *vtx_list;
u8 data[]; // BKModelMesh[], but must be declared as u8[]
} BKModel;
typedef void (*bk_model_transform_func_s)(s32 mesh_id, BKModelVtxRef *vtx_ref, Vtx *vtx, void *arg3);
/* Function declarations
*
*/
BKAnimVerticesList *modelbin_getAnimVerticesList(BKModelBin *self);
BkGeoType modelbin_getGeoType(BKModelBin *self);
BKGfxList *modelbin_getGfxList(BKModelBin *self);
BKCollisionList *modelbin_getCollisionList(BKModelBin *self);
BKMeshList *modelbin_getMeshList(BKModelBin *self);
f32 modelbin_getUnk34(BKModelBin *self);
BKAnimationList *modelbin_getAnimationList(BKModelBin *self);
BKTextureList *modelbin_getTextureList(BKModelBin *self);
BKAnimTextureList *modelbin_getAnimTextureList(BKModelBin *self);
BKModelUnk14List *modelbin_getUnk14List(BKModelBin *self);
BKVertexList *modelbin_getVtxList(BKModelBin *self);
BKCameraAreaList *modelbin_getCameraAreaList(BKModelBin *self);
#define modelbin_getGeoCmdList_MACRO(this) ((BKGeoCmd *) (((u8 *) (this)) + ((BKModelBin *) (this))->geo_list_offset))
#define modelbin_getTextureList_MACRO(this) ((BKTextureList *) (((u8 *) (this)) + ((BKModelBin *) (this))->texture_list_offset))
#define modelbin_getGfxList_MACRO(this) ((BKGfxList *) (((u8 *) (this)) + ((BKModelBin *) (this))->gfx_list_offset))
#define modelbin_getVtxList_MACRO(this) ((BKVertexList *) (((u8 *) (this)) + ((BKModelBin *) (this))->vtx_list_offset))
#define modelbin_getUnk14List_MACRO(this) ((BKModelUnk14List *) (((u8 *) (this)) + ((BKModelBin *) (this))->unk14_list_offset))
#define modelbin_getAnimationList_MACRO(this) ((BKAnimationList *) (((u8 *) (this)) + ((BKModelBin *) (this))->animation_list_offset))
#define modelbin_getCollisionList_MACRO(this) ((BKCollisionList *) (((u8 *) (this)) + ((BKModelBin *) (this))->collision_list_offset))
#define modelbin_getCameraAreaList_MACRO(this) ((BKCameraAreaList *) (((u8 *) (this)) + ((BKModelBin *) (this))->camera_area_list_offset))
#define modelbin_getMeshList_MACRO(this) ((BKMeshList *) (((u8 *) (this)) + ((BKModelBin *) (this))->mesh_list_offset))
#define modelbin_getAnimVerticesList_MACRO(this) ((BKAnimVerticesList *) (((u8 *) (this)) + ((BKModelBin *) (this))->anim_vertices_list_offset))
#define modelbin_getAnimTextureList_MACRO(this) ((BKAnimTextureList *) (((u8 *) (this)) + ((BKModelBin *) (this))->animated_texture_list_offset))
void model_copyFramebufferToTextures(BKModelBin *self);
u8 *textureList_getDataPtr(BKTextureList *self);
BKTextureInfo *textureList_getTextureInfo(BKTextureList *self, s32 index);
s32 textureInfo_getBitDepth(BKTextureInfo *self);
s32 textureInfo_getType(BKTextureInfo *self);
s32 textureInfo_getPaletteSize(BKTextureInfo *self);
s32 textureInfo_getOffset(BKTextureInfo *self);
s32 textureInfo_getTextureSize(BKTextureInfo *self);
f32 core2_C3A40_getIntensity(f32 curve_values[4], f32 position);
void core2_C3A40_getDefaultValues(f32 dst[4]);
Vtx *vtxList_getVertices(BKVertexList *self);
void vtxList_getBounds_s32(BKVertexList *self, s32 min[3], s32 max[3]);
void vtxList_getBounds_f32(BKVertexList *self, f32 min[3], f32 max[3]);
void vtxList_getBoundsTransformed(BKVertexList *self, f32 min[3], f32 max[3]);
void vtxList_func_802EC680(BKVertexList *self, s32 arg1, f32 arg2[3], f32 arg3[3]);
void vtxList_getVtxRange(BKVertexList *self, Vtx **begin_ptr, Vtx **end_ptr);
s32 vtxList_getVtxCount(BKVertexList *self);
f32 vtxList_getGlobalNorm(BKVertexList *self);
void vtxList_getCenterAndNorm(BKVertexList *self, f32 center[3], f32 *norm);
f32 vtxList_getLocalNorm(BKVertexList *self);
void vtxList_free(BKVertexList *self);
BKVertexList *vtxList_clone(BKVertexList *self);
void vtxList_copyColorsFrom(BKVertexList *self, BKVertexList *src);
void vtxList_tintColorsFrom(BKVertexList *self, s32 target_color[3], f32 intensity, BKVertexList *src);
void vtxList_recolor(BKVertexList *self, s32 color[3]);
// bool bkmodelunk14list_func_802EA760(BKModelUnk14List *this, s32 arg1, f32 arg2[3], f32 rotation[3], f32 scale, f32 arg5[3], f32 arg6[3], f32 *arg7);
// s32 bkmodelunk14list_func_802EA864(BKModelUnk14List *this, f32 position[3], f32 rotation[3], f32 scale, f32 arg4[3], f32 arg5[3], f32 arg6);
// s32 bkmodelunk14list_func_802EAB34(BKModelUnk14List *this, f32 position[3], f32 rotation[3], f32 scale, f32 arg4[3], f32 arg5[3], f32 arg6);
// s32 bkmodelunk14list_func_802EAD5C(BKModelUnk14List *this, f32 position[3], f32 rotation[3], f32 scale, f32 arg4[3], f32 arg5[3], f32 arg6);
// s32 bkmodelunk14list_func_802EAED4(BKModelUnk14List *this, f32 position[3], f32 rotation[3], f32 scale, f32 arg4[3], AnimMtxList *arg5, f32 arg6[3], f32 arg7);
// s32 bkmodelunk14list_func_802EB458(BKModelUnk14List *this, f32 position[3], f32 rotation[3], f32 scale, f32 arg4[3], AnimMtxList* arg5, f32 arg6[3], f32 arg7);
// s32 bkmodelunk14list_func_802EB8A0(BKModelUnk14List *this, f32 *position, f32 *rotation, f32 scale, f32 arg4[3], AnimMtxList* arg5, f32 *arg6, f32 arg7);
// bool bkmodelunk14list_func_802EBA98(BKModelUnk14List *this, f32 arg1[3], f32 rotation[3], f32 scale, f32 arg4[3], f32 arg5[3], f32 arg6, f32 arg7[3]);
// s32 bkmodelunk14list_func_802EBAE0(BKModelUnk14List *this, f32 position[3], f32 rotation[3], f32 scale, f32 arg4[3], AnimMtxList* arg5, f32 arg6[3], f32 arg7, f32 arg8[3]);
// s32 bkmodelunk14list_func_802EBD3C(BKModelUnk14List *this, f32 arg1[3], f32 rotation[3], f32 scale, f32 arg4[3], f32 arg5[3], s32 arg6);
// s32 bkmodelunk14list_func_802EC000(BKModelUnk14List *this, f32 arg1[3], f32 rotation[3], f32 scale, f32 arg4[3], f32 arg5[3], s32 arg6);
// s32 bkmodelunk14list_func_802EC238(BKModelUnk14List *this, f32 arg1[3], f32 rotation[3], f32 scale, f32 arg4[3], f32 arg5[3], s32 arg6);
// s32 bkmodelunk14list_func_802EC394(BKModelUnk14List *this, f32 position[3], f32 rotation[3], f32 scale, f32 arg4[3], f32 arg5[3], s32 arg6);
bool cameraAreaList_searchForEntryInBounds(BKCameraAreaList *self, u8 *id, u32 count);
void cameraAreaList_updateInBoundsFlag(BKCameraAreaList *self, f32 camera_position[3], f32 scale);
s32 meshList_getVtxCount(BKMeshList *self);
BKMesh *meshList_getMesh(BKMeshList *self, s32 mesh_id);
bool meshList_meshContainsVtx(BKMeshList *self, s32 mesh_id, s16 *vtx_id);
BKModel *meshList_createModel(BKMeshList *self, BKVertexList *bk_vtx_list);
void model_transformMeshes(BKModel *self, bk_model_transform_func_s fn, void *transform_func_arg);
void model_transformMesh(BKModel *self, s32 mesh_id, bk_model_transform_func_s fn, void *transform_func_arg);
void model_getMeshCenter(BKModel *self, s32 mesh_id, s16 dst[3]);
BKMeshList *model_getMeshList(BKModel *self);
void model_getMeshCoordRange(BKModel *self, s32 mesh_id, s16 min[3], s16 max[3]);
s32 model_func_8033F3C0(BKModel *self, f32 position[3]);
s32 model_func_8033F3E8(BKModel *self, f32 position[3], s32 min_id, s32 max_id);
void model_free(BKModel *self);
//void animVerticesList_setCoords(BKAnimVerticesList *this, BKVertexList *bk_vtx_list, s32 index, f32 coords[3]);
//void animVerticesList_transform(BKAnimVerticesList *this, BKVertexList *bk_vtx_list, AnimMtxList *mtx_list);
typedef struct bk_processed_collision_triangle_s {
f32 edgeAB[3];
f32 edgeAC[3];
f32 normal[3];
BKCollisionTriangle *tri_ptr;
f32 tri_coord[3][3];
} BKProcessedCollisionTriangle;
void collisionList_setStoredTriangle(BKCollisionTriangle *self, BKVertexList *bk_vtx_list);
void collisionList_getIntersecting_f32(BKCollisionList *self, f32 min[3], f32 max[3], BKCollisionGeometry ***begin_ptr, BKCollisionGeometry ***end_ptr);
void collisionList_getIntersecting_s32(BKCollisionList *self, s32 min[3], s32 max[3], BKCollisionGeometry ***begin_ptr, BKCollisionGeometry ***end_ptr);
void collisionList_getStoredTriangle(f32 tri[3][3]);
s32 collisionList_getTriCount_0x1E0000(BKCollisionList *self);
s32 collisionList_getTriCount(BKCollisionList *self);
void collisionList_getTris(BKCollisionList *self, BKCollisionTriangle **begin_ptr, BKCollisionTriangle **end_ptr);
bool collisionList_pointOnLine(f32 point[3], f32 margin, f32 line_start[3], f32 line_end[3]);
bool collisionList_spheresIntersect(f32 pos1[3], f32 radius1, f32 pos2[3], f32 radius2);
void collisionList_calculateBoundsAndDirection(f32 start_point[3], f32 end_point[3], s32 min_bounds[3], s32 max_bounds[3], f32 direction_vector[3]);
BKCollisionTriangle *collisionList_intersectLine(BKCollisionList *self, BKVertexList *bk_vtx_list, f32 line_start[3], f32 line_end[3], f32 normal[3], u32 flag_filter);
BKCollisionTriangle *collisionList_intersectLineGlobal(BKCollisionList *self, BKVertexList *bk_vtx_list, f32 position[3], f32 rotation[3], f32 scale, f32 line_start[3], f32 line_end[3], f32 normal[3], u32 flag_filter);
bool collisionList_intersectMovingSphere_FastCheck(BKCollisionList *self, BKVertexList *bk_vtx_list, f32 p1[3], f32 p2[3], f32 velocity[3], f32 margin, u32 flag_filter, BKProcessedCollisionTriangle **activeTriStartPtr, BKProcessedCollisionTriangle **activeTriEndPtr);
BKProcessedCollisionTriangle *collisionList_intersectMovingSphere_Iteration(BKProcessedCollisionTriangle *startTri, BKProcessedCollisionTriangle *endTri, f32 position[3], f32 radius, f32 normal[3]);
BKCollisionTriangle *collisionList_intersectMovingSphere(BKCollisionList *self, BKVertexList *bk_vtx_list, f32 p1[3], f32 p2[3], f32 radius, f32 arg5[3], s32 steps, u32 flag_filter);
BKCollisionTriangle *collisionList_intersectMovingSphereGlobal(BKCollisionList *self, BKVertexList *bk_vtx_list, f32 position[3], f32 rotation[3], f32 scale, f32 p1[3], f32 p2[3], f32 sphere_radius, f32 normal[3], s32 steps, u32 flag_filter);
BKCollisionTriangle *collisionList_intersectSphere(BKCollisionList *self, BKVertexList *bk_vtx_list, f32 position[3], f32 radius, f32 normal[3], u32 flag_filter);
BKCollisionTriangle *collisionList_intersectSphereGlobal(BKCollisionList *self, BKVertexList *bk_vtx_list, f32 position[3], f32 rotation[3], f32 scale, f32 sphere_center[3], f32 sphere_radius, f32 normal[3], u32 flag_filter);
void gclights_recolor_vertices(BKVertexList *arg0, f32 position[3], f32 rotation[3], f32 scale, f32 arg4[3], BKVertexList *arg5);
#ifdef __cplusplus
}
#endif
#endif