Category : C Source Code
Archive   : SVGAKT31.ZIP
Filename : SVGA256.H

 
Output of file : SVGA256.H contained in archive : SVGAKT31.ZIP
/****************************************************************************
*
* SuperVGA Test Kit
*
* Copyright (C) 1993 Kendall Bennett.
* All rights reserved.
*
* Filename: $RCSfile: svga256.h $
* Version: $Revision: 1.1 $
*
* Language: ANSI C
* Environment: IBM PC (MS DOS)
*
* Description: Header file for the small 256 color SuperVGA test library.
* This library provides a simplified interface to the
* SuperVGA routines in the test kit to be called from C.
*
* NOTE: This library only works in the large model.
*
* $Id: svga256.h 1.1 1993/03/03 10:27:59 kjb Exp $
*
* Revision History:
* -----------------
*
* $Log: svga256.h $
* Revision 1.1 1993/03/03 10:27:59 kjb
* Initial revision
*
****************************************************************************/

#ifndef __SVGA256_H
#define __SVGA256_H

#ifndef __DRIVERS_H
#include "drivers.h"
#endif

/*--------------------------- Global Variables ----------------------------*/

extern int maxx,maxy; /* Maximum coordinate values */
extern int maxpage; /* Maximum video page number */
extern int bytesperline; /* Bytes in a logical scanline */
extern bool twobanks; /* True if separate banks available */
extern bool extendedflipping; /* True if extended page flipping */
extern bool _VESAFirst; /* Check for VESA SuperVGA's first */
extern bool _ignoreSVGA; /* Ignore SuperVGA adapters */
extern int *modeList; /* List of available video modes */

/*------------------------- Function Prototypes ---------------------------*/

#ifdef __cplusplus
extern "C" { /* Use "C" linkage when in C++ mode */
#endif

/* In svga256c.c */

void initSuperVGA(int *driver,int *chipID,int *memory,int *dac);
bool setSuperVGAMode(int mode);
void line(int x1,int y1,int x2,int y2,int color);

/* In svga256.asm */

void restoreMode(void);
void putPixel(int x,int y,int color);
void clear(void);
void setActivePage(int page);
void setVisualPage(int page);
void setBank(int bank);
void setReadBank(int bank);

#ifdef __cplusplus
} /* End of "C" linkage for C++ */
#endif

#endif /* __SVGA256_H */


  3 Responses to “Category : C Source Code
Archive   : SVGAKT31.ZIP
Filename : SVGA256.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/