Class TWorldGameState
Unit
a3dge.Common
Declaration
type TWorldGameState = class(TGameState)
Description
A game state that renders the 3D World.
This just renders the world defined by TA3DGEApplication.World3D
See also
- TWorldHUDGameState
- A game state that renders the 3D World and a 2D HUD.
Hierarchy
Overview
Methods
 |
procedure Enter (aEntity: TObject); override; |
 |
procedure Render; override; |
Description
Methods
 |
procedure Enter (aEntity: TObject); override; |
Enters the game state.
This will set the OpenGL context and the perspective projection.
See also
- TWorldGameState.Render
- Render the title screen.
- TWorld3D.SetOpenGLContext
- Enable OpenGL context, setting lighting, face culling, depth-buffer and 2D textures.
- TCamera.SetPerspectiveProjection
- Change the camera projection matrix for perspective projection.
|
 |
procedure Render; override; |
Render the title screen.
Note this method assumes that OpenGL context and perspective projection are set. If you change this remember to restore them or the rendering will be affected.
See also
- TA3DGEApplication.World3D
- Global reference to the 3D world.
- TWorldGameState.Enter
- Enters the game state.
|
Generated by PasDoc 0.15.0. Generated on 2025-07-31 11:41:01.
|