Unit CastleArraysGenerator

Description

Generating TGeometryArrays for VRML/X3D shapes (TArraysGenerator).

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TArraysGenerator Generate TGeometryArrays for a VRML/X3D shape.

Functions and Procedures

function GetArraysGenerator(AGeometry: TAbstractGeometryNode): TArraysGeneratorClass;

Types

TRadianceTransferFunction = function (Node: TAbstractGeometryNode; RadianceTransfer: PVector3; const RadianceTransferCount: Cardinal): TVector3 of object;
TVertexColorFunction = procedure (var Color: TVector3; Shape: TShape; const VertexPosition: TVector3; VertexIndex: Integer) of object;
TArraysGeneratorClass = class of TArraysGenerator;

Description

Functions and Procedures

function GetArraysGenerator(AGeometry: TAbstractGeometryNode): TArraysGeneratorClass;

TArraysGenerator class suitable for given geometry. Returns Nil if not suitable generator for this node, which means that this node cannot be rendered through TGeometryArrays.

Types

TRadianceTransferFunction = function (Node: TAbstractGeometryNode; RadianceTransfer: PVector3; const RadianceTransferCount: Cardinal): TVector3 of object;
 
TVertexColorFunction = procedure (var Color: TVector3; Shape: TShape; const VertexPosition: TVector3; VertexIndex: Integer) of object;

Callback used by TRenderingAttributes.OnVertexColor. Passed here VertexPosition is in local coordinates (that is, local of this object, multiply by State.Transform to get scene coords). VertexIndex is the direct index to Node.Coordinates.

TArraysGeneratorClass = class of TArraysGenerator;
 

Generated by PasDoc 0.15.0.