LoadGLTextureFromMemory Function
ImagingOpenGL

Creates GL texture from image in memory in format supported by Imaging.

Pascal
function LoadGLTextureFromMemory(Data: Pointer; 
                                 Size: LongInt; 
                                 CreatedWidth: PLongInt = nil; 
                                 CreatedHeight: PLongInt = nil): GLuint;
File

ImagingOpenGL (at line 102)

Description

You can use CreatedWidth and Height parameters to query dimensions of created textures (it could differ from dimensions of source image).

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