1 /* This is a small demo of the high-performance GUIX graphics framework. */ 2 3 #include <stdio.h> 4 #include "gx_api.h" 5 6 #include "guix_simple_resources.h" 7 #include "guix_simple_specifications.h" 8 9 GX_WINDOW *pHelloScreen; 10 11 GX_WINDOW_ROOT *root; 12 13 /* Define prototypes. */ 14 VOID start_guix(VOID); 15 extern UINT win32_graphics_driver_setup_24xrgb(GX_DISPLAY *display); 16 main(int argc,char ** argv)17int main(int argc, char ** argv) 18 { 19 tx_kernel_enter(); 20 return(0); 21 } 22 23 tx_application_define(void * first_unused_memory)24VOID tx_application_define(void *first_unused_memory) 25 { 26 start_guix(); 27 } 28 29 start_guix(VOID)30VOID start_guix(VOID) 31 { 32 /* Initialize GUIX. */ 33 gx_system_initialize(); 34 35 gx_studio_display_configure(MAIN_DISPLAY, win32_graphics_driver_setup_24xrgb, 36 LANGUAGE_ENGLISH, MAIN_DISPLAY_THEME_1, &root); 37 38 39 /* create the hello world screen */ 40 gx_studio_named_widget_create("simple_window", (GX_WIDGET *) root, (GX_WIDGET **) &pHelloScreen); 41 42 /* Show the root window to make it and patients screen visible. */ 43 gx_widget_show(root); 44 45 /* start GUIX thread */ 46 gx_system_start(); 47 } 48 49 50