comparison dw.h @ 1528:5facb5380944

Added dw_main_quit() function for exiting the dw_main() loop. Also some cleanups added to dw_exit() on OS/2 and Windows. Changed OS/2 to no longer destroy the message queue when leaving dw_main()... it should be done in dw_exit().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 05 Jan 2012 15:45:11 +0000
parents 026c0b4d6ee9
children 2913bb58f439
comparison
equal deleted inserted replaced
1527:9bab702bd6c1 1528:5facb5380944
1454 #define dw_init(a, b, c) dw_int_init(&_resources, a, &b, &c) 1454 #define dw_init(a, b, c) dw_int_init(&_resources, a, &b, &c)
1455 #else 1455 #else
1456 int API dw_init(int newthread, int argc, char *argv[]); 1456 int API dw_init(int newthread, int argc, char *argv[]);
1457 #endif 1457 #endif
1458 void API dw_main(void); 1458 void API dw_main(void);
1459 void API dw_main_quit(void);
1459 void API dw_main_sleep(int seconds); 1460 void API dw_main_sleep(int seconds);
1460 void API dw_main_iteration(void); 1461 void API dw_main_iteration(void);
1461 void API dw_free(void *ptr); 1462 void API dw_free(void *ptr);
1462 int API dw_window_show(HWND handle); 1463 int API dw_window_show(HWND handle);
1463 int API dw_window_hide(HWND handle); 1464 int API dw_window_hide(HWND handle);