Converts TImageData structure to OpenGL texture.
function CreateGLTextureFromImage(const Image: TImageData; Width: LongInt = 0; Height: LongInt = 0; MipMaps: Boolean = True; OverrideFormat: TImageFormat = ifUnknown; CreatedWidth: PLongInt = nil; CreatedHeight: PLongInt = nil): GLuint;
ImagingOpenGL (at line 109)
Input images is used as main mipmap level and additional requested levels are generated from this one. For the details on parameters look at CreateGLTextureFromMultiImage function.