|
coastline 0.0.4
|
The snapshots of frames of the PC port. More...
#include "common/particlesnapshot.h"#include "common/racerslot.h"#include "common/snapshotops.h"#include "common/vehicle.h"

Go to the source code of this file.
Classes | |
| class | FrameSnapshot |
| Captured race geometry, cameras, and particles for interpolation between simulation steps. More... | |
Macros | |
| #define | g_abFrameSnapshotInUse (*GetSdlSnapshotUsage()) |
| Slot-use flags for the active SDL engine's snapshot pool. | |
Enumerations | |
| enum | { FRAME_SNAPSHOT_COUNT = 5 } |
| The capacity of the rotating race snapshot pool. More... | |
Functions | |
| int(* | GetSdlSnapshotUsage (void))[FRAME_SNAPSHOT_COUNT] |
| void | InitFrameSnapshotSlots (void) |
| Initialise slot flags, sequence counters, and interpolation timers once per valid pool. | |
| int | AcquireNextFrameSnapshotSlot (void) |
| Select the oldest unused slot, advancing the current and previous completed slot selectors. | |
| FrameSnapshot * | InterpolateFrameSnapshots (float share) |
| Blend the last two snapshots of the race into g_InterpolatedFrameSnapshot as InterpolateFrameSnapshotsAndRender() blends them, without drawing, for the SDL game to draw. | |
| void | InvalidateFrameSnapshotSlots (void) |
| Mark the snapshots of frames as not set up. | |
| int | GetInterpolatedFrameCount (void) |
| Get the number of frames rendered from interpolated snapshots since the slots were set up. | |
Variables | |
| FrameSnapshot | g_aFrameSnapshots [FRAME_SNAPSHOT_COUNT] |
| The rotating snapshot pool, indexed by the current, previous, and blend slot selectors. | |
| FrameSnapshot | g_InterpolatedFrameSnapshot |
| Temporary output of interpolation between two captured race frames. | |
| int | g_dwFrameSnapshotBlendFromSlot |
| The earlier snapshot selected for the current blend, or -1 before selection. | |
| int | g_nLastInterpolatedSnapshot |
| The later snapshot slot selected for interpolation, or -1 before selection. | |
| int | g_dwFrameSnapshotCurrentSlot |
| The most recent completed snapshot slot, or -1 before the first capture. | |
| int | g_dwFrameSnapshotPreviousSlot |
| The completed snapshot slot preceding the current slot, or -1 before two captures. | |
| float | g_fFrameSnapshotBlendCarry |
| Fractional interpolation progress retained from the previous rendered frame. | |
| unsigned | g_dwFrameSnapshotBlendStartTime |
| The millisecond timer value of the previous interpolation update, or zero before the first. | |
| int | g_bFrameSnapshotsInitialized |
| Whether the snapshots of frames are set up. | |
| int | g_dwInterpolatedFrameCount |
| The number of frames rendered from interpolated snapshots since the slots were set up. | |
The snapshots of frames of the PC port.
| #define g_abFrameSnapshotInUse (*GetSdlSnapshotUsage()) |
Slot-use flags for the active SDL engine's snapshot pool.
| anonymous enum |
| int(* GetSdlSnapshotUsage | ( | void | ) | )[FRAME_SNAPSHOT_COUNT] |
| void InitFrameSnapshotSlots | ( | void | ) |
Initialise slot flags, sequence counters, and interpolation timers once per valid pool.
| int AcquireNextFrameSnapshotSlot | ( | void | ) |
Select the oldest unused slot, advancing the current and previous completed slot selectors.
At least one unused slot other than the current write slot must be available.
| FrameSnapshot * InterpolateFrameSnapshots | ( | float | share | ) |
Blend the last two snapshots of the race into g_InterpolatedFrameSnapshot as InterpolateFrameSnapshotsAndRender() blends them, without drawing, for the SDL game to draw.
| share | How far the frame is from the previous snapshot to the current one, from 0 to 1. |
| void InvalidateFrameSnapshotSlots | ( | void | ) |
Mark the snapshots of frames as not set up.
| int GetInterpolatedFrameCount | ( | void | ) |
Get the number of frames rendered from interpolated snapshots since the slots were set up.
|
extern |
The rotating snapshot pool, indexed by the current, previous, and blend slot selectors.
|
extern |
Temporary output of interpolation between two captured race frames.
|
extern |
The earlier snapshot selected for the current blend, or -1 before selection.
|
extern |
The later snapshot slot selected for interpolation, or -1 before selection.
|
extern |
The most recent completed snapshot slot, or -1 before the first capture.
|
extern |
The completed snapshot slot preceding the current slot, or -1 before two captures.
|
extern |
Fractional interpolation progress retained from the previous rendered frame.
|
extern |
The millisecond timer value of the previous interpolation update, or zero before the first.
|
extern |
Whether the snapshots of frames are set up.
|
extern |
The number of frames rendered from interpolated snapshots since the slots were set up.