Update and clean up the API.
Add QUAD2 constant.
Add texture objects.