We don't see many examples of FLTK used to render "realistic"
instruments,
so I thought I'd make a mechanical aircraft altimeter simulation.
This is an FLTK widget where you can set the altitude to any value
between 0 and 99,000 feet.
The demo runs the altimeter in realtime to show how the dial and
drum numbers work:
I added this demo to my "FLTK cheat" page; here's the link:
http://seriss.com/people/erco/fltk/#Altimeter
Only took a few hours to make; most of the time was spent painting
the images in GIMP.
Started with a few photos, and simplified them a bit, separating
them into levels.
The goal was to show how one can composite PNG images in realtime to
render
a realistic instrument with very little code.
The link includes a short gif animation of what the demo looks like
when you run it.
OpenGL is not used, just straight FLTK drawing calls.