Class TPHXTextureList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TPHXTextureList = class(TObject)

Description

Container for a list of textures

Hierarchy

  • TObject
  • TPHXTextureList

Overview

Methods

Public constructor Create(ADevice: TPHXCustomDevice);
Public destructor Destroy; override;
Public procedure Clear;
Public function Add: TPHXTexture;
Public function LoadTexture(const FileName: String): TPHXTexture; overload;
Public function LoadTexture(const FileName: String; const Name: String): TPHXTexture; overload;
Public function LoadTexture(const FileName: String; Stream: TStream): TPHXTexture; overload;
Public function IndexOf(const Name: String): Integer;
Public function Find(const Name: String): TPHXTexture;

Properties

Public property Device: TPHXCustomDevice read FDevice write FDevice;
Public property Count: Integer read GetCount;
Public property List: PTextureList read GetList;
Public property Textures[constName:String]: TPHXTexture read GetTexture;
Public property Items[constIndex:Integer]: TPHXTexture read GetItem;

Description

Methods

Public constructor Create(ADevice: TPHXCustomDevice);

Creates a new texture list

Public destructor Destroy; override;

Default destructor

Public procedure Clear;

Clear and free all textures

Public function Add: TPHXTexture;

Add a texture to the list

Public function LoadTexture(const FileName: String): TPHXTexture; overload;

Add and load a texture to the list

Public function LoadTexture(const FileName: String; const Name: String): TPHXTexture; overload;

Add and load a texture to the list

Public function LoadTexture(const FileName: String; Stream: TStream): TPHXTexture; overload;

Add and load a texture to the list

Public function IndexOf(const Name: String): Integer;

Search for a texture by name and return the index

Public function Find(const Name: String): TPHXTexture;

Search for a texture by name and return the texture

Properties

Public property Device: TPHXCustomDevice read FDevice write FDevice;

The owning device

Public property Count: Integer read GetCount;

Returns the number of textures in the list

Public property List: PTextureList read GetList;

Returns a pointer to the internal list

Public property Textures[constName:String]: TPHXTexture read GetTexture;

Return a texture from the list

Public property Items[constIndex:Integer]: TPHXTexture read GetItem;

Return a texture from the list


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