home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / source / devel5 / title.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-09  |  1.3 KB  |  56 lines

  1. #include <stdio.h>
  2. #include <dos.h>     /* delay() */
  3. #include <conio.h>
  4.  
  5. static char *title[] = {
  6.     "",
  7.     "                                   REND386",
  8.     "",
  9.     "                  V5.0, for use with Virtual Reality Creations",
  10.     "",
  11.     "           copyrighted (c) freeware, protected by the copyright laws",
  12.     "                      of Canada and the United States",
  13.     "",
  14.     "                        Written and (c) 1992,1993 by",
  15.     "                        Dave Stampe and Bernie Roehl",
  16.     "",
  17.     "             This program is free for non-commercial, non-profit,",
  18.     "              non-promotional use.  Any other use requires prior",
  19.     "                    written permission from the authors",
  20.     "",
  21.     "                  Note: a 386 or 486 PC and VGA card are",
  22.     "                      required to run this software.",
  23.     "",
  24.     "                           Version date: 5/9/93",
  25.     "",
  26.     "Loading files...",
  27.     "",
  28.     NULL
  29.     };
  30.  
  31. void title_screen()
  32. {
  33.     int i;
  34.     textattr((BLUE<<4)+WHITE);
  35.     directvideo = 0;
  36.     clrscr();
  37.  
  38.     for (i = 0; title[i]; ++i) {
  39.         cputs(title[i]);
  40.         cputs("\r\n");
  41.         }
  42.     directvideo = 1;
  43. }
  44.  
  45. void wait_for_title()
  46. {
  47.     int i;
  48.     cputs("\n\r Ready- Press a key to start.\n\r");
  49.     for (i = 0; i < 100; i++)
  50.     {
  51.         delay(100);
  52.         if (kbhit()) break;
  53.     }
  54.     if (kbhit()) getch();
  55. }
  56.