| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
These functions provide ability to create several pictures simultaneously. For most of cases it is useless but for widget classes (see Widget classes) they can provide a way to show animation. Also you can write several frames into animated GIF file.
mglGraph: int NewFrame ()int mgl_new_frame (HMGL gr)Creates new frame. Function returns current frame id. This is not thread safe function in OpenGL mode! 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.
mglGraph: void EndFrame ()void mgl_end_frame (HMGL gr)Finishes the frame drawing.
mglGraph: int GetNumFrame ()int mgl_get_num_frame (HMGL gr)Gets the number of created frames.
mglGraph: void ResetFrames ()int mgl_reset_frames (HMGL gr)Reset frames counter (start it from zero).
mglGraph: void StartGIF (const char *fname, int ms=100)void mgl_start_gif (HMGL gr, const char *fname, int ms)Start writing frames into animated GIF file fname. Parameter ms set the delay between frames in milliseconds. You should not change the picture size during writing the cinema. Use CloseGIF() to finalize writing. Note, that this function is disabled in OpenGL mode.
mglGraph: int CloseGIF ()void mgl_close_gif (HMGL gr)Finish writing animated GIF and close connected pointers.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated by Autobuild on July 16, 2012 using texi2html 1.82.