coastline 0.0.4
Loading...
Searching...
No Matches
trackrelocation.h
Go to the documentation of this file.
1#pragma once
2
3#include "common/fileio.h"
4#include "common/track.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
17
27
35void LoadTextureMapFile(const char *path);
36
44void LoadTrackTextureMap(int track);
45
54
63
72
81
90
99
108
117
126
136
137#ifdef __cplusplus
138}
139#endif
The checked file and memory routines of the PC port.
A file opened by the checked read or write routines.
Definition fileio.h:33
A texture of a model and its palette.
Definition render.h:63
The header of the loaded track.
Definition track.h:189
A model placed on the track.
Definition track.h:63
A point of the route, across the track.
Definition track.h:30
A section of the route.
Definition track.h:38
The track data a race loads below the program: its triangles and placed models, and the route the veh...
#define TRACK_MAX_SIZE
Definition track.h:458
void LoadTextureMapFile(const char *path)
Replace the active high-resolution texture map and select texture quality from video memory.
void LoadTrackTextureMap(int track)
Load a track's backend-specific high-resolution texture map.
u8 g_abTrackGeometryBuffer[TRACK_MAX_SIZE]
Storage for the loaded track geometry, with TRACK_MAX_SIZE bytes of capacity.
void CopyTextureAndPaletteFromSegment(ModelTexture *textures, int count)
Copy initial images and palettes for two-frame animated track textures into writable buffers.
void ComputeTrackMaxCellIndex(TrackHeader *track)
Replace the surface count with the maximum grid triangle index plus one, omitting entry zero.
void ByteSwapTrackAnimationTable(TrackHeader *track)
Swap special animation records, relocating and converting moving-object path coordinates.
void ByteSwapTrackSegment(TrackSection *section)
Swap route-section fields and points and relocate section links.
void ByteSwapTrackSegmentList(TrackHeader *track)
Relocate section-list entries and convert each route section in place.
void ByteSwapTrackInstances(TrackHeader *track)
Swap and relocate every loaded instance in a track.
void ByteSwapTrackInstance(TrackInstance *instance)
Swap instance fields and relocate the model pointer in place.
void ByteSwapTerrainVertex(TrackPoint *point)
Swap the coordinates and distance of one route point in place.
void ReadAndRelocateTrackHeader(TrackHeader *track, GameFile *file)
Read TRACK_HEADER_SIZE bytes, swap header fields, and relocate embedded track pointers.
void ByteSwapTrackData(TrackHeader *track)
Swap and relocate track payloads, prepare textures, and convert instance and route data.
void ByteSwapTrackVec3Array(TrackHeader *track)
Swap every track camera point's three coordinates in place.
unsigned char u8
Definition ultratypes.h:18