all: use gfx.NewFoo() instead of &gfx.Foo{} for allocations.

Fixes azul3d/examples#1