Description | Hierarchy | Fields | Methods | Properties |
type TImageLoader = class(TReferenceCounted)
Class which is able to create a image from a file.
If you want the Irrlicht Engine be able to load textures of currently unsupported file formats (e.g .gif), then implement this and add your new Surface loader with TVideoDriver.AddExternalImageLoader to the engine.
![]() |
function IsALoadableFileExtension(const FileName: StringType): Boolean; inline; |
![]() |
function IsALoadableFileFormat(RFile: TReadFile): Boolean; inline; |
![]() |
function LoadImage(RFile: TReadFile): TImage; inline; |
![]() |
function IsALoadableFileExtension(const FileName: StringType): Boolean; inline; |
Check if the file might be loaded by this class. Parameters
ReturnsTrue if file seems to be loadable. |
![]() |
function IsALoadableFileFormat(RFile: TReadFile): Boolean; inline; |
Check if the file might be loaded by this class. Parameters
ReturnsTrue if file seems to be loadable. |
![]() |
function LoadImage(RFile: TReadFile): TImage; inline; |
Creates a surface from the file. Parameters
ReturnsThe newly created image, or nil upon error. |