home *** CD-ROM | disk | FTP | other *** search
/ World of Graphics / WOGRAPH.BIN / 447.SVGA16.H < prev    next >
C/C++ Source or Header  |  1993-03-07  |  2KB  |  76 lines

  1. /****************************************************************************
  2. *
  3. *                             SuperVGA Test Kit
  4. *
  5. *                   Copyright (C) 1993 Kendall Bennett.
  6. *                            All rights reserved.
  7. *
  8. * Filename:        $RCSfile: svga16.h $
  9. * Version:        $Revision: 1.1 $
  10. *
  11. * Language:        ANSI C
  12. * Environment:    IBM PC (MS DOS)
  13. *
  14. * Description:    Header file for the small 16 color SuperVGA test library.
  15. *                This library provides a simplified interface to the
  16. *                SuperVGA routines in the test kit to be called from C.
  17. *
  18. *                NOTE: This library only works in the large model.
  19. *
  20. * $Id: svga16.h 1.1 1993/03/03 10:27:48 kjb Exp $
  21. *
  22. * Revision History:
  23. * -----------------
  24. *
  25. * $Log: svga16.h $
  26. * Revision 1.1  1993/03/03  10:27:48  kjb
  27. * Initial revision
  28. *
  29. ****************************************************************************/
  30.  
  31. #ifndef    __SVGA16_H
  32. #define    __SVGA16_H
  33.  
  34. #ifndef    __DRIVERS_H
  35. #include "drivers.h"
  36. #endif
  37.  
  38. /*--------------------------- Global Variables ----------------------------*/
  39.  
  40. extern    int        maxx,maxy;            /* Maximum coordinate values        */
  41. extern    int        maxpage;            /* Maximum video page number        */
  42. extern    int        bytesperline;        /* Bytes in a logical scanline        */
  43. extern    bool    twobanks;            /* True if separate banks available    */
  44. extern    bool    extendedflipping;    /* True if extended page flipping    */
  45. extern    bool    _VESAFirst;            /* Check for VESA SuperVGA's first    */
  46. extern    bool    _ignoreSVGA;        /* Ignore SuperVGA adapters            */
  47. extern    int        *modeList;            /* List of available video modes    */
  48.  
  49. /*------------------------- Function Prototypes ---------------------------*/
  50.  
  51. #ifdef    __cplusplus
  52. extern "C" {            /* Use "C" linkage when in C++ mode    */
  53. #endif
  54.  
  55. /* In svga16c.c */
  56.  
  57. void initSuperVGA(int *driver,int *chipID,int *memory,int *dac);
  58. bool setSuperVGAMode(int mode);
  59. void line(int x1,int y1,int x2,int y2,int color);
  60.  
  61. /* In svga16.asm */
  62.  
  63. void restoreMode(void);
  64. void putPixel(int x,int y,int color);
  65. void clear(void);
  66. void setActivePage(int page);
  67. void setVisualPage(int page);
  68. void setBank(int bank);
  69. void setReadBank(int bank);
  70.  
  71. #ifdef    __cplusplus
  72. }                        /* End of "C" linkage for C++    */
  73. #endif
  74.  
  75. #endif    /* __SVGA16_H */
  76.