New functions in graphics.h

graphics.h adds some additional function interfaces similar to Borland BGI on the basis of easyx.h.

The additional functions in graphics.h are as follow.

Function or data type Description
bar Draw a filled rectangle without a border.
bar3d Draw a filled 3D rectangle with a border.
drawpoly Draw a polygon without filling.
fillpoly Draw a filled polygon with a border.
getcolor Gets the current foreground color.
getmaxx Gets the maximum x-coordinate in the physical coordinates of the graphics window.
getmaxy Gets the maximum y-coordinate in the physical coordinates of the graphics window.
initgraph (Compatible with Turbo C) Initialize the graphics window.
setcolor Sets the current foreground color.
setwritemode Sets the binary grating operating mode for the foreground.