Class TTexturedPolyhedron

Unit

Declaration

type TTexturedPolyhedron = class(TPolyhedron)

Description

A textured polyhedron.

If the model doesn't use textures, TPolyhedron may be a tad faster and use less memory.

Remember that it needs texture coordinates for all vertices even if it doesn't use textures.

Hierarchy

Overview

Methods

Protected function GetTexCoordList: TTexCoordList;
Public procedure SetNumTexCoords (const aNum: Integer);
Public procedure SetTexCoordList (aCoords: TTexCoordList);
Public PROCEDURE Render (CONST aObject: TObject3D); OVERRIDE;

Properties

Public property NumTexCoords: Integer read GetNumTexCoords;
Public property TexCoords[constaNdx:integer]: TTexCoord read GetTexCoord write SetTexCoord;

Description

Methods

Protected function GetTexCoordList: TTexCoordList;

Get a copy of the texture coordinates.

This is useful as access using the TexCoords property might be slightly slower, specially when accessing to a lot of coordinates.

See also
TTexturedPolyhedron.SetTexCoordList
Assign a list of texture coordinates.
TTexturedPolyhedron.NumTexCoords
Number of texture coordinates.
TTexturedPolyhedron.TexCoords
Provides access to the texture coordinates.
Public procedure SetNumTexCoords (const aNum: Integer);

Set number of texture coordinates used by the polyhedron.

See also
TTexturedPolyhedron.SetTexCoordList
Assign a list of texture coordinates.
TTexturedPolyhedron.GetTexCoordList
Get a copy of the texture coordinates.
TTexturedPolyhedron.NumTexCoords
Number of texture coordinates.
TTexturedPolyhedron.TexCoords
Provides access to the texture coordinates.
Public procedure SetTexCoordList (aCoords: TTexCoordList);

Assign a list of texture coordinates.

This will replace all texture coordinates with the given list.

See also
TTexturedPolyhedron.GetTexCoordList
Get a copy of the texture coordinates.
TTexturedPolyhedron.NumTexCoords
Number of texture coordinates.
TTexturedPolyhedron.TexCoords
Provides access to the texture coordinates.
Public PROCEDURE Render (CONST aObject: TObject3D); OVERRIDE;

Renders the model.

Properties

Public property NumTexCoords: Integer read GetNumTexCoords;

Number of texture coordinates.

See also
TTexturedPolyhedron.TexCoords
Provides access to the texture coordinates.
TTexturedPolyhedron.SetNumTexCoords
Set number of texture coordinates used by the polyhedron.
Public property TexCoords[constaNdx:integer]: TTexCoord read GetTexCoord write SetTexCoord;

Provides access to the texture coordinates.

See also
TTexturedPolyhedron.NumTexCoords
Number of texture coordinates.
TTexturedPolyhedron.SetNumTexCoords
Set number of texture coordinates used by the polyhedron.
TTexturedPolyhedron.SetTexCoordList
Assign a list of texture coordinates.

Generated by PasDoc 0.15.0. Generated on 2025-07-31 11:41:01.