Contents

TwDraw (function)

int TwDraw()

Description

Draws all the created tweak bars.

This function must be called once per frame, after all the other drawing calls and just before the application presents (swaps) the frame buffer. It will draw the bars on top of the other drawings. It tries to backup all the graphics states that it modifies, and restore them after.

This function is optimized. It aims at having as less impact as possible on the application frame rate (if the app does other things than to only display tweak bars, of course).

Return value

See also

TwNewBar, TwWindowSize