Amulets & Armor
v1.02
Open Source Game
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Include
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
;
24
extern
T_sword16
VIEW3D_HALF_WIDTH
;
25
extern
T_sword16
VIEW3D_HALF_HEIGHT
;
26
extern
T_sword16
VIEW3D_CLIP_LEFT
;
27
extern
T_sword16
VIEW3D_CLIP_RIGHT
;
28
29
extern
T_byte8
P_shadeIndex
[16384] ;
30
31
T_void
View3dInitialize
(
T_void
) ;
32
33
T_void
View3dSetView
(
34
T_sword16
x,
35
T_sword16
y,
36
T_sword32
height,
37
T_word16
angle) ;
38
39
T_void
View3dGetView
(
40
T_sword16
*p_x,
41
T_sword16
*p_y,
42
T_sword32
*p_height,
43
T_word16
*p_angle) ;
44
45
T_void
View3dDrawView
(
T_void
) ;
46
47
T_void
View3dDisplayView
(
T_void
) ;
48
49
T_word16
CalculateDistance
(
50
T_sword32
x1,
51
T_sword32
y1,
52
T_sword32
x2,
53
T_sword32
y2) ;
54
55
T_word16
CalculateEstimateDistance
(
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
63
T_word16
IFindSectorNum
(
T_sword16
x,
T_sword16
y) ;
64
65
T_void
View3dSetSize
(
T_word16
width,
T_word16
height) ;
66
67
T_void
View3dClipCenter
(
T_word16
centerWidth) ;
68
69
T_3dObject
*
View3dAllocateObject
(
T_void
) ;
70
71
T_void
View3dFreeObject
(
T_3dObject
*p_obj) ;
72
73
T_void
View3dSetHeight
(
T_sword32
height) ;
74
75
T_word16
View3dGetObjectAtColumn
(
76
T_word16
objPos,
77
T_3dObject
**p_obj,
78
T_word16
column) ;
79
80
T_word16
View3dGetObjectAtXY
(
81
T_word16
objPos,
82
T_3dObject
**p_obj,
83
T_word16
x,
84
T_word16
y) ;
85
86
T_sword32
View3dGetUpDownAngle
(
T_void
) ;
87
88
T_void
View3dSetUpDownAngle
(
T_sword32
alpha) ;
89
90
T_void
View3dAddObject
(
T_3dObject
*p_obj) ;
91
92
T_void
View3dRemoveObject
(
T_3dObject
*p_obj) ;
93
94
T_void
View3dUpdateSectorLightAnimation
(
T_void
) ;
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
111
T_word16
View3dFindClosestLine
(
T_sword16
x,
T_sword16
y) ;
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
119
T_word16
View3dGetSectorSide
(
T_word16
lineNum,
T_sword16
x,
T_sword16
y) ;
120
121
T_word16
View3dFindSide
(
T_sword16
x,
T_sword16
y) ;
122
123
T_void
View3dCheckObjectListEmpty
(
T_void
) ;
124
125
T_void
View3dFinish
(
T_void
);
126
127
T_void
View3dSetDarknessAdjustment
(
T_sbyte8
darkAdjust);
128
129
T_void
View3dRemapSectors
(
T_void
);
130
131
T_void
View3dUnmapSectors
(
T_void
);
132
133
134
#endif
135
136
/****************************************************************************/
137
/* END OF FILE: 3D_VIEW.H */
138
/****************************************************************************/
Generated on Sun Aug 4 2013 15:35:47 for Amulets & Armor by
1.8.4