triangle: cleanup.
primitives: cleanup.
textured-triangle: cleanup, documentation improvements.