1#ifndef COASTLINE_TRACKSKIDMARKS_H
2#define COASTLINE_TRACKSKIDMARKS_H
12#define SKID_MARK_TRACK_COUNT 32
14#if TGR_PLATFORM == TGR_PLATFORM_SDL
24#define g_anSkidMarkHead (GetSdlSkidMarkState()->heads)
25#define g_anSkidMarkTail (GetSdlSkidMarkState()->tails)
48#if TGR_PLATFORM == TGR_PLATFORM_SDL
50#define SKID_MARK_SEGMENT_COUNT 500
74 unsigned long long revision,
75 const Vec3f *oldRight,
76 const Vec3f *newRight,
81 const unsigned char *mask,
Ring endpoints for each skid trail in one active engine runtime.
Definition trackskidmarks.h:16
int heads[SKID_MARK_TRACK_COUNT]
Definition trackskidmarks.h:17
int tails[SKID_MARK_TRACK_COUNT]
Definition trackskidmarks.h:18
A point or direction in space.
Definition vecmath.h:17
A vehicle.
Definition vehicle.h:143
void VisitSkidMarkQuads(void(*visit)(unsigned slot, unsigned long long revision, const Vec3f *oldRight, const Vec3f *newRight, const Vec3f *oldLeft, const Vec3f *newLeft, void *context), void *context, const unsigned char *mask, int *vertices)
Visit the quads of the skid marks in the order DrawTrackShadows() draws them, each the right and the ...
void RecordFrameSkidMarks(Vehicle *vehicles)
Lay the skid marks of the wheels of the vehicles of a drawn frame, as DrawTrackShadows() lays them wh...
SdlSkidMarkState * GetSdlSkidMarkState(void)
void DrawTrackShadows(Vehicle *vehicles)
Append vehicle shadows and skid trails to the deferred display list.
#define SKID_MARK_TRACK_COUNT
The number of entries of g_anSkidMarkHead and g_anSkidMarkTail.
Definition trackskidmarks.h:12
The vector and matrix arithmetic of the game, its arctangent and power, the triangle and segment test...