|
coastline 0.0.4
|
The cache of the triangles of the track around a point, one cell of the 32-unit grid of the track in each slot. More...


Go to the source code of this file.
Classes | |
| struct | TrackTriangle |
| A triangle of the track with its plane. More... | |
Macros | |
| #define | TRI_CACHE_SLOTS 4 |
| The cells of the grid the cache holds at once. | |
| #define | TRI_CACHE_TRIANGLES 150 |
| The triangles a slot of the cache holds. | |
Typedefs | |
| typedef struct TrackTriangle | TrackTriangle |
| A triangle of the track with its plane. | |
Functions | |
| s32 | InvalidateTriCacheSectorAt (f32 x, f32 y) |
| Empty the slot that holds the cell under a point. | |
| s16 | BuildTrackTriangleCache (f32 x, f32 y) |
| Find or fill the slot of the cache that holds the triangles of the cell under a point, filling the slot used longest ago. | |
Variables | |
| TrackTriangle | g_aTriCacheTriangles [TRI_CACHE_SLOTS][TRI_CACHE_TRIANGLES] |
| The track triangles stored in each slot of the collision cache. | |
| u16 | g_awTriCacheSectorId [TRI_CACHE_SLOTS] |
| The cell each slot holds, as its row times 64 plus its column. | |
| u16 | g_awTriCacheTriCount [TRI_CACHE_SLOTS] |
| The triangles in each slot. | |
| Vec3f | g_vRayCeilingNormalInit |
| The initial ceiling normal for a vertical ray cast. | |
| Vec3f | g_vRayGroundNormalInit |
| The initial ground normal for a vertical ray cast. | |
| u32 | g_adwTriCacheLruStamp [TRI_CACHE_SLOTS] |
| When each slot was last used. | |
| u32 | g_dwTriCacheLruCounter |
| The count of the uses of the cache. | |
The cache of the triangles of the track around a point, one cell of the 32-unit grid of the track in each slot.
| #define TRI_CACHE_SLOTS 4 |
The cells of the grid the cache holds at once.
| #define TRI_CACHE_TRIANGLES 150 |
The triangles a slot of the cache holds.
| typedef struct TrackTriangle TrackTriangle |
A triangle of the track with its plane.
Empty the slot that holds the cell under a point.
| x | The X coordinate of the point. |
| y | The Y coordinate of the point. |
Find or fill the slot of the cache that holds the triangles of the cell under a point, filling the slot used longest ago.
| x | The X coordinate of the point. |
| y | The Y coordinate of the point. |
|
extern |
The track triangles stored in each slot of the collision cache.
|
extern |
The cell each slot holds, as its row times 64 plus its column.
|
extern |
The triangles in each slot.
|
extern |
The initial ceiling normal for a vertical ray cast.
|
extern |
The initial ground normal for a vertical ray cast.
|
extern |
When each slot was last used.
|
extern |
The count of the uses of the cache.