wx_BGI_Graphics
Classic BGI-compatible graphics API with modern OpenGL extension API
Loading...
Searching...
No Matches
Classic BGI API

Borland-style graphics compatibility entry points. More...

Functions

BGI_API void BGI_CALL arc (int x, int y, int stangle, int endangle, int radius, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws a circular arc.
BGI_API void BGI_CALL bar (int left, int top, int right, int bottom, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws a filled rectangle using the active fill style/color.
BGI_API void BGI_CALL bar3d (int left, int top, int right, int bottom, int depth, int topflag, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws a pseudo-3D filled rectangle.
BGI_API void BGI_CALL circle (int x, int y, int radius, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws a circle outline.
BGI_API void BGI_CALL cleardevice (void)
 Clears the full active drawing page to background color.
BGI_API void BGI_CALL clearviewport (void)
 Clears only the active viewport region to background color.
BGI_API void BGI_CALL closegraph (void)
 Closes graphics window/context and releases associated resources.
BGI_API void BGI_CALL delay (int millisec)
 Sleeps for the requested duration in milliseconds.
BGI_API void BGI_CALL detectgraph (int *graphdriver, int *graphmode)
 Detects/initializes default graph driver and mode values.
BGI_API void BGI_CALL drawpoly (int numpoints, const int *polypoints, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws a polygon outline from an array of x/y point pairs.
BGI_API void BGI_CALL ellipse (int x, int y, int stangle, int endangle, int xradius, int yradius, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws an elliptical arc between start and end angles.
BGI_API void BGI_CALL fillellipse (int x, int y, int xradius, int yradius, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws and fills an ellipse using current fill settings.
BGI_API void BGI_CALL fillpoly (int numpoints, const int *polypoints, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Fills a polygon interior from an array of x/y point pairs.
BGI_API void BGI_CALL floodfill (int x, int y, int border)
 Flood-fills a region until the border color is reached.
BGI_API int BGI_CALL getactivepage (void)
 Returns the currently selected active page index.
BGI_API void BGI_CALL getarccoords (bgi::arccoordstype *arccoords)
 Retrieves cached arc endpoint coordinates from the last arc-like call.
BGI_API void BGI_CALL getaspectratio (int *xasp, int *yasp)
 Returns current aspect ratio numerators for x/y scaling.
BGI_API int BGI_CALL getbkcolor (void)
 Returns the current background color index.
BGI_API int BGI_CALL getcolor (void)
 Returns the current drawing color index.
BGI_API bgi::palettetype *BGI_CALL getdefaultpalette (void)
 Returns a pointer to the default palette mapping.
BGI_API char *BGI_CALL getdrivername (void)
 Returns the active graphics driver name string.
BGI_API void BGI_CALL getfillpattern (char *pattern)
 Copies the current 8x8 fill pattern mask into pattern.
BGI_API void BGI_CALL getfillsettings (bgi::fillsettingstype *fillinfo)
 Retrieves current fill pattern id and fill color.
BGI_API int BGI_CALL getgraphmode (void)
 Returns the current graph mode id.
BGI_API void BGI_CALL getimage (int left, int top, int right, int bottom, void *bitmap)
 Captures a rectangular image into a BGI image buffer.
BGI_API void BGI_CALL getlinesettings (bgi::linesettingstype *lineinfo)
 Retrieves current line style, user pattern, and thickness.
BGI_API int BGI_CALL getmaxcolor (void)
 Returns the highest valid palette color index.
BGI_API int BGI_CALL getmaxheight (void)
 Returns the maximum window height supported by current mode.
BGI_API int BGI_CALL getmaxmode (void)
 Returns the highest valid graphics mode identifier.
BGI_API int BGI_CALL getmaxwidth (void)
 Returns the maximum window width supported by current mode.
BGI_API int BGI_CALL getmaxx (void)
 Returns the maximum x coordinate in the current viewport.
BGI_API int BGI_CALL getmaxy (void)
 Returns the maximum y coordinate in the current viewport.
BGI_API char *BGI_CALL getmodename (int mode_number)
 Returns a human-readable mode name for mode_number.
BGI_API void BGI_CALL getmoderange (int graphdriver, int *lomode, int *himode)
 Returns the valid mode range for a given driver.
BGI_API void BGI_CALL getpalette (bgi::palettetype *palette)
 Retrieves the currently active palette mapping.
BGI_API int BGI_CALL getpalettesize (void)
 Returns the number of entries in the active palette.
BGI_API int BGI_CALL getpixel (int x, int y)
 Returns the color index of a pixel in viewport coordinates.
BGI_API void BGI_CALL gettextsettings (bgi::textsettingstype *texttypeinfo)
 Retrieves current text font, direction, size, and justification settings.
BGI_API void BGI_CALL getviewsettings (bgi::viewporttype *viewport)
 Returns the current viewport bounds and clip mode.
BGI_API int BGI_CALL getvisualpage (void)
 Returns the currently selected visual page index.
BGI_API int BGI_CALL getwindowheight (void)
 Returns current graphics window height.
BGI_API int BGI_CALL getwindowwidth (void)
 Returns current graphics window width.
BGI_API int BGI_CALL getx (void)
 Returns current pen x position.
BGI_API int BGI_CALL gety (void)
 Returns current pen y position.
BGI_API void BGI_CALL graphdefaults (void)
 Resets drawing state to BGI defaults while keeping the window open.
BGI_API char *BGI_CALL grapherrormsg (int errorcode)
 Returns a text message for a graph subsystem error code.
BGI_API int BGI_CALL graphresult (void)
 Returns the most recent graph subsystem status code.
BGI_API unsigned BGI_CALL imagesize (int left, int top, int right, int bottom)
 Returns the required byte size for a BGI image buffer region.
BGI_API void BGI_CALL initgraph (int *graphdriver, int *graphmode, char *pathtodriver)
 Initializes graphics using driver/mode pointers and optional driver path.
BGI_API int BGI_CALL initwindow (int width, int height, const char *title, int left, int top, int dbflag, int closeflag)
 Creates and initializes a graphics window and context.
BGI_API int BGI_CALL installuserdriver (char *name, void *detect)
 Compatibility hook for installing a user graphics driver.
BGI_API int BGI_CALL installuserfont (char *name)
 Compatibility hook for installing a user font.
BGI_API void BGI_CALL line (int x1, int y1, int x2, int y2, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws a line between two points.
BGI_API void BGI_CALL linerel (int dx, int dy, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws a line relative to current pen position and updates pen.
BGI_API void BGI_CALL lineto (int x, int y, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws a line to absolute coordinates from current pen position.
BGI_API void BGI_CALL moverel (int dx, int dy)
 Moves pen position by relative delta without drawing.
BGI_API void BGI_CALL moveto (int x, int y)
 Moves pen position to absolute coordinates without drawing.
BGI_API void BGI_CALL outtext (char *textstring, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Renders text at current pen position and advances the pen.
BGI_API void BGI_CALL outtextxy (int x, int y, char *textstring, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Renders text at explicit x/y coordinates.
BGI_API void BGI_CALL pieslice (int x, int y, int stangle, int endangle, int radius, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws and fills a pie-slice sector.
BGI_API void BGI_CALL putimage (int left, int top, void *bitmap, int op, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws an encoded BGI image buffer onto the active page.
BGI_API void BGI_CALL putpixel (int x, int y, int color, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Writes one pixel using current write mode semantics.
BGI_API void BGI_CALL rectangle (int left, int top, int right, int bottom, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws a rectangle outline.
BGI_API int BGI_CALL registerbgidriver (void(*driver)(void))
 Compatibility registration for a BGI driver callback.
BGI_API int BGI_CALL registerbgifont (void(*font)(void))
 Compatibility registration for a BGI font callback.
BGI_API void BGI_CALL restorecrtmode (void)
 Restores text/console mode by closing graphics resources.
BGI_API void BGI_CALL sector (int x, int y, int stangle, int endangle, int xradius, int yradius, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
 Draws and fills an elliptical sector.
BGI_API void BGI_CALL setactivepage (int page)
 Selects which page receives drawing commands.
BGI_API void BGI_CALL setallpalette (const bgi::palettetype *palette)
 Replaces entire palette mapping from a supplied palette structure.
BGI_API void BGI_CALL setaspectratio (int xasp, int yasp)
 Sets aspect ratio numerators used by BGI geometry/text scaling.
BGI_API void BGI_CALL setbkcolor (int color)
 Sets background color index used by clear operations.
BGI_API void BGI_CALL setcolor (int color)
 Sets active drawing color index.
BGI_API void BGI_CALL setfillpattern (char *upattern, int color)
 Installs a custom 8x8 fill pattern and associated fill color.
BGI_API void BGI_CALL setfillstyle (int pattern, int color)
 Sets predefined fill pattern and fill color.
BGI_API unsigned BGI_CALL setgraphbufsize (unsigned bufsize)
 Sets internal graph buffer size hint and returns previous value.
BGI_API void BGI_CALL setgraphmode (int mode)
 Sets active graph mode identifier.
BGI_API void BGI_CALL setlinestyle (int linestyle, unsigned upattern, int thickness)
 Sets line style, user bit pattern, and thickness.
BGI_API void BGI_CALL setpalette (int colornum, int color)
 Maps a palette slot to a BGI color index.
BGI_API void BGI_CALL setrgbpalette (int colornum, int red, int green, int blue)
 Sets true RGB value for a palette slot.
BGI_API void BGI_CALL settextjustify (int horiz, int vert)
 Sets horizontal/vertical text justification mode.
BGI_API void BGI_CALL settextstyle (int font, int direction, int charsize)
 Sets text font family, direction, and character size.
BGI_API void BGI_CALL setusercharsize (int multx, int divx, int multy, int divy)
 Sets user character scaling fractions for x/y text axes.
BGI_API void BGI_CALL setviewport (int left, int top, int right, int bottom, int clip)
 Sets viewport bounds and optional clipping behavior.
BGI_API void BGI_CALL setvisualpage (int page)
 Selects which page is displayed by flush/swap operations.
BGI_API void BGI_CALL setwritemode (int mode)
 Sets pixel write mode (copy/xor/or/and/not).
BGI_API int BGI_CALL swapbuffers (void)
 Swaps active and visual pages for double-buffer style drawing.
BGI_API int BGI_CALL textheight (char *textstring)
 Returns text height in pixels for current text settings.
BGI_API int BGI_CALL textwidth (char *textstring)
 Returns text width in pixels for current text settings.

Detailed Description

Borland-style graphics compatibility entry points.

Function Documentation

◆ arc()

BGI_API void BGI_CALL arc ( int x,
int y,
int stangle,
int endangle,
int radius,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws a circular arc.

◆ bar()

BGI_API void BGI_CALL bar ( int left,
int top,
int right,
int bottom,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws a filled rectangle using the active fill style/color.

◆ bar3d()

BGI_API void BGI_CALL bar3d ( int left,
int top,
int right,
int bottom,
int depth,
int topflag,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws a pseudo-3D filled rectangle.

◆ circle()

BGI_API void BGI_CALL circle ( int x,
int y,
int radius,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws a circle outline.

◆ cleardevice()

BGI_API void BGI_CALL cleardevice ( void )

Clears the full active drawing page to background color.

◆ clearviewport()

BGI_API void BGI_CALL clearviewport ( void )

Clears only the active viewport region to background color.

◆ closegraph()

BGI_API void BGI_CALL closegraph ( void )

Closes graphics window/context and releases associated resources.

◆ delay()

BGI_API void BGI_CALL delay ( int millisec)

Sleeps for the requested duration in milliseconds.

◆ detectgraph()

BGI_API void BGI_CALL detectgraph ( int * graphdriver,
int * graphmode )

Detects/initializes default graph driver and mode values.

◆ drawpoly()

BGI_API void BGI_CALL drawpoly ( int numpoints,
const int * polypoints,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws a polygon outline from an array of x/y point pairs.

◆ ellipse()

BGI_API void BGI_CALL ellipse ( int x,
int y,
int stangle,
int endangle,
int xradius,
int yradius,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws an elliptical arc between start and end angles.

◆ fillellipse()

BGI_API void BGI_CALL fillellipse ( int x,
int y,
int xradius,
int yradius,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws and fills an ellipse using current fill settings.

◆ fillpoly()

BGI_API void BGI_CALL fillpoly ( int numpoints,
const int * polypoints,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Fills a polygon interior from an array of x/y point pairs.

◆ floodfill()

BGI_API void BGI_CALL floodfill ( int x,
int y,
int border )

Flood-fills a region until the border color is reached.

◆ getactivepage()

BGI_API int BGI_CALL getactivepage ( void )

Returns the currently selected active page index.

◆ getarccoords()

BGI_API void BGI_CALL getarccoords ( bgi::arccoordstype * arccoords)

Retrieves cached arc endpoint coordinates from the last arc-like call.

◆ getaspectratio()

BGI_API void BGI_CALL getaspectratio ( int * xasp,
int * yasp )

Returns current aspect ratio numerators for x/y scaling.

◆ getbkcolor()

BGI_API int BGI_CALL getbkcolor ( void )

Returns the current background color index.

◆ getcolor()

BGI_API int BGI_CALL getcolor ( void )

Returns the current drawing color index.

◆ getdefaultpalette()

BGI_API bgi::palettetype *BGI_CALL getdefaultpalette ( void )

Returns a pointer to the default palette mapping.

◆ getdrivername()

BGI_API char *BGI_CALL getdrivername ( void )

Returns the active graphics driver name string.

◆ getfillpattern()

BGI_API void BGI_CALL getfillpattern ( char * pattern)

Copies the current 8x8 fill pattern mask into pattern.

◆ getfillsettings()

BGI_API void BGI_CALL getfillsettings ( bgi::fillsettingstype * fillinfo)

Retrieves current fill pattern id and fill color.

◆ getgraphmode()

BGI_API int BGI_CALL getgraphmode ( void )

Returns the current graph mode id.

◆ getimage()

BGI_API void BGI_CALL getimage ( int left,
int top,
int right,
int bottom,
void * bitmap )

Captures a rectangular image into a BGI image buffer.

◆ getlinesettings()

BGI_API void BGI_CALL getlinesettings ( bgi::linesettingstype * lineinfo)

Retrieves current line style, user pattern, and thickness.

◆ getmaxcolor()

BGI_API int BGI_CALL getmaxcolor ( void )

Returns the highest valid palette color index.

◆ getmaxheight()

BGI_API int BGI_CALL getmaxheight ( void )

Returns the maximum window height supported by current mode.

◆ getmaxmode()

BGI_API int BGI_CALL getmaxmode ( void )

Returns the highest valid graphics mode identifier.

◆ getmaxwidth()

BGI_API int BGI_CALL getmaxwidth ( void )

Returns the maximum window width supported by current mode.

◆ getmaxx()

BGI_API int BGI_CALL getmaxx ( void )

Returns the maximum x coordinate in the current viewport.

◆ getmaxy()

BGI_API int BGI_CALL getmaxy ( void )

Returns the maximum y coordinate in the current viewport.

◆ getmodename()

BGI_API char *BGI_CALL getmodename ( int mode_number)

Returns a human-readable mode name for mode_number.

◆ getmoderange()

BGI_API void BGI_CALL getmoderange ( int graphdriver,
int * lomode,
int * himode )

Returns the valid mode range for a given driver.

◆ getpalette()

BGI_API void BGI_CALL getpalette ( bgi::palettetype * palette)

Retrieves the currently active palette mapping.

◆ getpalettesize()

BGI_API int BGI_CALL getpalettesize ( void )

Returns the number of entries in the active palette.

◆ getpixel()

BGI_API int BGI_CALL getpixel ( int x,
int y )

Returns the color index of a pixel in viewport coordinates.

◆ gettextsettings()

BGI_API void BGI_CALL gettextsettings ( bgi::textsettingstype * texttypeinfo)

Retrieves current text font, direction, size, and justification settings.

◆ getviewsettings()

BGI_API void BGI_CALL getviewsettings ( bgi::viewporttype * viewport)

Returns the current viewport bounds and clip mode.

◆ getvisualpage()

BGI_API int BGI_CALL getvisualpage ( void )

Returns the currently selected visual page index.

◆ getwindowheight()

BGI_API int BGI_CALL getwindowheight ( void )

Returns current graphics window height.

◆ getwindowwidth()

BGI_API int BGI_CALL getwindowwidth ( void )

Returns current graphics window width.

◆ getx()

BGI_API int BGI_CALL getx ( void )

Returns current pen x position.

◆ gety()

BGI_API int BGI_CALL gety ( void )

Returns current pen y position.

◆ graphdefaults()

BGI_API void BGI_CALL graphdefaults ( void )

Resets drawing state to BGI defaults while keeping the window open.

◆ grapherrormsg()

BGI_API char *BGI_CALL grapherrormsg ( int errorcode)

Returns a text message for a graph subsystem error code.

◆ graphresult()

BGI_API int BGI_CALL graphresult ( void )

Returns the most recent graph subsystem status code.

◆ imagesize()

BGI_API unsigned BGI_CALL imagesize ( int left,
int top,
int right,
int bottom )

Returns the required byte size for a BGI image buffer region.

◆ initgraph()

BGI_API void BGI_CALL initgraph ( int * graphdriver,
int * graphmode,
char * pathtodriver )

Initializes graphics using driver/mode pointers and optional driver path.

◆ initwindow()

BGI_API int BGI_CALL initwindow ( int width,
int height,
const char * title,
int left,
int top,
int dbflag,
int closeflag )

Creates and initializes a graphics window and context.

◆ installuserdriver()

BGI_API int BGI_CALL installuserdriver ( char * name,
void * detect )

Compatibility hook for installing a user graphics driver.

◆ installuserfont()

BGI_API int BGI_CALL installuserfont ( char * name)

Compatibility hook for installing a user font.

◆ line()

BGI_API void BGI_CALL line ( int x1,
int y1,
int x2,
int y2,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws a line between two points.

◆ linerel()

BGI_API void BGI_CALL linerel ( int dx,
int dy,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws a line relative to current pen position and updates pen.

◆ lineto()

BGI_API void BGI_CALL lineto ( int x,
int y,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws a line to absolute coordinates from current pen position.

◆ moverel()

BGI_API void BGI_CALL moverel ( int dx,
int dy )

Moves pen position by relative delta without drawing.

◆ moveto()

BGI_API void BGI_CALL moveto ( int x,
int y )

Moves pen position to absolute coordinates without drawing.

◆ outtext()

BGI_API void BGI_CALL outtext ( char * textstring,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Renders text at current pen position and advances the pen.

◆ outtextxy()

BGI_API void BGI_CALL outtextxy ( int x,
int y,
char * textstring,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Renders text at explicit x/y coordinates.

◆ pieslice()

BGI_API void BGI_CALL pieslice ( int x,
int y,
int stangle,
int endangle,
int radius,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws and fills a pie-slice sector.

◆ putimage()

BGI_API void BGI_CALL putimage ( int left,
int top,
void * bitmap,
int op,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws an encoded BGI image buffer onto the active page.

◆ putpixel()

BGI_API void BGI_CALL putpixel ( int x,
int y,
int color,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Writes one pixel using current write mode semantics.

◆ rectangle()

BGI_API void BGI_CALL rectangle ( int left,
int top,
int right,
int bottom,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws a rectangle outline.

◆ registerbgidriver()

BGI_API int BGI_CALL registerbgidriver ( void(* driver )(void))

Compatibility registration for a BGI driver callback.

◆ registerbgifont()

BGI_API int BGI_CALL registerbgifont ( void(* font )(void))

Compatibility registration for a BGI font callback.

◆ restorecrtmode()

BGI_API void BGI_CALL restorecrtmode ( void )

Restores text/console mode by closing graphics resources.

◆ sector()

BGI_API void BGI_CALL sector ( int x,
int y,
int stangle,
int endangle,
int xradius,
int yradius,
int rb BGI_DEFAULT_ARG0,
const char *layerName BGI_DEFAULT_ARGnullptr )

Draws and fills an elliptical sector.

◆ setactivepage()

BGI_API void BGI_CALL setactivepage ( int page)

Selects which page receives drawing commands.

◆ setallpalette()

BGI_API void BGI_CALL setallpalette ( const bgi::palettetype * palette)

Replaces entire palette mapping from a supplied palette structure.

◆ setaspectratio()

BGI_API void BGI_CALL setaspectratio ( int xasp,
int yasp )

Sets aspect ratio numerators used by BGI geometry/text scaling.

◆ setbkcolor()

BGI_API void BGI_CALL setbkcolor ( int color)

Sets background color index used by clear operations.

◆ setcolor()

BGI_API void BGI_CALL setcolor ( int color)

Sets active drawing color index.

◆ setfillpattern()

BGI_API void BGI_CALL setfillpattern ( char * upattern,
int color )

Installs a custom 8x8 fill pattern and associated fill color.

◆ setfillstyle()

BGI_API void BGI_CALL setfillstyle ( int pattern,
int color )

Sets predefined fill pattern and fill color.

◆ setgraphbufsize()

BGI_API unsigned BGI_CALL setgraphbufsize ( unsigned bufsize)

Sets internal graph buffer size hint and returns previous value.

◆ setgraphmode()

BGI_API void BGI_CALL setgraphmode ( int mode)

Sets active graph mode identifier.

◆ setlinestyle()

BGI_API void BGI_CALL setlinestyle ( int linestyle,
unsigned upattern,
int thickness )

Sets line style, user bit pattern, and thickness.

◆ setpalette()

BGI_API void BGI_CALL setpalette ( int colornum,
int color )

Maps a palette slot to a BGI color index.

◆ setrgbpalette()

BGI_API void BGI_CALL setrgbpalette ( int colornum,
int red,
int green,
int blue )

Sets true RGB value for a palette slot.

◆ settextjustify()

BGI_API void BGI_CALL settextjustify ( int horiz,
int vert )

Sets horizontal/vertical text justification mode.

◆ settextstyle()

BGI_API void BGI_CALL settextstyle ( int font,
int direction,
int charsize )

Sets text font family, direction, and character size.

◆ setusercharsize()

BGI_API void BGI_CALL setusercharsize ( int multx,
int divx,
int multy,
int divy )

Sets user character scaling fractions for x/y text axes.

◆ setviewport()

BGI_API void BGI_CALL setviewport ( int left,
int top,
int right,
int bottom,
int clip )

Sets viewport bounds and optional clipping behavior.

◆ setvisualpage()

BGI_API void BGI_CALL setvisualpage ( int page)

Selects which page is displayed by flush/swap operations.

◆ setwritemode()

BGI_API void BGI_CALL setwritemode ( int mode)

Sets pixel write mode (copy/xor/or/and/not).

◆ swapbuffers()

BGI_API int BGI_CALL swapbuffers ( void )

Swaps active and visual pages for double-buffer style drawing.

◆ textheight()

BGI_API int BGI_CALL textheight ( char * textstring)

Returns text height in pixels for current text settings.

◆ textwidth()

BGI_API int BGI_CALL textwidth ( char * textstring)

Returns text width in pixels for current text settings.