-
Notifications
You must be signed in to change notification settings - Fork 11
/
Car.h
executable file
·36 lines (25 loc) · 997 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
27
28
29
30
31
32
33
34
35
36
#ifndef _CAR
#define _CAR
#ifdef linux
#include "dx_linux.h"
#endif
/* ========= */
/* 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);
extern HRESULT CreateCockpitVertexBuffer (IDirect3DDevice9 *pd3dDevice);
extern void FreeCockpitVertexBuffer (void);
extern void DrawCockpit (IDirect3DDevice9 *pd3dDevice);
#endif /* _CAR */