Class TBillboard
Unit
a3dge.Model3D
Declaration
type TBillboard = class(TModel3D)
Description
A billboarding object.
A billboard model consists in a single texture that always faces the camera.
The Position of the object refers to the central point of the bitmap.
By default, the TModel3D.Transparent property is set to True .
See also
- TBillboard.StandUp
- Is it a stand-up.
Hierarchy
Overview
Methods
Properties
 |
property Width: GLfloat read GetWidth write SetWidth; |
 |
property Height: GLfloat read GetHeight write SetHeight; |
 |
property OwnsTexture: Boolean read fOwnsTexture write fOwnsTexture; |
 |
property Texture: ALLEGRO_BITMAPptr read fTexture write SetTexture; |
 |
property StandUp: Boolean read fStandUp write fStandUp; |
 |
property NumFrames: Integer read fNumFrames write SetNumFrames; |
Description
Methods
 |
constructor Create; override; |
Constructor.
|
 |
destructor Destroy; override; |
Destructor.
If OwnsTexture is True , it will destroy the texture.
|
 |
function BoundingSphereRadius: Single; override; |
Calculate the bounding sphere radius of the model.
It uses TBillboard.Width.
|
Properties
 |
property OwnsTexture: Boolean read fOwnsTexture write fOwnsTexture; |
Should the object free the Texture when it's destroyed?
OwnsTexture determines whether the Texture used should be freed when a new one is assigned or when the object is destroyed. If the property is True then it is freed. If the property is False the texture isn't freed.
It defaults to True .
See also
- TBillboard.Texture
- The bitmap.
- TBillboard.Destroy
- Destructor.
|
 |
property Texture: ALLEGRO_BITMAPptr read fTexture write SetTexture; |
The bitmap.
On animated billboards the texture should contain all frames in a strip.
See also
- TBillboard.Destroy
- Destructor.
- TBillboard.OwnsTexture
- Should the object free the
Texture when it's destroyed?
OwnsTexture determines whether the Texture used should be freed when a new one is assigned or when the object is destroyed.
- TBillboard.NumFrames
- Set the number of frames.
|
 |
property StandUp: Boolean read fStandUp write fStandUp; |
Is it a stand-up.
If True , it will keep the Y axis up. If False it will face the camera no matter the angle.
Default is True .
|
 |
property NumFrames: Integer read fNumFrames write SetNumFrames; |
Set the number of frames.
If it's greater than 1, the Render method will get the TObject3D.Frame value to render a single frame.
Default value is 1 .
See also
- TBillboard.Texture
- The bitmap.
|
Generated by PasDoc 0.15.0. Generated on 2025-07-31 11:41:01.
|