forked from fluffyfreak/stuntcarracer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Car.h
26 lines (19 loc) · 768 Bytes
/
Car.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _CAR
#define _CAR
/* ========= */
/* Constants */
/* ========= */
// VCAR is short for VISIBLE_CAR
#define VCAR_WIDTH 162 // ((width 27+27 * segment width 384) / surface factor 256) * PC_FACTOR
#define VCAR_LENGTH 256 // ((length 128 * segment length 256) / surface factor 256) * PC_FACTOR
#define VCAR_HEIGHT 162 // chosen to look ok with the above
/* ===================== */
/* Structure definitions */
/* ===================== */
/* ============================== */
/* External function declarations */
/* ============================== */
extern HRESULT CreateCarVertexBuffer (IDirect3DDevice9 *pd3dDevice);
extern void FreeCarVertexBuffer (void);
extern void DrawCar (IDirect3DDevice9 *pd3dDevice);
#endif /* _CAR */