Class TAd2DMesh

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAd2DMesh = class(TObject)

Description

An abstract class which represents a mesh (a set of vertices) in Andorra's engine.

Hierarchy

Overview

Methods

Public procedure Update; virtual; abstract;
Public procedure Draw(ABlendMode:TAd2DBlendMode;ADrawMode:TAd2DDrawMode); virtual; abstract;
Public procedure SetMaterial(AMaterial: PAd2dMaterial); virtual; abstract;

Properties

Public property Loaded: boolean read GetLoaded;
Public property Vertices: TAdVertexArray read FVertices write SetVertices;
Public property Indices: TAdIndexArray read FIndices write SetIndices;
Public property VertexCount: integer read FVertexCount;
Public property IndicesCount: integer read FIndicesCount;
Public property PrimitiveCount: integer read FPrimitiveCount write FPrimitiveCount;
Public property Texture: TAd2DTexture read FTexture write SetTexture;
Public property Matrix: TAdMatrix read FMatrix write FMatrix;
Public property TextureMatrix: TAdMatrix read FTextureMatrix write FTextureMatrix;

Description

Methods

Public procedure Update; virtual; abstract;

Pushes the data into the graphic system's format.

Public procedure Draw(ABlendMode:TAd2DBlendMode;ADrawMode:TAd2DDrawMode); virtual; abstract;

Draws the mesh.

Public procedure SetMaterial(AMaterial: PAd2dMaterial); virtual; abstract;

Sets the material data. If AMaterial is nil, the vertex colors are used as material source.

Properties

Public property Loaded: boolean read GetLoaded;

Returnes weather data is loaded.

Public property Vertices: TAdVertexArray read FVertices write SetVertices;

The vertices a mesh has.

Public property Indices: TAdIndexArray read FIndices write SetIndices;

The index buffer of a mesh.

Public property VertexCount: integer read FVertexCount;

Returnes the count of vertices.

Public property IndicesCount: integer read FIndicesCount;

Returnes the count of indices.

Public property PrimitiveCount: integer read FPrimitiveCount write FPrimitiveCount;

Set the amount of primitives here.

Public property Texture: TAd2DTexture read FTexture write SetTexture;

Set the texture of the mesh here. Set to nil, if you want no texture.

Public property Matrix: TAdMatrix read FMatrix write FMatrix;

The transformation matrix of the model

Public property TextureMatrix: TAdMatrix read FTextureMatrix write FTextureMatrix;

The texture matrix of the model

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:58