Implements texture mapping palette and curve functions

- Curve function implemented.
- Texture mapping palette function with various texture mapping types
implemented.
- Fixes text function bounding box corners.