/* fonction principale */ int main(int argc,char *argv[]) { Window window; Display *display; Visual *visual; XEvent event; XImage *ximage; GC gc; int process_fils; int depth,done; long event_mask; char buffer; /* creation de la fenetre de l'application */ CreateMainWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Pong"); /* recuperation des variables */ window=GetAppWindow(); display=GetAppDisplay(); /* affichage de la fenetre */ XMapWindow(display,window); while(TRUE) Pong(); return 0; }
//----------------------------------------------------------------------------- // PreInit, PostShutdown //----------------------------------------------------------------------------- bool CAVITestApp::PreInit( ) { if ( !BaseClass::PreInit() ) return false; if ( !g_pFullFileSystem || !g_pMaterialSystem || !g_pVGui || !g_pVGuiSurface || !g_pAVI || !g_pBIK ) return false; g_pAVI->SetMainWindow( GetAppWindow() ); return true; }
INT CNotifierApp::Execute() { GetAppWindow()->Create(); return CApp::Execute(); }
void CNotifierApp::CancelRequest(CCurl * lpRequest) { GetAppWindow()->CancelRequest(lpRequest); }
void CNotifierApp::QueueRequest(CCurl * lpRequest) { GetAppWindow()->QueueRequest(lpRequest); }