Unit phxImage

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Classes for managing and rendering 2D images and animations

Overview

Classes, Interfaces, Objects and Records

Name Description
record TPHXPattern A single pattern in a image
record TPHXPatternBuffer Contains the information needed to render a pattern
Class TPHXPatternList List of patterns
record TPHXTag A tag is used to mark an interesting position in the image, could be used to specify weapon hardpoints, sprite attatchments etc
Class TPHXTagList List of tags
record TPHXImageHeader The image file header.
Class TPHXImage The image is a container for a texture and supports patterns and tags
Class TPHXImageList Contains a list of images
record TPHXAnimationHeader The animation file header.
record TPHXAnimationFrame A single frame in the animation
Class TPHXAnimationFrames Container for a list of animation frames
record TPHXAnimationState Contains the state for a animation
Class TPHXAnimation A animation implement a sprite animation using a image
Class TPHXAnimationList A container for a list of animations
Class TPHXAnimationSet The animation set handles a set of animations with support for queuing animations

Types

TPHXPatternIndex = type Integer;
PPHXPattern = ˆTPHXPattern;
TPHXPatternCompare = function(const A: TPHXPattern; const B: TPHXPattern): Integer;
PPatternList = ˆTPatternList;
TPatternList = array[0.. $000FFFFF] of TPHXPattern;
PTagList = ˆTTagList;
TTagList = array[0.. $000FFFFF] of TPHXTag;
PAnimationFrameList = ˆTAnimationFrameList;
TAnimationFrameList = array[0..$00AFFFFF] of TPHXAnimationFrame;
PAnimationList = ˆTAnimationList;
TAnimationList = array[0..$00FFFFFF] of TPHXAnimation;

Constants

PHXIMAGE_EXT = '.phximg';
PHXIMAGE_VERSION = 20;
PHXANIMATION_EXT = '.phxani';
PHXANIMATION_VERSION = 20;
PHXPATTERN_NONE = -1;

Description

Types

TPHXPatternIndex = type Integer;

Datatype for pattern indicies

PPHXPattern = ˆTPHXPattern;

Pattern pointer

TPHXPatternCompare = function(const A: TPHXPattern; const B: TPHXPattern): Integer;

Comparision function for patterns

PPatternList = ˆTPatternList;

Pointer to a array of patterns

TPatternList = array[0.. $000FFFFF] of TPHXPattern;

Array of patterns

PTagList = ˆTTagList;
 
TTagList = array[0.. $000FFFFF] of TPHXTag;
 
PAnimationFrameList = ˆTAnimationFrameList;

Pointer to the array of animation frames

TAnimationFrameList = array[0..$00AFFFFF] of TPHXAnimationFrame;

Array of animation frames

PAnimationList = ˆTAnimationList;

Pointer to a array of animations

TAnimationList = array[0..$00FFFFFF] of TPHXAnimation;

Array of animations

Constants

PHXIMAGE_EXT = '.phximg';

Default file extension of images

PHXIMAGE_VERSION = 20;

Version of the binary image files

PHXANIMATION_EXT = '.phxani';

Default file extension of animations

PHXANIMATION_VERSION = 20;

Version of the binary animation files

PHXPATTERN_NONE = -1;

Constant for invalid pattern selection


Generated by PasDoc 0.13.0 on 2013-08-26 11:02:38