CreateGLTextureFromImage Function
ImagingOpenGL

Converts TImageData structure to OpenGL texture.

Pascal
function CreateGLTextureFromImage(const Image: TImageData; 
                                  Width: LongInt = 0; 
                                  Height: LongInt = 0; 
                                  MipMaps: Boolean = True; 
                                  OverrideFormat: TImageFormat = ifUnknown; 
                                  CreatedWidth: PLongInt = nil; 
                                  CreatedHeight: PLongInt = nil): GLuint;
File

ImagingOpenGL (at line 109)

Description

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.

Related Information
You are here: Symbol Reference > Functions > CreateGLTextureFromImage Function