Texture Handling Improvements * DO NOT MERGE*

Various improvements such as addition of missing texture functions, clarity between Direct3D and OpenGL as well.