Returns True if the given image format can be represented as GL texture format.
ImagingOpenGL (at line 81)
GLFormat, GLType, and GLInternal are parameters for functions like glTexImage. Note that GLU functions like gluBuildMipmaps cannot handle some formats returned by this function (i.e. GL_UNSIGNED_SHORT_5_5_5_1 as GLType). If you are using compressed or floating-point images make sure that they are supported by hardware using GetGLTextureCaps, ImageFormatToGL does not check this.