graphics.h源代码下载
/*graphics.h
DefinitionsforGraphicsPackage.
Copyright(c)BorlandInternational1987,1988
AllRightsReserved.
*/
#if__STDC__
#define_Cdecl
#else
#define_Cdeclcdecl
#endif
#if!defined(__GRAPHX_DEF_)
#define__GRAPHX_DEF_
enumgraphics_errors{
/*graphresulterrorreturncodes*/
grOk=0,
grNoInitGraph=-1,
grNotDetected=-2,
grFileNotFound=-3,
grInvalidDriver=-4,
grNoLoadMem=-5,
grNoScanMem=-6,
grNoFloodMem=-7,
grFontNotFound=-8,
grNoFontMem=-9,
grInvalidMode=-10,
grError=-11,/*genericerror*/
grIOerror=-12,
grInvalidFont=-13,
grInvalidFontNum=-14,
grInvalidVersion=-18
};
enumgraphics_drivers{
/*definegraphicsdrivers*/
DETECT,/*requestsautodetection*/
CGA,MCGA,EGA,EGA64,EGAMONO,IBM8514,/*1-6*/
HERCMONO,ATT400,VGA,PC3270,/*7-10*/
CURRENT_DRIVER=-1
};
enumgraphics_modes{
/*graphicsmodesforeachdriver*/
CGAC0=0,/*320x200palette0;1page*/
CGAC1=1,/*320x200palette1;1page*/
CGAC2=2,/*320x200palette2:1page*/
CGAC3=3,/*320x200palette3;1page*/
CGAHI=4,/*640x2001page*/
MCGAC0=0,/*320x200palette0;1page*/
MCGAC1=1,/*320x200palette1;1page*/
MCGAC2=2,/*320x200palette2;1page*/
MCGAC3=3,/*320x200palette3;1page*/
MCGAMED=4,/*640x2001page*/
MCGAHI=5,/*640x4801page*/
EGALO=0,/*640x20016color4pages*/
EGAHI=1,/*640x35016color2pages*/
EGA64LO=0,/*640x20016color1page*/
EGA64HI=1,/*640x3504color1page*/
EGAMONOHI=0,/*640x35064Koncard,1page-256Koncard,4pages*/
HERCMONOHI=0,/*720x3482pages*/
ATT400C0=0,/*320x200palette0;1page*/
ATT400C1=1,/*320x200palette1;1page*/
ATT400C2=2,/*320x200palette2;1page*/
ATT400C3=3,/*320x200palette3;1page*/
ATT400MED=4,/*640x2001page*/
ATT400HI=5,/*640x4001page*/
VGALO=0,/*640x20016color4pages*/
VGAMED=1,/*640x35016color2pages*/
VGAHI=2,/*640x48016color1page*/
PC3270HI=0,/*720x3501page*/
IBM8514LO=0,/*640x480256colors*/
IBM8514HI=1/*1024x768256colors*/
};
/*Colorsforsetpaletteandsetallpalette*/
#