home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
program
/
graphx11
/
graphics.hdr
< prev
next >
Wrap
Text File
|
1993-10-23
|
6KB
|
289 lines
Çê__GRAPHX_DEF_Ç__GRAPHX_DEF_î<vdi.h>î<aes.h>
ü
ƒcontrl[],
intin[],
ptsin[],
intout[],
ptsout[];
ü
ƒhandle;
ü
ƒwork_in[],
work_out[];
enum graphics_errors{
grOk=0,
grNoInitGraph=-1,
grNotDetected=-2,
grFileNotFound=-3,
grInvalidDriver=-4,
grNoLoadMem=-5,
grNoScanMem=-6,
grNoFloodMem=-7,
grFontNotFound=-8,
grNoFontMem=-9,
grInvalidMode=-10,
grError=-11,
grIOerror=-12,
grInvalidFont=-13,
grInvalidFontNum=-14,
grInvalidDeviceNum=-15,
grInvalidFontSize=-16,
grNotImplemented=-17,
grInvalidVersion=-18
};
enum graphics_drivers{
CURRENT_DRIVER=-1,
DETECT=0,
CGA,MCGA,EGA,EGA64,EGAMONO,IBM8514,
HERCMONO,ATT400,VGA,PC3270,
SC1224,SM124,
TTC1434,TTM194,
UNKNOWN_DRIVER
};
enum graphics_modes{
CGAC0=0,CGAC1,CGAC2,CGAC3,CGAHI,
MCGAC0=0,MCGAC1,MCGAC2,MCGAC3,MCGAMED,MCGAHI,
EGALO=0,EGAHI,
EGA64LO=0,EGA64HI,
EGAMONOHI=0,
IBM8514LO=0,IBM8514HI,
HERCMONOHI=0,
ATT400C0=0,ATT400C1,ATT400C2,ATT400C3,ATT400MED,ATT400HI,
VGALO=0,VGAMED,VGAHI,
PC3270HI=0,
SC1224LO=0,SC1224MED,
SM124HI=0,
TTC1434STLO=0,TTC1434STMED,TTC1434STHI,TTC1434LO,TTC1434MED,
TTM194HI=0,
UNKNOWN_MODE=0
};
#undef BLACK
#undef BLUE
#undef GREEN
#undef CYAN
#undef RED
#undef MAGENTA
#undef YELLOW
#undef WHITEê__COLORSÇ__COLORS
enum COLORS{
BLACK,
BLUE,
GREEN,
CYAN,
RED,
MAGENTA,
BROWN,
LIGHTGRAY,
DARKGRAY,
LIGHTBLUE,
LIGHTGREEN,
LIGHTCYAN,
LIGHTRED,
LIGHTMAGENTA,
YELLOW,
WHITE
};ç
enum CGA_COLORS{
CGA_LIGHTGREEN=1,
CGA_LIGHTRED=2,
CGA_YELLOW=3,
CGA_LIGHTCYAN=1,
CGA_LIGHTMAGENTA=2,
CGA_WHITE=3,
CGA_GREEN=1,
CGA_RED=2,
CGA_BROWN=3,
CGA_CYAN=1,
CGA_MAGENTA=2,
CGA_LIGHTGRAY=3
};
enum EGA_COLORS{
EGA_BLACK=0,
EGA_BLUE=1,
EGA_GREEN=2,
EGA_CYAN=3,
EGA_RED=4,
EGA_MAGENTA=5,
EGA_BROWN=BROWN,
EGA_LIGHTGRAY=7,
EGA_DARKGRAY=DARKGRAY,
EGA_LIGHTBLUE=LIGHTBLUE,
EGA_LIGHTGREEN=LIGHTGREEN,
EGA_LIGHTCYAN=LIGHTCYAN,
EGA_LIGHTRED=LIGHTRED,
EGA_LIGHTMAGENTA=LIGHTMAGENTA,
EGA_YELLOW=YELLOW,
EGA_WHITE=WHITE
};
enum line_styles{
SOLID_LINE=0,
DOTTED_LINE=1,
CENTER_LINE=2,
DASHED_LINE=3,
USERBIT_LINE=4
};
enum line_widths{
NORM_WIDTH=1,
THICK_WIDTH=3
};
enum font_names{
DEFAULT_FONT=0,
TRIPLEX_FONT=1,
SMALL_FONT=2,
SANS_SERIF_FONT=3,
GOTHIC_FONT=4
};ÇHORIZ_DIR 0ÇVERT_DIR 1ÇUSER_CHAR_SIZE 0
enum fill_patterns{
EMPTY_FILL,
SOLID_FILL,
LINE_FILL,
LTSLASH_FILL,
SLASH_FILL,
BKSLASH_FILL,
LTBKSLASH_FILL,
HATCH_FILL,
XHATCH_FILL,
INTERLEAVE_FILL,
WIDE_DOT_FILL,
CLOSE_DOT_FILL,
USER_FILL
};
enum putimage_ops{
COPY_PUT,
XOR_PUT,
OR_PUT,
AND_PUT,
NOT_PUT
};
enum text_just{
LEFT_TEXT=0,
CENTER_TEXT=1,
RIGHT_TEXT=2,
BOTTOM_TEXT=0,
TOP_TEXT=2
};ÇMAXCOLORS 15
âpalettetype{
Ääsize;
signedäcolors[MAXCOLORS+1];
};
âlinesettingstype{
élinestyle;
Äupattern;
éthickness;
};
âtextsettingstype{
éfont;
édirection;
écharsize;
éhoriz;
évert;
};
âfillsettingstype{
épattern;
écolor;
};
âpointtype{
éx,y;
};
âviewporttype{
éleft,top,right,bottom;
éclip;
};
âarccoordstype{
éx,y;
éxstart,ystart,xend,yend;
};
ïfar arc(éx,éy,éstangle,éendangle,
éradius);
ïfar bar(éleft,étop,éright,ébottom);
ïfar bar3d(éleft,étop,éright,ébottom,
édepth,étopflag);
ïfar circle(éx,éy,éradius);
ïfar cleardevice(ï);
ïfar clearviewport(ï);
ïfar closegraph(ï);
ïfar detectgraph(éfar*graphdriver,éfar*graphmode);
ïfar drawpoly(énumpoints,éfar*polypoints);
ïfar ellipse(éx,éy,éstangle,éendangle,
éxradius,éyradius);
ïfar fillellipse(éx,éy,éxradius,éyradius);
ïfar fillpoly(énumpoints,éfar*polypoints);
ïfar floodfill(éx,éy,éborder);
ïfar getarccoords(âarccoordstype far*arccoords);
ïfar getaspectratio(éfar*xasp,éfar*yasp);
éfar getbkcolor(ï);
éfar getcolor(ï);
âpalettetype*far getdefaultpalette(ï);
ä*far getdrivername(ï);
ïfar getfillpattern(äfar*pattern);
ïfar getfillsettings(âfillsettingstype far*fillinfo);
éfar getgraphmode(ï);
ïfar getimage(éleft,étop,éright,ébottom,
ïfar*bitmap);
ïfar getlinesettings(âlinesettingstype far*lineinfo);
éfar getmaxcolor(ï);
éfar getmaxmode(ï);
éfar getmaxx(ï);
éfar getmaxy(ï);
ä*far getmodename(émode_number);
ïfar getmoderange(égraphdriver,éfar*lomode,
éfar*himode);
ïfar getpalette(âpalettetype far*palette);
éfar getpalettesize(ï);
Äfar getpixel(éx,éy);
ïfar gettextsettings(âtextsettingstype far*texttypeinfo);
ïfar getviewsettings(âviewporttype far*viewport);
éfar getx(ï);
éfar gety(ï);
ïfar graphdefaults(ï);
ä*far grapherrormsg(éerrorcode);
éfar graphresult(ï);
Äfar imagesize(éleft,étop,éright,ébottom);
ïfar initgraph(éfar*graphdriver,éfar*graphmode,
äfar*pathtodriver);
ïfar line(éx1,éy1,éx2,éy2);
ïfar linerel(édx,édy);
ïfar lineto(éx,éy);
ïfar moverel(édx,édy);
ïfar moveto(éx,éy);
ïfar outtext(äfar*textstring);
ïfar outtextxy(éx,éy,äfar*textstring);
ïfar pieslice(éx,éy,éstangle,éendangle,
éradius);
ïfar putimage(éleft,étop,ïfar*bitmap,éop);
ïfar putpixel(éx,éy,écolor);
ïfar rectangle(éleft,étop,éright,ébottom);
ïfar restorecrtmode(ï);
ïfar sector(éx,éy,éstangle,éendangle,
éxradius,éyradius);
ïfar setactivepage(épage);
ïfar setallpalette(âpalettetype far*palette);
ïfar setbkcolor(écolor);
ïfar setcolor(écolor);
ïfar setfillpattern(äfar*upattern,écolor);
ïfar setfillstyle(épattern,écolor);
ïfar setgraphmode(émode);
ïfar setlinestyle(élinestyle,Äupattern,
éthickness);
ïfar setpalette(écolornum,écolor);
ïfar setrgbpalette(écolornum,
éred,égreen,éblue);
ïfar settextjustify(éhoriz,évert);
ïfar settextstyle(éfont,édirection,écharsize);
ïfar setviewport(éleft,étop,éright,ébottom,
éclip);
ïfar setvisualpage(épage);
ïfar setwritemode(émode);
éfar textheight(äfar*textstring);
éfar textwidth(äfar*textstring);
ïfar _graphfreemem(ïfar*ptr,Äsize);
ïfar*far _graphgetmem(Äsize);
éfar installuserdriver(äfar*name,éhuge(*detect)(ï));
éfar installuserfont(äfar*name);
éregisterbgidriver(ï(*driver)(ï));
éfar registerfarbgidriver(ïfar*driver);
éregisterbgifont(ï(*font)(ï));
éfar registerfarbgifont(ïfar*font);
ïfar setaspectratio(éxasp,éyasp);
Äfar setgraphbufsize(Äbufsize);
ïfar setusercharsize(émultx,édivx,émulty,édivy);ç