Class TCastle2DControl
Unit
Declaration
type TCastle2DControl = class(TCastleControlBase)
Description
Warning: this symbol is deprecated: use TCastleControlBase and create instance of TCastleViewport explicitly
Control to render 2D games with Castle Game Engine, with a default TCastle2DSceneManager
instance already created for you. This is the simplest way to render a game world with 2D controls above. Add your game stuff (like TCastle2DScene
) to the scene manager available in SceneManager property. Add the rest (like 2D user-inteface) to the TCastleControlBase.Controls property (from ancestor TCastleControlBase).
You can directly access the SceneManager and configure it however you like.
Note that if you don't plan to use the default SceneManager instance, then you should better create TCastleControlBase instead of this class.
The difference between this and TCastleControl is that this provides a scene manager descending from TCastle2DSceneManager
, which is a little more comfortable for typical 2D games. See TCastle2DSceneManager
description for details. But in principle, you can use any of these control classes to develop any mix of 3D or 2D game.
Hierarchy
- TObject
- TPersistent
- TComponent
- TLCLComponent
- TControl
- TWinControl
- TCustomOpenGLControl
- TCastleControlBase
- TCastle2DControl
Overview
Methods
![]() |
constructor Create(AOwner: TComponent); override; |
Properties
![]() |
property SceneManager: TControl2DSceneManager read FSceneManager; |
Description
Methods
![]() |
constructor Create(AOwner: TComponent); override; |
Properties
![]() |
property SceneManager: TControl2DSceneManager read FSceneManager; |
Generated by PasDoc 0.16.0.