Description | Hierarchy | Fields | Methods | Properties |
type TMesh = class(TReferenceCounted)
Class which holds the geometry of an object. An TMesh
is nothing more than a collection of some mesh buffers (TMeshBuffer). A mesh is usually added to an TMeshSceneNode in order to be rendered.
![]() |
function GetMeshBuffer(Index: LongWord): TMeshBuffer; overload; inline; |
![]() |
function GetMeshBuffer(Material: PMaterial): TMeshBuffer; overload; inline; |
![]() |
procedure SetDirty(Buffer: TBufferType); inline; |
![]() |
procedure SetHardwareMappingHint(Hint: THardwareMappingHint; Buffer: TBufferType); inline; |
![]() |
procedure SetMaterialFlag(Flag: TMaterialFlag; NewValue: Boolean); inline; |
![]() |
property BoundingBox: TBoundingBox read GetBoundingBox Write SetBoundingBox; |
![]() |
property MeshBufferCount: LongWord read GetMeshBufferCount; |
![]() |
function GetMeshBuffer(Index: LongWord): TMeshBuffer; overload; inline; |
Returns a mesh buffer by index. Parameters
ReturnsThe mesh buffer or nil if there is no such mesh buffer. |
![]() |
function GetMeshBuffer(Material: PMaterial): TMeshBuffer; overload; inline; |
Returns a mesh buffer which fits a material. Parameters
ReturnsThe mesh buffer or nil if there is no such mesh buffer. |
![]() |
procedure SetDirty(Buffer: TBufferType); inline; |
Flag the meshbuffer as changed, reloads hardware buffers. |
![]() |
procedure SetHardwareMappingHint(Hint: THardwareMappingHint; Buffer: TBufferType); inline; |
Set the hardware mapping hint. This methods allows to define optimization hints for the hardware. This enables, e.g., the use of hardware buffers on pltforms that support this feature. This can lead to noticeable performance gains. |
![]() |
procedure SetMaterialFlag(Flag: TMaterialFlag; NewValue: Boolean); inline; |
Sets a flag of all contained materials to a new value. Parameters
|
![]() |
property BoundingBox: TBoundingBox read GetBoundingBox Write SetBoundingBox; |
The axis aligned bounding box of the mesh. |
![]() |
property MeshBufferCount: LongWord read GetMeshBufferCount; |
The number of buffers in the mesh. |