-
Notifications
You must be signed in to change notification settings - Fork 2
/
globals.h
executable file
·109 lines (89 loc) · 1.94 KB
/
globals.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*
** Globals header
*/
#ifndef __GLOBALS_H__
#define __GLOBALS_H__
/*
** Function Prototypes
*/
void OpenLibs( void );
void CleanExit(CONST_STRPTR);
void Events( void );
void AppRegistering( void );
void CreateGrid(struct Screen *);
ULONG DrawGrid( void );
uint32 LockScreens(void);
void handleDBufMessage( struct Message * );
void SetDestinationOutside(struct Screen *);
void SetDestinationInside(void);
void Displacement( void );
BOOL controlIDCMP(VOID);
/*
** Library/Interface
*/
struct Library *IntuitionBase;
struct Library *IconBase;
struct Library *ApplicationBase;
struct Library *GraphicsBase;
struct Library *LocaleBase;
struct Library *P96Base;
struct Library *UtilityBase;
struct IntuitionIFace *IIntuition;
struct IconIFace *IIcon;
struct ApplicationIFace *IApplication;
struct PrefsObjectsIFace *IPrefsObjects;
struct ApplicationIFace *IApplication;
struct GraphicsIFace *IGraphics;
struct LocaleIFace *ILocale;
struct UtilityIFace *IUtility;
struct P96IFace *IP96;
struct Screen *scr;
struct Window *win;
struct MsgPort *winPort,
*buffPort;
struct RastPort rport[ 2 ];
struct ScreenBuffer *scbuf[2];
#define OK_REDRAW 1 /* Buffer fully detached, ready for redraw */
#define OK_SWAPIN 2 /* Buffer redrawn, ready for swap-in */
struct vertex
{
float32 x,y,z; // coordenadas 3D
}camera, destination,difference,mouse,focus,oldcamera,areazoom;
struct Vert
{
float32 x,
y,
s,
t,
w;
}vertices[4];
struct pantallas
{
struct vertex st;
struct vertex nd;
struct vertex rd;
struct vertex th;
struct Screen *scr;
}pantalla;
ULONG selected;
ULONG ID;
ULONG status[2];
ULONG buf_current,
buf_nextdraw,
buf_nextswap;
ULONG steps;
BOOL Clicked,Middle,Progress;
ULONG AppID;
LONG inc,delay;
struct DateStamp now,then;
struct Screen Resolution;
struct BitMap *lens;
PLANEPTR lensalpha;
struct DiskObject *doicon;
int ow,oh;
float32 differx,differy;
BOOL Filter;
float32 zoom;
LONG zwheel;
BOOL LensFlag;
#endif