coastline 0.0.4
Loading...
Searching...
No Matches
timing.h
Go to the documentation of this file.
1#ifndef COASTLINE_TIMING_H
2#define COASTLINE_TIMING_H
3
8
9#include "common/types.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
16#define TIMING_BARS 3
17
19#define TIMING_MARKERS 256
20
22typedef struct {
26
38
50
61extern s32 g_dwTimingFrame;
62
74
75#if !TGR_BOSS_RALLY
87#endif /* !TGR_BOSS_RALLY */
88
98
108
118
128
145void AddTimingMarker(s32 bar, s32 red, s32 green, s32 blue, s32 alpha);
146
158
167void DrawTimingBars(void);
168
178
190
202
203#ifdef __cplusplus
204}
205#endif
206
207#endif /* COASTLINE_TIMING_H */
The end of a part of a frame, and the colour of the part after it.
Definition timing.h:22
u32 time
Definition timing.h:24
u32 color
Definition timing.h:23
void SaveClockForPause(void)
Keep the random seed and the clock of the frames while the race is paused.
s32 g_dwHudDebugLevel
How much the debugging displays show.
void BeginTimingFrame(void)
End the frame of the meter with a magenta part on each bar, and start the next.
u64 g_dwTimingFrameElapsed
The full timer count at the start of the frame.
void AddTimingMarker(s32 bar, s32 red, s32 green, s32 blue, s32 alpha)
Mark the time since the start of the frame on a bar, and colour the part that follows with 8-bit comp...
s32 g_dwTimingBarScaleHold
The frames the scale keeps before it may shrink.
u32 g_dwTimingBarsRenderMode0
The render mode the meter leaves set, in two halves.
s32 g_dwTimingFrame
The frame the markers go to.
u32 g_dwTimingFrameStart
The low word of the timer count at the start of the frame.
#define TIMING_BARS
The bars of the meter.
Definition timing.h:16
u32 g_dwTimingBarsRenderMode1
The second half of the render mode the timing meter leaves set.
TimingMarker g_aTimingMarkers[2][TIMING_BARS][TIMING_MARKERS]
The markers of the two frames.
void RestoreClockAfterPause(void)
Give the random seed and the clock of the frames back once the pause ends.
#define TIMING_MARKERS
The markers a bar holds in a frame.
Definition timing.h:19
u32 g_dwTimingBarScale
The timer count the full length of the bars stands for.
void DrawTimingBars(void)
Draw the bars of the last frame, with a tick for each sixtieth of a second.
s32 g_aTimingMarkerCounts[2][TIMING_BARS]
The number of timing markers on each bar of each frame.
The integer and floating-point types of the console, for headers shared with Windows.
unsigned int u32
Definition ultratypes.h:20
int s32
Definition ultratypes.h:25
unsigned long long u64
Definition ultratypes.h:21