Пример #1
0
/* 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;
}
Пример #2
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;
}
Пример #3
0
INT CNotifierApp::Execute()
{
	GetAppWindow()->Create();

	return CApp::Execute();
}
Пример #4
0
void CNotifierApp::CancelRequest(CCurl * lpRequest)
{
	GetAppWindow()->CancelRequest(lpRequest);
}
Пример #5
0
void CNotifierApp::QueueRequest(CCurl * lpRequest)
{
	GetAppWindow()->QueueRequest(lpRequest);
}