Make region parameter relative to the sprite origin for consistency.
Merge branch 'master' into texture
Fix initialization list order.
Coding style.