1a68acb26adf0891ccc7fa29450c78d39b56380c
[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     Messages_PollIPC(void);
12
13 // === GLOBALS ===
14 char    *gsTerminalDevice = NULL;
15 char    *gsMouseDevice = NULL;
16
17  int    giScreenWidth = 640;
18  int    giScreenHeight = 480;
19 uint32_t        *gpScreenBuffer = NULL;
20
21  int    giTerminalFD = -1;
22  int    giMouseFD = -1;
23  
24
25 // === CODE ===
26 /**
27  * \brief Program Entrypoint
28  */
29 int main(int argc, char *argv[])
30 {
31         ParseCommandline(argc, argv);
32         
33         if( gsTerminalDevice == NULL ) {
34                 gsTerminalDevice = "/Devices/VTerm/7";
35         }
36         
37         Video_Setup();
38         Interface_Render();
39         
40         // Main Loop
41         for(;;)
42         {
43                 Messages_PollIPC();
44                 //yield();
45         }
46         return 0;
47 }

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