Beispiel #1
0
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. */
}
Beispiel #2
0
/*  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;
}
Beispiel #3
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;
}