home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
- struct palrec
- {
- unsigned char redval,greenval,blueval;
- };
-
- extern int graffontsize,vidmode;
- extern char m[25][100]; /* array 0-34 of string[100] for menus etc */
-
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- void refreshon(void);
- void refreshoff(void);
- void getgrafsize(void *p, int *x, int *y);
- void grafcopy(int x,int y,void *p,void *p2);
- void getgrafsize(void *p, int *x, int *y);
- void setallrgbpalette2(struct palrec *pal);
- /* sets 256 color palette using port addressing. faster than bios ? */
- void setrgbpalette2(int regnum,int red,int green,int blue);
- /* set 256 color palette register using bios. appears to be
- slightly faster than BC40's setrgbpalette() routine. */
- void setrgbpalette3(int regnum,int red,int green,int blue);
- /* sets 256 color palette register using port addressing.
- faster that bios ? */
-
- char getdrv(char *s, int fore, int fore2, int bak, int doclick);
- void wait4retrace(void);
- void fadeout(void); /* fades a 256 color palette to black */
- void fadein(struct palrec *pal); /* fades in a 256 color palette */
- void loadpal(char *s, struct palrec *pal); /* loads 256 color palette */
- void savepal(char *s, struct palrec *pal); /* saves 256 color palette */
- void setallrgbpalette(struct palrec *pal);
- /* sets 256 color palette using bios */
- int x2vidx(int x);
- int y2vidy(int y);
- int mousex2x(int x);
- int mousey2y(int y);
- void grafpie(int x, int y, int startangle, int endangle, int radius,
- int color, int fillstyle);
- void *grafload(char *s); /* loads a bitmap from disk */
- void grafsave(char *s,void *p); /* saves a bitmap to disk */
- void getallrgbpalette(struct palrec *pal); /* gets 256 color palette */
- void fillgraf(int x1,int y1,int x2,int y2,int color,int fill);
- void clsgraf(int color,int fill); /* clears screen */
- void grafon(void);
- void saygraf3d(int x, int y, int fore, int bak, int font, int size,
- int orientation, int hjust, int vjust, int xmul, int xdiv,
- int ymul, int ydiv,const char *s);
- void saygraf(int x, int y, int fore, int font, int size, int orientation,
- int hjust, int vjust, int xmul, int xdiv, int ymul, int ydiv,
- char *s);
- void *grafget(int x1,int y1,int x2,int y2);
- void grafline(int x1,int y1,int x2,int y2,int color,int style,int thickness);
- void grafpix(int x, int y, int color);
- void panel(int x1, int y1, int x2, int y2, int color, int pressed);
- void graftri(int x1,int y1,int x2,int y2,int x3,int y3,int color,int fill);
- void grafput(int x, int y, int put, void *p);
- void grafmsg(int x, int y, int i, int fore,int fore2, int bak, int doclick,
- int dopause, int doprint);
- void grafrect(int x1,int y1,int x2,int y2,int color,int style,int thickness);
- void clsstars(void);
- void select(int *x, int *y,int doclick);
- int popupmenu(int x,int y,int i,int fore,int fore2,int bak,int doclick);
- void getstr(char *promptstr,char *returnstr,int fore,int fore2,int bak);
- int getnum(char *promptstr,int fore,int fore2,int bak,int doclick);
- void setborder(int i);
- int getcol(char *s,int fore,int fore2,int bak,int doclick);
- int getfill(char *s,int fore,int fore2,int bak,int color,int doclick);
- void getarea(int x1,int y1,int *x2,int *y2);
- int getpix(int x,int y);
- void fillstars(int x1,int y1,int x2,int y2);
- void grafcircle(int x,int y,int rad,int color,int style,int thickness);
-
-
- #ifdef __cplusplus
- }
- #endif
-
-
-
-
-
-
-
-
-
-
-
-
-
-