Mercurial > mm7
comparison mm7_data.h @ 871:710cf848ad24
Particle engine made working.
author | Nomad |
---|---|
date | Mon, 01 Apr 2013 13:39:19 +0200 |
parents | d061180f2b42 |
children | 10fa7dad1391 6daea87a3fe3 |
comparison
equal
deleted
inserted
replaced
838:d061180f2b42 | 871:710cf848ad24 |
---|---|
6 | 6 |
7 typedef char _UNKNOWN; | 7 typedef char _UNKNOWN; |
8 | 8 |
9 | 9 |
10 typedef unsigned int uint; | 10 typedef unsigned int uint; |
11 /* | |
12 #define LOWORD(a) (*((unsigned short *)&a)) | |
13 #define SLOWORD(a) (__debugbreak(), *((signed short *)&a)) | |
14 #define HIWORD(a) (*((unsigned short *)&a + 1)) | |
15 #define SHIWORD(a) (*((short *)&a + 1)) | |
16 | |
17 #define LODWORD(a) (*((unsigned int *)&a)) | |
18 #define HIDWORD(a) (*((unsigned int *)&a + 1)) | |
19 #define SLODWORD(a) (*((int *)&a)) | |
20 #define SHIDWORD(a) (*((int *)&a + 1)) | |
21 | |
22 #define LOBYTE(a) (*((unsigned char *)&a)) | |
23 #define SLOBYTE(a) (*((signed char *)&a)) | |
24 | |
25 #define HIBYTE(a) (*((unsigned char *)&a + sizeof(a) - 1)) | |
26 | |
27 #define BYTE1(a) (*((unsigned char *)&a + 1)) | |
28 #define SBYTE1(a) (*((signed char *)&a + 1)) | |
29 | |
30 #define BYTE2(a) (*((unsigned char *)&a + 2)) | |
31 #define BYTE3(a) (*((unsigned char *)&a + 3)) | |
32 | |
33 #define WORD2(a) (__debugbreak(), *(unsigned short *)((char *)&a + 4)) | |
34 | |
35 #define __OFSUB__(a, b) (unsigned __int8)((a) == (b)) | |
36 | |
37 | |
38 typedef unsigned __int16 _WORD; | |
39 typedef unsigned __int64 _QWORD; | |
40 */ | |
41 | |
42 | |
43 | 11 |
44 | 12 |
45 | 13 |
46 #define COERCE_UNSIGNED_INT64(a) (__debugbreak(), a) | 14 #define COERCE_UNSIGNED_INT64(a) (__debugbreak(), a) |
47 | 15 |
1747 void __cdecl ProcessInputActions(); | 1715 void __cdecl ProcessInputActions(); |
1748 void __cdecl GameUI_MsgProc(); | 1716 void __cdecl GameUI_MsgProc(); |
1749 void __cdecl back_to_game(); | 1717 void __cdecl back_to_game(); |
1750 void __cdecl GUI_MainMenuMessageProc(); | 1718 void __cdecl GUI_MainMenuMessageProc(); |
1751 double __cdecl get_shading_dist_mist(); | 1719 double __cdecl get_shading_dist_mist(); |
1752 double __cdecl GetPickDepth(); | |
1753 void Vec3_short__to_RenderVertexSoft(struct RenderVertexSoft *_this, struct Vec3_short_ *a2); | 1720 void Vec3_short__to_RenderVertexSoft(struct RenderVertexSoft *_this, struct Vec3_short_ *a2); |
1754 void __cdecl nullsub_4(); // idb | 1721 void __cdecl nullsub_4(); // idb |
1755 void __cdecl nullsub_5(); // idb | 1722 void __cdecl nullsub_5(); // idb |
1756 void __cdecl nullsub_6(); // idb | 1723 void __cdecl nullsub_6(); // idb |
1757 void __cdecl area_of_effect__damage_evaluate(); | 1724 void __cdecl area_of_effect__damage_evaluate(); |
2142 int /*__usercall*/ sr_sub_4D72EC/*<eax>*/(int a1/*<ebp>*/); | 2109 int /*__usercall*/ sr_sub_4D72EC/*<eax>*/(int a1/*<ebp>*/); |
2143 int /*__usercall*/ sr_sub_4D73DF/*<eax>*/(int a1/*<ebp>*/); | 2110 int /*__usercall*/ sr_sub_4D73DF/*<eax>*/(int a1/*<ebp>*/); |
2144 signed int __fastcall SpawnRandomTreasure(struct MapInfo *a1, struct SpawnPointMM7 *a2); | 2111 signed int __fastcall SpawnRandomTreasure(struct MapInfo *a1, struct SpawnPointMM7 *a2); |
2145 void DamageMonsterFromParty(signed int a1, unsigned int uActorID_Monster, struct Vec3_int_ *pVelocity); | 2112 void DamageMonsterFromParty(signed int a1, unsigned int uActorID_Monster, struct Vec3_int_ *pVelocity); |
2146 | 2113 |
2114 int fixpoint_sub0(int, int); | |
2115 int fixpoint_div(int, int); | |
2147 int fixpoint_mul(int, int); | 2116 int fixpoint_mul(int, int); |
2148 int fixpoint_div(int, int); | |
2149 | 2117 |
2150 | 2118 |
2151 #define ErrD3D(hr) do {extern void ErrHR(HRESULT, const char *, const char *, const char *, int); ErrHR(hr, "Direct3D", __FUNCTION__, __FILE__, __LINE__);} while(0) | 2119 #define ErrD3D(hr) do {extern void ErrHR(HRESULT, const char *, const char *, const char *, int); ErrHR(hr, "Direct3D", __FUNCTION__, __FILE__, __LINE__);} while(0) |
2152 | 2120 |
2153 | 2121 |