gl-rs unsafety fallout

Closes #418
Implement cube mapping.

Closes #307