Initializes presentation graphics.
#include <pgchart.h>
short __far _pg_initchart( void );
The _pg_initchart function initializes the presentation-graphics package. It initializes the color and style pools, resets the chartline styleset, builds default palette modes, and reads the presentation-graphics font definition from the disk. This function is required in all programs that use presentation graphics. The _pg_initchart function must be called before any of the other functions in the presentation-graphics library.
The _pg_initchart function assumes a valid graphics mode has been established. Therefore, it must be called only after a successful call to the library function _setvideomode.
Note:
The _pg_initchart function can only be called after using the _setvideomode function to establish the video mode. Also, _pg_initchart must be called after each change of the video mode.
The _pg_initchart functions return 0 if there were no errors. A nonzero value indicates a failure.
Standards:None
16-Bit:DOS
32-Bit:None
_pg_defaultchart, _pg_getchardef, _pg_getpalette, _pg_getstyleset, _pg_hlabelchart, _pg_resetpalette, _resetstyleset, _pg_setchardef, _pg_setpalette, _pg_setstyleset, _pg_vlabelchart, _setvideomode
See the example for _pg_chart.