home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume38 / tessel / part01 / tmsmodes.h < prev    next >
C/C++ Source or Header  |  1993-06-20  |  3KB  |  60 lines

  1. /*+-----------------------------------------------------------------------+
  2.  *| This header file defines the data structure used to represent a       |
  3.  *| TMS34010 graphics mode.                                               |
  4.  *|                                                                       |
  5.  *| Author: Michael S. A. Robb         Version: 1.1        Date: 29/05/93 |
  6.  *+-----------------------------------------------------------------------+
  7.  */
  8.  
  9. /*+-----------------------------------------------------------------------+
  10.  *| The following data structure is used to store the register settings   |
  11.  *| which define the state of a TMS34010 graphics mode.                   |
  12.  *+-----------------------------------------------------------------------+
  13.  */
  14.  
  15. typedef struct tms34010_mode_st
  16.   {
  17.   char  tms_name[32];    /* Generic name for the video mode.         */
  18.  
  19.   WORD  tms_hesync;      /* Left-hand  edge of left border.          */
  20.   WORD  tms_heblnk;      /* Left-hand  edge of active display.       */
  21.   WORD  tms_hsblnk;      /* Right-hand edge of active display.       */
  22.   WORD  tms_htotal;      /* Right-hand edge of right border.         */
  23.  
  24.   WORD  tms_vesync;      /* Top        edge of top border.           */
  25.   WORD  tms_veblnk;      /* Top        edge of active display.       */
  26.   WORD  tms_vsblnk;      /* Bottom     edge of active display.       */
  27.   WORD  tms_vtotal;      /* Bottom     edge of bottom border.        */
  28.  
  29.   WORD  tms_dpyctl;      /* Used to control video timing.            */
  30.   WORD  tms_dpystrt;     /* Address of the first pixel displayed.    */
  31.   WORD  tms_dpytap;      /* Horizontal panning offset.               */
  32.  
  33.   WORD  tms_clockbase;   /* Clock frequency for horizontal timing.   */
  34.   WORD  tms_pixelsize;   /* Size of pixels.                          */
  35.   WORD  tms_videotiming; /* Interlaced mode / sync signals.          */
  36.   WORD  tms_ramdac;      /* Used to select pixel size/overlay mode.  */
  37.  
  38.   WORD  tms_xmax;        /* No. of pixels in horizontal axis.        */
  39.   WORD  tms_ymax;        /* No. of pixels in vertical   axis.        */
  40.   WORD  tms_psize;       /* No. of bits per pixel.                   */
  41.   WORD  tms_dpitch;      /* Display pitch of each scan line in bits. */
  42.   } TMS34010_MODE;
  43.  
  44. /*+-----------------------------------------------------------------------+
  45.  *| The following data structures define the various screen modes.        |
  46.  *+-----------------------------------------------------------------------+
  47.  */
  48.  
  49. extern WORD   colourxmax;
  50. extern WORD   colourymax;
  51.  
  52. extern WORD   screen_width;
  53. extern WORD   screen_height;
  54.  
  55. extern TMS34010_MODE mode512x512x32bit;
  56. extern TMS34010_MODE mode512x256x32bit;
  57. extern TMS34010_MODE mode512x480x32bit;
  58.  
  59.  
  60.