work on pyglet sample

Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com>