Castle Game Engine: CastleArraysGenerator

# Unit CastleArraysGenerator
Description | Uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables
## Description Generating TGeometryArrays for VRML/X3D shapes (TArraysGenerator). ## Uses CastleShapes X3DNodes X3DFields CastleUtils CastleGeometryArrays CastleVectors ## 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: PVector3Single; const RadianceTransferCount: Cardinal): TVector3Single of object;`
`TVertexColorFunction = procedure (var Color: TVector3Single; Shape: TShape; const VertexPosition: TVector3Single; 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: PVector3Single; const RadianceTransferCount: Cardinal): TVector3Single of object;`
`TVertexColorFunction = procedure (var Color: TVector3Single; Shape: TShape; const VertexPosition: TVector3Single; 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.13.0 on 2015-06-15 04:43:08