Beispiel #1
0
int main(int argc, char **argv) {

  Palette palette;
  palette.Shade16();
  Device dev(WinX, WinY, &palette);
  MainApp app(dev);

  return dev.MainLoop();
}
Beispiel #2
0
int PASCAL WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR cmdLine,
						  int nCmdShow )
#endif
{
   Main::hInstance = hInstance;
   Main::hPrevInstance = hPrevInstance;
   Main::nCmdShow = nCmdShow;

   if ( ! Main::hPrevInstance ) {
      MainWindow::Register();
      }

   Palette palette;
   palette.Shade16();
   Device *dev = NewDevice(WinX, WinY, &palette);
   MainApp app(*dev);

   return Main::MessageLoop(app);
}
Beispiel #3
0
int main()
#endif
{
#ifndef LINUX
#ifndef SDL
   SetCurrentDirectory("C:\\Mes documents\\Mes Programmes\\All Platform Projects\\Data");
   //SetCurrentDirectory("D:\\YOB\\Perso\\3d\\All Platform Projects\\Data");
   Main::hInstance = hInstance;
   Main::hPrevInstance = hPrevInstance;
   Main::nCmdShow = nCmdShow;

   if ( ! Main::hPrevInstance ) {
      MainWindow::Register();
      }
#endif
#endif

   Palette palette;
   palette.Shade16();
   Device * dev = NewDevice(WinX, WinY, &palette);
   MainApp app(*dev, palette);

   return app.Launch();
}