Class TTitleGameState
Unit
a3dge.Common
Declaration
type TTitleGameState = class(TGameState)
Description
A simple title screen.
To use it, assign the object to the state machine (TA3DGEApplication.GameState. Then assing the bitmap to TTitleGameState.Bitmap and the TTitleGameState.PlayGameState name.
Note that this state will disable the OpenGL context and will use orthographic projection.
The default name of this state is TitleGameState.
Hierarchy
Overview
Methods
 |
constructor Create; override; |
 |
destructor Destroy; override; |
 |
procedure Enter (aEntity: TObject); override; |
 |
procedure Update (aEntity: TObject); override; |
 |
procedure Render; override; |
Properties
 |
property Bitmap: ALLEGRO_BITMAPptr read fTitleBitmap write SetBitmap; |
 |
property OwnsBitmap: Boolean read fOwnsBitmap write fOwnsBitmap; |
 |
property PlayGameState: AnsiString read fPlayGameState write fPlayGameState; |
Description
Methods
 |
constructor Create; override; |
Constructor.
|
 |
destructor Destroy; override; |
Destructor.
|
 |
procedure Enter (aEntity: TObject); override; |
Enters the game state.
|
 |
procedure Update (aEntity: TObject); override; |
Update the title screen.
|
 |
procedure Render; override; |
Render the title screen.
|
Properties
 |
property Bitmap: ALLEGRO_BITMAPptr read fTitleBitmap write SetBitmap; |
Bitmap used to render the title screen.
|
 |
property OwnsBitmap: Boolean read fOwnsBitmap write fOwnsBitmap; |
Does the state owns the bitmap. Default is False .
|
 |
property PlayGameState: AnsiString read fPlayGameState write fPlayGameState; |
State that plays the game.
|
Generated by PasDoc 0.15.0. Generated on 2025-07-31 11:41:01.
|