Amulets & Armor  v1.02
Open Source Game
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
3D_VIEW.H
Go to the documentation of this file.
1 /****************************************************************************/
2 /* FILE: 3D_VIEW.H */
3 /****************************************************************************/
4 
5 #ifndef _3D_VIEW_H_
6 #define _3D_VIEW_H_
7 
8 #include "GENERAL.H"
9 #include "VIEWFILE.H"
10 
11 /*
12 #define VIEW3D_WIDTH 300
13 #define VIEW3D_HEIGHT 140
14 #define VIEW3D_HALF_WIDTH (VIEW3D_WIDTH/2)
15 #define VIEW3D_HALF_HEIGHT (VIEW3D_HEIGHT/2)
16 */
17 #define MAX_VIEW3D_WIDTH 320
18 #define MAX_VIEW3D_HEIGHT 200
19 
20 #define VIEW3D_PASSABLE_BIT 0x1000
21 
22 extern T_sword16 VIEW3D_WIDTH ;
23 extern T_sword16 VIEW3D_HEIGHT ;
28 
29 extern T_byte8 P_shadeIndex[16384] ;
30 
32 
34  T_sword16 x,
35  T_sword16 y,
36  T_sword32 height,
37  T_word16 angle) ;
38 
40  T_sword16 *p_x,
41  T_sword16 *p_y,
42  T_sword32 *p_height,
43  T_word16 *p_angle) ;
44 
46 
48 
50  T_sword32 x1,
51  T_sword32 y1,
52  T_sword32 x2,
53  T_sword32 y2) ;
54 
56  T_sword16 x1,
57  T_sword16 y1,
58  T_sword16 x2,
59  T_sword16 y2) ;
60 
61 #define View3dFindSectorNum(x, y) IFindSectorNum(x, y)
62 
64 
65 T_void View3dSetSize(T_word16 width, T_word16 height) ;
66 
67 T_void View3dClipCenter(T_word16 centerWidth) ;
68 
70 
72 
74 
76  T_word16 objPos,
77  T_3dObject **p_obj,
78  T_word16 column) ;
79 
81  T_word16 objPos,
82  T_3dObject **p_obj,
83  T_word16 x,
84  T_word16 y) ;
85 
87 
89 
91 
93 
95 
96 #define View3dGetSectorEnterSound(sector) \
97  (G_3dSectorInfoArray[sector].enterSound)
98 
99 #define View3dGetSectorEnterSoundRadius(sector) \
100  (G_3dSectorInfoArray[sector].enterSoundRadius)
101 
102 #define LINE_IS_IMPASSIBLE 0x0001
103 #define LINE_IS_CREATURE_IMPASSIBLE 0x0002
104 #define LINE_IS_TWO_SIDED 0x0004
105 #define LINE_IS_TRANSLUCENT 0x0020
106 #define LINE_IS_ALWAYS_SOLID 0x0040
107 #define LINE_IS_INVISIBLE 0x0080
108 #define LINE_IS_AUTOMAPPED 0x0100
109 #define LINE_HAS_BEEN_SEEN 0x8000
110 
112 
113 #ifdef COMPILE_OPTION_ALLOW_SHIFT_TEXTURES
114 T_void View3dTellMouseAt(T_sword16 x, T_sword16 y) ;
115 
116 T_word16 View3dGetTextureSideNum(T_void) ;
117 #endif
118 
120 
122 
124 
126 
128 
130 
132 
133 
134 #endif
135 
136 /****************************************************************************/
137 /* END OF FILE: 3D_VIEW.H */
138 /****************************************************************************/