Gorilla.Material.Layered
Unit Gorilla.Material.Layered.pasClasses
- TGorillaLayeredMaterial = class ( TCustomMaterial )
- TGorillaLayeredMaterialItem = class ( TCollectionItem )
- TGorillaLayeredMaterialCollection = class ( TOwnedCollection )
- TGorillaLayeredMaterialSource = class ( TMaterialSource )
- TLayeredTextureMaterialSource = class ( TMaterialSource )
TGorillaLayeredMaterial
The default layered material which will render a black color for the complete buffer.
Ancestors
Members
TGorillaLayeredMaterialItem
A single sub material collection entry.
Ancestors
Members
Fields
Properties
TGorillaLayeredMaterialCollection
The material collections holds all renderable sub materials. All materials in this collection will be rendered in order!
Ancestors
TGorillaLayeredMaterialSource
A LayeredMaterialSource is a container of multiple sub materials.
Remarks
It is important that those sub materials do not clear the context, otherwise it will produce unexpected behaviour. If the materials collection is empty, the renderer will render the complete buffer with black color. To add sub materials simply add those to the material collection: SubMaterialEntry := MyLayeredMaterialSource.Materials.Add(); SubMaterialEntry.Material := MySubMaterialSource;Ancestors
Members
Fields
Methods
- public constructor Create ( AOwner : TComponent ) ;
- public destructor Destroy ( ) ;
- protected function CreateMaterial ( ) : TMaterial ; override;
Properties
- published Materials : TGorillaLayeredMaterialCollection
Returns the collection of material items with references to the stacked material sources.
read FMaterials
write FMaterials
TLayeredTextureMaterialSource
Use this texture material source as first texture to be rendered.