Class TMeshLoader

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TMeshLoader = class(TReferenceCounted)

Description

Class which is able to load an animated mesh from a file.
If you want Irrlicht be able to load meshes of currently unsupported file formats (e.g. .cob), then implement this and add your new Meshloader with TSceneManager.AddExternalMeshLoader() to the engine.

Hierarchy

Overview

Methods

Public function CreateMesh(RFile: TReadFile): TAnimatedMesh; inline;
Public function IsALoadableFileExtension(const FileName: StringType): Boolean; inline;

Description

Methods

Public function CreateMesh(RFile: TReadFile): TAnimatedMesh; inline;

Creates/loads an animated mesh from the file.

Parameters
RFile
File handler to load the file from.
Returns

The created mesh. Returns nil if loading failed. If you no longer need the mesh, you should call TAnimatedMesh.Drop(). See TReferenceCounted.Drop() for more information.

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

Returns true if the file might be loaded by this class.
This decision should be based on the file extension (e.g. ".cob") only.

Parameters
FileName
Name of the file to test.
Returns

True if the file might be loaded by this class.


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