Gorilla.Material.Atlas
Unit Gorilla.Material.Atlas.pasClasses
- TGorillaAtlasMaterial = class ( TGorillaReferenceMaterial )
- TGorillaAtlasMaterialSource = class ( TGorillaReferenceMaterialSource )
- TGorillaSharedAtlasMaterial = class ( TGorillaSharedMaterial )
- TGorillaSharedAtlasMaterialSource = class ( TGorillaSharedMaterialSource )
TGorillaAtlasMaterial
Ancestors
Members
TGorillaAtlasMaterialSource
A atlas materials source is a reference to a shared material source.
Ancestors
Members
TGorillaSharedAtlasMaterial
Ancestors
Members
Fields
- protected FCurrentTextureIndex :
Integer
- protected FAtlasRowCount :
Word
- protected FAtlasColCount :
Word
- protected FFrameWidth :
Word
- protected FFrameHeight :
Word
Methods
- public constructor Create ( const ASource : TGorillaSharedMaterialSource ) ;
- public destructor Destroy ( ) ;
- protected function GetAtlasColCount ( ) : Word ;
- protected procedure SetAtlasColCount ( const AValue : Word ) ;
- protected function GetAtlasRowCount ( ) : Word ;
- protected procedure SetAtlasRowCount ( const AValue : Word ) ;
- protected function GetFrameHeight ( ) : Word ;
- protected procedure SetFrameHeight ( const AValue : Word ) ;
- protected function GetFrameWidth ( ) : Word ;
- protected procedure SetFrameWidth ( const AValue : Word ) ;
- protected procedure DoUpdateShaderDefines ( ) ;
- protected procedure DoCreateVertexShader ( ) ; override;
- protected procedure DoCreateFragmentShader ( ) ; override;
- protected procedure DoSetupFragmentShader ( ) ; override;
- protected procedure DoApply ( const Context : TContext3D ) ; override;
Properties
- public AtlasRowCount : Word
- public AtlasColCount : Word
- public FrameWidth : Word
Defines the width of each frame in pixels. The width has to be a potency of 2. For example: 16, 32, 64, 128, ...
read GetFrameWidth
write SetFrameWidth - public FrameHeight : Word
Defines the height of each frame in pixels. The height has to be a potency of 2. For example: 16, 32, 64, 128, ...
read GetFrameHeight
write SetFrameHeight
TGorillaSharedAtlasMaterialSource
Ancestors
Members
Methods
- public constructor Create ( AOwner : TComponent ) ;
- public destructor Destroy ( ) ;
- protected function CreateMaterial ( ) : TMaterial ; override;
- protected function GetAtlasColCount ( ) : Word ;
- protected procedure SetAtlasColCount ( const AValue : Word ) ;
- protected function GetAtlasRowCount ( ) : Word ;
- protected procedure SetAtlasRowCount ( const AValue : Word ) ;
- protected function GetFrameHeight ( ) : Word ;
- protected procedure SetFrameHeight ( const AValue : Word ) ;
- protected function GetFrameWidth ( ) : Word ;
- protected procedure SetFrameWidth ( const AValue : Word ) ;
Properties
- published AtlasRowCount : Word
- published AtlasColCount : Word
- published FrameWidth : Word
Defines the width of each frame in pixels. The width has to be a potency of 2. For example: 16, 32, 64, 128, ...
read GetFrameWidth
write SetFrameWidth - published FrameHeight : Word
Defines the height of each frame in pixels. The height has to be a potency of 2. For example: 16, 32, 64, 128, ...
read GetFrameHeight
write SetFrameHeight - published Texture : TBitmap