manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.16 Frames

These functions provide ability to create several pictures simultaneously. For most of cases it is useless but for widget classes (see section Widget classes) they can provide a way to show animation.

Method on mglGraph: int NewFrame (int id=0)

Creates new frame. Function returns current frame id. Zero or negative parameter id leads to automatic numbering frames. Positive one sets the new frame id directly. This is not thread safe function! Use direct list creation in multi-threading drawing. The function EndFrame() must be call after the finishing of the frame drawing for each call of this function.

Method on mglGraph: void EndFrame ()

Finishes the frame drawing.

Method on mglGraph: int GetNumFrame ()

Gets the number of created frames.


© manpagez.com 2000-2026
Individual documents may contain additional copyright information.