FTK_HIDE int FTK_MAIN(int argc, char* argv[]) { UGCtx ug = ugInit(); UGWindow uwin = ugCreateWindow (ug, "", "hello", 250, 250, 100, 100); init(); ugDisplayFunc(uwin, display); #ifndef FTK_AS_PLUGIN ugMainLoop(ug); #endif return 0; /* ANSI C requires main to return int. */ }
/* Main Loop * Open window with initial window size, title bar, * RGBA display mode, and handle input events. */ int main(int argc, char** argv) { UGCtx ug = ugInit(); UGWindow uwin = ugCreateWindow (ug, "", argv[0], 200, 200, 100, 100); init (); ugDisplayFunc(uwin, display); ugReshapeFunc(uwin, reshape); ugKeyboardFunc(uwin, keyboard); ugMainLoop(ug); return 0; }
FTK_HIDE int FTK_MAIN(int argc, char* argv[]) { UGCtx ug = ugInit(); UGWindow uwin = ugCreateWindow (ug, "UG_DEPTH", "fog", 500, 500, 100, 100); init(); ugDisplayFunc(uwin, display); ugReshapeFunc(uwin, reshape); ugKeyboardFunc(uwin, keyboard); #ifndef FTK_AS_PLUGIN ugMainLoop(ug); #endif return 0; }