Fixed a bug in my previous, and added the texture priority and repeat
functions because we do need them for mobile device compatibility or
when the hardware does not have enough vram to support all the textures.
Also added a function to allow you to set the texture border color for dealing
with depth testing on transparent billboards.