| Description | Hierarchy | Fields | Methods | Properties | 
type TAd2DMesh = class(TObject)
An abstract class which represents a mesh (a set of vertices) in Andorra's engine.
![]()  | 
procedure Update; virtual; abstract; | 
![]()  | 
procedure Draw(ABlendMode:TAd2DBlendMode;ADrawMode:TAd2DDrawMode); virtual; abstract; | 
![]()  | 
procedure SetMaterial(AMaterial: PAd2dMaterial); virtual; abstract; | 
![]()  | 
property Loaded: boolean read GetLoaded; | 
![]()  | 
property Vertices: TAdVertexArray read FVertices write SetVertices; | 
![]()  | 
property Indices: TAdIndexArray read FIndices write SetIndices; | 
![]()  | 
property VertexCount: integer read FVertexCount; | 
![]()  | 
property IndicesCount: integer read FIndicesCount; | 
![]()  | 
property PrimitiveCount: integer read FPrimitiveCount write FPrimitiveCount; | 
![]()  | 
property Texture: TAd2DTexture read FTexture write SetTexture; | 
![]()  | 
property Matrix: TAdMatrix read FMatrix write FMatrix; | 
![]()  | 
property TextureMatrix: TAdMatrix read FTextureMatrix write FTextureMatrix; | 
![]()  | 
procedure Update; virtual; abstract; | 
| 
 Pushes the data into the graphic system's format.  | |
![]()  | 
procedure Draw(ABlendMode:TAd2DBlendMode;ADrawMode:TAd2DDrawMode); virtual; abstract; | 
| 
 Draws the mesh.  | |
![]()  | 
procedure SetMaterial(AMaterial: PAd2dMaterial); virtual; abstract; | 
| 
 Sets the material data. If AMaterial is nil, the vertex colors are used as material source.  | |
![]()  | 
property Loaded: boolean read GetLoaded; | 
| 
 Returnes weather data is loaded.  | |
![]()  | 
property Vertices: TAdVertexArray read FVertices write SetVertices; | 
| 
 The vertices a mesh has.  | |
![]()  | 
property Indices: TAdIndexArray read FIndices write SetIndices; | 
| 
 The index buffer of a mesh.  | |
![]()  | 
property VertexCount: integer read FVertexCount; | 
| 
 Returnes the count of vertices.  | |
![]()  | 
property IndicesCount: integer read FIndicesCount; | 
| 
 Returnes the count of indices.  | |
![]()  | 
property PrimitiveCount: integer read FPrimitiveCount write FPrimitiveCount; | 
| 
 Set the amount of primitives here.  | |
![]()  | 
property Texture: TAd2DTexture read FTexture write SetTexture; | 
| 
 Set the texture of the mesh here. Set to nil, if you want no texture.  | |
![]()  | 
property Matrix: TAdMatrix read FMatrix write FMatrix; | 
| 
 The transformation matrix of the model  | |
![]()  | 
property TextureMatrix: TAdMatrix read FTextureMatrix write FTextureMatrix; | 
| 
 The texture matrix of the model  | |