


You can tell initgraph to use a particular graphics driver and mode, or to autodetect the attached video adapter at run time and pick the corresponding driver. initgraph loads the graphics driver and puts the system into graphics mode. To start the graphics system, first call the initgraph function. Initgraph initializes the graphics system by loading a graphics driver from disk (or validating a registered driver), and putting the system into graphics mode. Initializing the Graphics mode is to call various functions, one such is called initgraph. After this, the graphics have to be initialized.Ĭ Language supports 16 Bit's MS-DOS environment.

This file is required for Graphics programming. Initgraph() Function in C++To create a program in Graphics Mode, the first step would be to include the header file graphics.h. * plot a point in the color defined by color at (x,y) by putpixel() function code example. * putpixel() function writes a pixel to the specified position in the bitmap, using the current drawing mode and the bitmap's clipping rectangle. Void scan_line(float x1,float y1,float z1,float x2,float y2,float Void drawpyramid(float,float,float,float,float,float) įloat pts= Void scan_line(float,float,float,float,float,float,float,float,float) Void assign(float,float,float,float,float,float,float,float,float) void render(float,float,float, float,float,float,įloat intensity,alpha,thita,tempy,tempz,tempx
