Class TImageLoader

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TImageLoader = class(TReferenceCounted)

Description

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.

Hierarchy

Overview

Methods

Public function IsALoadableFileExtension(const FileName: StringType): Boolean; inline;
Public function IsALoadableFileFormat(RFile: TReadFile): Boolean; inline;
Public function LoadImage(RFile: TReadFile): TImage; inline;

Description

Methods

Public function IsALoadableFileExtension(const FileName: StringType): Boolean; inline;

Check if the file might be loaded by this class.
Check is based on the file extension (e.g. ".tga")

Parameters
FileName
Name of file to check.
Returns

True if file seems to be loadable.

Public function IsALoadableFileFormat(RFile: TReadFile): Boolean; inline;

Check if the file might be loaded by this class.
Check might look into the file.

Parameters
RFile
File handle to check.
Returns

True if file seems to be loadable.

Public function LoadImage(RFile: TReadFile): TImage; inline;

Creates a surface from the file.

Parameters
RFile
File handle to check.
Returns

The newly created image, or nil upon error.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22