Merge branch 'master' of [email protected]:acess2
[tpg/acess2.git] / Usermode / Applications / axwin2_src / WM / main.c
1 /*
2  * Acess GUI (AxWin) Version 2
3  * By John Hodge (thePowersGang)
4  */
5 #include "common.h"
6 #include <acess/sys.h>
7
8 // === IMPORTS ===
9 extern void     ParseCommandline(int argc, char *argv[]);
10 extern void     Video_Setup(void);
11 extern void     WM_Update(void);
12 extern void     Messages_PollIPC(void);
13 extern void     Interface_Init(void);
14
15 // === GLOBALS ===
16 char    *gsTerminalDevice = NULL;
17 char    *gsMouseDevice = NULL;
18
19  int    giScreenWidth = 640;
20  int    giScreenHeight = 480;
21 uint32_t        *gpScreenBuffer = NULL;
22
23  int    giTerminalFD = -1;
24  int    giMouseFD = -1;
25  
26
27 // === CODE ===
28 /**
29  * \brief Program Entrypoint
30  */
31 int main(int argc, char *argv[])
32 {
33         ParseCommandline(argc, argv);
34         
35         if( gsTerminalDevice == NULL ) {
36                 gsTerminalDevice = "/Devices/VTerm/6";
37         }
38         
39         Video_Setup();
40         Interface_Init();
41         
42         WM_Update();
43         
44         // Main Loop
45         for(;;)
46         {
47                 Messages_PollIPC();
48                 //yield();
49         }
50         return 0;
51 }

UCC git Repository :: git.ucc.asn.au