UNITS
CLASSES, INTERFACES, OBJECTS
TYPES
VARIABLES
CONSTANTS
FUNCTIONS, PROCEDURES
IDENTIFIERS

Class TPalette_Load

Unit

UTPFF_Load_Palette

Declaration

type TPalette_Load = class(TObject)

Description

UTPFF-class which loads and stores the palette of a texture

Fields

NameDescription
Color array of raw palette entries, TRGBAQuad
ExportTable copy of the ExportTable
ImportTable copy of the ImportTable
NameTable copy of the NameTable
PaletteOffset offset of the palette within the package
PaletteSize number of entries in the palette
Palette_ETINDEX reference to the palette; decoded object reference
Palette_INDEX reference to the palette; undecoded ObjectReference (the palette is always stored in the ExportTable, so we can slip any further investigation and just use it as Palette_INDEX-1), see the UTPFF docs for further information
Palette_NAME name of the palette
WinPalette converted HPALETTE

Methods

Overview

procedure Convert_RAW2HPALETTE;
procedure Load(var NT : TNameTable; IT : TImportTable; ET : TExportTable; Str_Handle : integer; INDEX : DWORD);
procedure Read_Palette(Str_Handle : integer);

Description

procedure Convert_RAW2HPALETTE;

converts the raw pallete into a windows HPALETTE

procedure Load(var NT : TNameTable; IT : TImportTable; ET : TExportTable; Str_Handle : integer; INDEX : DWORD);

interface procedure; all necessary informations to read a palette are passed as parameters

procedure Read_Palette(Str_Handle : integer);

reads the raw palette

Properties

None.


Generated by pasdoc 0.6.20 on Wed 20 Mar 2002 20:59:34