Graphics Functions Cleanup

Added some more functions to Direct3D9 and made OpenGL versions match it.