lib/glesv2 & gamnit: update examples to the new API