Class TAnimatedMeshMD2

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAnimatedMeshMD2 = class(TMesh)

Description

Class for using some special functions of MD2 meshes.

Hierarchy

Overview

Methods

Public function GetAnimationName(Index: LongInt): AnsiString; inline;
Public function GetFrameLoop(const Name: AnsiString; out First, Last, FPS: LongInt) :Boolean; overload; inline;
Public procedure GetFrameLoop(Anim: TMD2Animation; out First, Last, FPS: LongInt); overload; inline;

Properties

Public property AnimationCount: LongInt read GetAnimationCount;

Description

Methods

Public function GetAnimationName(Index: LongInt): AnsiString; inline;

Returns the name of a MD2 Animation.

Public function GetFrameLoop(const Name: AnsiString; out First, Last, FPS: LongInt) :Boolean; overload; inline;

Gets the frame loop data for a special MD2 animation type, identified by name.

Parameters
Name
Name of the animation.
First
(out) The returned beginning frame for animation type specified.
Last
(out) The returned ending frame for the animation type specified.
FPS
(out) The number of frames per second, this animation should be played at
Returns

Whether the function succeeded.

Public procedure GetFrameLoop(Anim: TMD2Animation; out First, Last, FPS: LongInt); overload; inline;

Gets the frame loop data for a default MD2 animation type.

Parameters
Anim
The TMD2Animation to get the frames for.
First
(out) The returned beginning frame for animation type specified.
Last
(out) The returned ending frame for the animation type specified.
FPS
(out) The number of frames per second, this animation should be played at.

Properties

Public property AnimationCount: LongInt read GetAnimationCount;

Get amount of MD2 animations in this mesh.


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