home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Graphics
/
WOGRAPH.BIN
/
450.SVGA256.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-07
|
2KB
|
76 lines
/****************************************************************************
*
* 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 */