コード例 #1
0
ファイル: main.c プロジェクト: neriki/old_c_exp
/* 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
ファイル: CNotifierApp.cpp プロジェクト: pvginkel/wave-notify
INT CNotifierApp::Execute()
{
	GetAppWindow()->Create();

	return CApp::Execute();
}
コード例 #4
0
ファイル: CNotifierApp.cpp プロジェクト: pvginkel/wave-notify
void CNotifierApp::CancelRequest(CCurl * lpRequest)
{
	GetAppWindow()->CancelRequest(lpRequest);
}
コード例 #5
0
ファイル: CNotifierApp.cpp プロジェクト: pvginkel/wave-notify
void CNotifierApp::QueueRequest(CCurl * lpRequest)
{
	GetAppWindow()->QueueRequest(lpRequest);
}