enum fill_patterns {/* Fill patterns for get/setfillstyle */ EMPTY_FILL,/* fills area in background color */ SOLID_FILL,/* fills area in solid fill color */ LINE_FILL,/* --- fill */ LTSLASH_FILL,/* /// fill */ SLASH_FILL,/* /// fill with thick lines */ BKSLASH_FILL,/* \\\ fill with thick lines */ LTBKSLASH_FILL, /* \\\ fill */ HATCH_FILL,/* light hatch fill */ XHATCH_FILL,/* heavy cross hatch fill */ INTERLEAVE_FILL,/* interleaving line fill */ WIDE_DOT_FILL,/* Widely spaced dot fill */ CLOSE_DOT_FILL, /* Closely spaced dot fill */ USER_FILL/* user defined fill */ };
enum putimage_ops {/* BitBlt operators for putimage */ COPY_PUT,/* MOV */ XOR_PUT,/* XOR */ OR_PUT, /* OR */ AND_PUT,/* AND */ NOT_PUT /* NOT */ };
enum text_just {/* Horizontal and vertical justification for settextjustify */ LEFT_TEXT= 0, CENTER_TEXT= 1, RIGHT_TEXT= 2,
struct palettetype { unsigned char size; signed char colors[MAXCOLORS+1]; };
struct linesettingstype { int linestyle; unsigned upattern; int thickness; };
struct textsettingstype { int font; int direction; int charsize; int horiz; int vert; };
struct fillsettingstype { int pattern; int color; };
struct pointtype { int x, y; };
struct viewporttype { int left, top, right, bottom; int clip; };
struct arccoordstype { int x, y; int xstart, ystart, xend, yend; };
#ifdef __cplusplus extern "C" { #endif void far _Cdecl arc(int __x, int __y, int __stangle, int __endangle, int __radius); void far _Cdecl bar(int __left, int __top, int __right, int __bottom); void far _Cdecl bar3d(int __left, int __top, int __right, int __bottom, int __depth, int __topflag); void far _Cdecl circle(int __x, int __y, int __radius); void far _Cdecl cleardevice(void); void far _Cdecl clearviewport(void); void far _Cdecl closegraph(void); void far _Cdecl detectgraph(int far *__graphdriver,int far *__graphmode); void far _Cdecl drawpoly(int __numpoints, int far *__polypoints); void far _Cdecl ellipse(int __x, int __y, int __stangle, int __endangle, int __xradius, int __yradius); void far _Cdecl fillellipse( int __x, int __y, int __xradius, int __yradius ); void far _Cdecl fillpoly(int __numpoints, int far *__polypoints); void far _Cdecl floodfill(int __x, int __y, int __border); void far _Cdecl getarccoords(struct arccoordstype far *__arccoords); void far _Cdecl getaspectratio(int far *__xasp, int far *__yasp); int far _Cdecl getbkcolor(void); int far _Cdecl getcolor(void); struct palettetype far * far _Cdecl getdefaultpalette( void ); char * far _Cdecl getdrivername( void ); void far _Cdecl getfillpattern(char far *__pattern); void far _Cdecl getfillsettings(struct fillsettingstype far *__fillinfo); int far _Cdecl getgraphmode(void); void far _Cdecl getimage(int __left, int __top, int __right, int __bottom, void far *__bitmap); void far _Cdecl getlinesettings(struct linesettingstype far *__lineinfo); int far _Cdecl getmaxcolor(void); int far _Cdecl getmaxmode(void); int far _Cdecl getmaxx(void); int far _Cdecl getmaxy(void); char * far _Cdecl getmodename( int __mode_number ); void far _Cdecl getmoderange(int __graphdriver, int far *__lomode, int far *__himode); unsigned far _Cdecl getpixel(int __x, int __y); void far _Cdecl getpalette(struct palettetype far *__palette); int far _Cdecl getpalettesize( void ); void far _Cdecl gettextsettings(struct textsettingstype far *__texttypeinfo); void far _Cdecl getviewsettings(struct viewporttype far *__viewport); int far _Cdecl getx(void); int far _Cdecl gety(void); void far _Cdecl graphdefaults(void); char * far _Cdecl grapherrormsg(int __errorcode); void far _Cdecl _graphfreemem(void far *__ptr, unsigned __size); void far * far _Cdecl _graphgetmem(unsigned __size); int far _Cdecl graphresult(void); unsigned far _Cdecl imagesize(int __left, int __top, int __right, int __bottom); void far _Cdecl initgraph(int far *__graphdriver, int far *__graphmode, char far *__pathtodriver); int far _Cdecl installuserdriver( char far *__name, int huge (*detect)(void) ); int far _Cdecl installuserfont( char far *__name ); void far _Cdecl line(int __x1, int __y1, int __x2, int __y2); void far _Cdecl linerel(int __dx, int __dy); void far _Cdecl lineto(int __x, int __y); void far _Cdecl moverel(int __dx, int __dy); void far _Cdecl moveto(int __x, int __y); void far _Cdecl outtext(char far *__textstring); void far _Cdecl outtextxy(int __x, int __y, char far *__textstring); void far _Cdecl pieslice(int __x, int __y, int __stangle, int __endangle, int __radius); void far _Cdecl putimage(int __left, int __top, void far *__bitmap, int __op); void far _Cdecl putpixel(int __x, int __y, int __color); void far _Cdecl rectangle(int __left, int __top, int __right, int __bottom); void far _Cdecl restorecrtmode(void); void far _Cdecl sector( int __X, int __Y, int __StAngle, int __EndAngle, int __XRadius, int __YRadius ); void far _Cdecl setactivepage(int __page); void far _Cdecl setallpalette(struct palettetype far *__palette); void far _Cdecl setaspectratio( int __xasp, int __yasp ); void far _Cdecl setbkcolor(int __color); void far _Cdecl setcolor(int __color); void far _Cdecl setfillpattern(char far *__upattern, int __color); void far _Cdecl setfillstyle(int __pattern, int __color); unsigned far _Cdecl setgraphbufsize(unsigned __bufsize); void far _Cdecl setgraphmode(int __mode); void far _Cdecl setlinestyle(int __linestyle, unsigned __upattern, int __thickness); void far _Cdecl setpalette(int __colornum, int __color); void far _Cdecl setrgbpalette(int __colornum, int __red, int __green, int __blue); void far _Cdecl settextjustify(int __horiz, int __vert); void far _Cdecl settextstyle(int __font, int __direction, int __charsize); void far _Cdecl setusercharsize(int __multx, int __divx, int __multy, int __divy); void far _Cdecl setviewport(int __left, int __top, int __right, int __bottom, int __clip); void far _Cdecl setvisualpage(int __page); void far _Cdecl setwritemode( int __mode ); int far _Cdecl textheight(char far *__textstring); int far _Cdecl textwidth(char far *__textstring);
/***** graphics drivers *****/
int _Cdecl registerbgidriver(void (*driver)(void)); int far _Cdecl registerfarbgidriver(void far *__driver);
/* !! These "functions" are NOT user-callable !! */ /* !! They are there just so you can link in graphics drivers !! */
extern int far _Cdecl CGA_driver_far[]; extern int far _Cdecl EGAVGA_driver_far[]; extern int far _Cdecl IBM8514_driver_far[]; extern int far _Cdecl Herc_driver_far[]; extern int far _Cdecl ATT_driver_far[]; extern int far _Cdecl PC3270_driver_far[];
/***** graphics fonts *****/
int _Cdecl registerbgifont(void (*font)(void)); int far _Cdecl registerfarbgifont(void far *__font);
/* !!These "functions" are NOT user-callable, !! */ /* !! they are there just so you can link in fonts !! */
extern int far _Cdecltriplex_font_far[]; extern int far _Cdecl small_font_far[]; extern int far _Cdecl sansserif_font_far[]; extern int far _Cdecl gothic_font_far[];
* To unsubscribe from this group, send an email to: c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org [mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=Unsubscribe]
the problem is that graphics.h is part c console based library and now if you using microsoft Visual C++ compiler,it doesn't provide support for Graphics.h header file. in my opinion for running Garphics.h based project use Same old Turbo C++ compiler,may that can help you.
1. You may use BGI 2. You may use OpenGL - gl, glu, glut
"Brett W. McCoy" <idragosani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: On 4/25/06, Raman Gopalan <ramangopalan_phy-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: See attached message. <graphics.h> header file attached
graphics.h is useless without the libraries that it is for.
If you would like to report an abuse of our service, such as a spam message, please . Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .