-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.h
63 lines (49 loc) · 1.3 KB
/
header.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
Àâòîð(ñ): Ñàííèêîâ, Êóëåáÿêèí, Ñòóïàê è Ïàðõîìåíêî
Íàçâàíèå êîìàíäû: AGRAGE
e-mail: [email protected]
*/
#if ! defined(_HEADER_VILLAGE_)
#define _HEADER_VILLAGE_
#if _MSC_VER > 1000
#pragma once
#endif
#ifdef DIRECTSOUND_VERSION
#if DIRECTSOUND_VERSION < 0x0800
#define DIRECTSOUND_VERSION 0x0700
#endif
#endif
#ifndef STRICT
#define STRICT
#endif
#ifndef GL_PI
#define GL_PI 3.1457893f
#endif
#define fRADIAN(degree) (degree * (GL_PI / 180.0f))
#define fDEGREE(radian) ((radian * 180.0f) / GL_PI)
#define fNUM(elapsed, per) (per / 1000.0f * elapsed)
#define fRAND(a, b) (a + ((GLfloat)rand() * (b - a) / RAND_MAX))
#define DELETE_HEAP(obj) { if(obj != NULL) { delete obj, obj = NULL; } }
#define DELETE_HEAP_ARRAY(arr) { if(arr != NULL) { delete[] arr, arr = NULL; } }
#ifndef ABS
#define ABS(a) ((a < 0) ? (-a) : a)
#endif
#include <tchar.h>
#include <windows.h>
#include <mmsystem.h>
#include <dsound.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <math.h>
#include <olectl.h>
#include <vector>
#include <list>
#include "resource.h"
#include "glscene.h"
#include "glmath.h"
#include "sound.h"
#include "globjects.h"
#include "glmodel.h"
#include "glaction.h"
#include "game.h"
#endif