igiProgressBar

A progress bar. Takes fraction (How full, 0.0 to 1.0), w (Width (0 = fill the window)), h (Height (0 = one line)), overlay (Text on the bar ("" shows the percentage)).

IGI

Parameters & Returns

Parameters

fraction Double
w Int
h Int
overlay String

Returns

Void

Quick Summary

A progress bar. Takes fraction (How full, 0.0 to 1.0), w (Width (0 = fill the window)), h (Height (0 = one line)), overlay (Text on the bar ("" shows the percentage)).

Technical Exegesis...

A progress bar.

Call it every frame, between drawing your game and b2dFlip. See the IGI guide.

Example

Example.bam
igiProgressBar(loaded / total, 0, 0, "Loading...")