5.1 Create and delete objects

Constructor on mglGraph: mglGraph (int kind=0, int width=600, int height=400)
Constructor on mglGraph: mglGraph (const mglGraph &gr)
Constructor on mglGraph: mglGraph (HMGL gr)
C function: HMGL mgl_create_graph (int width, int height)
C function: HMGL mgl_create_graph_gl ()

Creates the instance of class mglGraph with specified sizes width and height. Parameter kind may have following values: ‘0’ – use default plotter, ‘1’ – use OpenGL plotter.

Destructor on mglGraph: ~mglGraph ()
C function: HMGL mgl_delete_graph (HMGL gr)

Deletes the instance of class mglGraph.

Method on mglGraph: HMGL Self ()

Returns the pointer to internal object of type HMGL.

C function: HMGL mgl_default_graph ()

Returns pointer to default instance of class mglGraph. This is default instance, used with new classes, which can be used to keep plot settings and to speed up initialization in small different plots.