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

8.18 Frames (Pure C)

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.

C function: int mgl_new_frame (HMGL gr, 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 multithreading drawing. The function mgl_end_frame() must be call after the finishing of the frame drawing for each call of this function.

C function: void mgl_end_frame (HMGL gr)

Finishes the frame drawing.

C function: int mgl_get_num_frame (HMGL gr)

Gets the number of created frames.


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