Andorra Suite Documentation

Unit AdTypes

Unit dependencies

View fullscreen

Description

Contains some standard types used everywhere in Andorra 2D.

Structures

class

packed record

record

Functions

function AdBounds
(X,Y,Width,Height:LongInt):TAdRect;
function AdBoundsEx
(X,Y,Width,Height:double):TAdRectEx;
procedure AdOffsetRect
(var Rect:TAdRect; X, Y:LongInt);
function AdRect
(X1,Y1,X2,Y2:LongInt):TAdRect; overload; inline;
function AdRectEx
(X1,Y1,X2,Y2:double):TAdRectEx; inline;
function AdPoint
(X,Y:LongInt):TAdPoint; overload; inline;
function CompareRects
(const Rect1,Rect2:TAdRect):boolean;
function OverlapRect
(const Rect1, Rect2: TAdRect): boolean;
function InRect
(const X, Y: integer; const Rect: TAdRect): boolean;
function CalcOverlapRect
(out AO: TAdRect; const AR1, AR2: TAdRect): boolean;
function AdVector3
(AX,AY,AZ:double):TAdVector3; overload;
function AdVector4
(AX, AY, AZ, AW:double):TAdVector4; overload;
function AdVector2
(AX,AY:double):TAdVector2;
function Ad_ARGB
(a,r,g,b:byte):TAndorraColor;
function Ad_RGB
(r,g,b:byte):TAndorraColor;
function AdSetAlpha
(AAlpha: byte; ACol: Longint):TAndorraColor; overload;
function AdColorToString
(AColor:TAndorraColor): AnsiString;
function StringToAdColor
(AString: AnsiString):TAndorraColor;
function AdColorToColor
(AAdColor:TAndorraColor):Longint;
function ColorToAdColor
(AColor:LongInt):TAndorraColor;
function RGB
(r,g,b:byte):Longint;
function GetRValue
(AColor:LongInt):byte;
function GetGValue
(AColor:LongInt):byte;
function GetBValue
(AColor:LongInt):byte;
function CompareColors
(col1,col2:TAndorraColor):boolean;
function FloatsEqual
(v1, v2, e:double):boolean; overload;
function Cut
(AValue:integer):byte;

Enumerations

Constants

aclNone
= $1FFFFFFF;
AdMatrix_Clear
: TAdMatrix = ((0,0,0,0),(0,0,0,0),(0,0,0,0),(0,0,0,0));
A matrix which only contains zero values
AdMatrix_Identity
: TAdMatrix = ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1));
A identity matrix.

Variables

AdTextureOffset
: single = 0;
For preventing the graphics board from plotting the from pxiels when the atPoint filter is used, AdTextureOffset/(Width in Pixels) should be added to every texture coordinate. This value is automaticaly set, when a TAdDraw is initialized

Types

PAndorraColor
= ^TAndorraColor;
Pointer type of TAndorraColor
TRGBARec
= TAndorraColor;
Another name for TAndorraColor.

See also

PRGBARec
= ^TRGBARec;
Pointer type of TRGBARec.
TRGBAArray
= array[0..0] of TRGBARec;
Array used to acces a whole scanline pixel by pixel.
PRGBAArray
= ^TRGBAArray;
Pointer type of TRGBAArray.
PRGBRec
= ^TRGBRec;
Pointer type of TRGBRec.
TRGBArray
= array[0..0] of TRGBRec;
Array used to acces a whole scanline pixel by pixel.
PRGBArray
= ^TRGBArray;
Pointer type of TRGBArray.
PAdVector2
= ^TAdVector2;
Pointer on TAdVector2
PAdVector3
= ^TAdVector3;
Pointer on TAdVector3
PAdVector4
= ^TAdVector4;
Pointer on TAdVector4
TAdMatrix
= array[0..3] of array[0..3] of single;
A standard 3x3 matrix.
PAdVertex
= ^TAdVertex;
Pointer on TAdVertex
TAdVertexArray
= array of TAdVertex;
An array of the vertex
TAdIndexArray
= array of Word;
Represtents an index buffer
TAdFloatArray
= array of Single;
Represents an array of floats
PAdPoint
= ^TAdPoint;
Pointer type of TAdPoint.
PAdPointEx
= ^TAdPointEx;
Pointer type of TAdPointEx
PAdRect
= ^TAdRect;
Pointer type of TAdRect.
PAdRectEx
= ^TAdRectEx;
Pointer type of TAdRectEx
TAdFontStyles
= set of TAdFontStyle;
Set of all three font styles.
TAdCharPatterns
= array[0..255] of TAdRect;
Array which contains the position of every char of a bitmap font in the texture.
TAdCharSizes
= array[0..255] of TAdPoint;
Array which stores the size of a char.
TAdTextSet
= array of TAdTextSetChar;
Array returned by the type setter which returns the texture coordinates and the position/size of each char.
TAdVeryShortString
= string[4];
A string with the length of five bytes.
TAdPolygon
= array of TAdPoint;
A type which represents a polygon
TAdTriangle
= array[0..2] of TAdPoint;
A type which contains three points
TAdTriangles
= array of TAdTriangle;
A type which represents a set of triangles
TAdNotifyEvent
= procedure(Sender: TObject) of object;
Standard event type. Moved here from AdEvents.
TAdBeginRenderEvent
= procedure(Sender: TObject; AModelViewProjection: TAdMatrix) of object;
Event type used by TAdRenderingObject.

This page was generated by a documentation system written by Andreas Stoeckel. This system makes use of a modified PasDoc version and Graphviz.

Get Andorra Commons at SourceForge.net. Fast, secure and Free Open Source software downloads