coastline 0.0.4
Loading...
Searching...
No Matches
qualityoflife.h
Go to the documentation of this file.
1#ifndef COASTLINE_QUALITYOFLIFE_H
2#define COASTLINE_QUALITYOFLIFE_H
3
8
9#include <stdbool.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
25bool IsSecondPressWithin(unsigned *pLastPress, unsigned now, unsigned window);
26
38float GetHorPlusFovY(float fov, float width, float height);
39
52void GetHudCanvasSize(int width, int height, int *pCanvasWidth, int *pCanvasHeight);
53
63int ParseTestScene(const char *pszValue);
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif /* COASTLINE_QUALITYOFLIFE_H */
int ParseTestScene(const char *pszValue)
Return the mode of play of the value of scene= on the command line.
void GetHudCanvasSize(int width, int height, int *pCanvasWidth, int *pCanvasHeight)
Return the size of the canvas the HUD of a race is laid out on.
bool IsSecondPressWithin(unsigned *pLastPress, unsigned now, unsigned window)
Record a press and report whether it follows an earlier press within a window.
float GetHorPlusFovY(float fov, float width, float height)
Return the vertical field of view of a camera for the shape of its viewport.