Class TCastleControl
Unit
Declaration
type TCastleControl = class(TCustomOpenGLControl)
Description
Control to render everything (3D or 2D) with Castle Game Engine.
See https://castle-engine.io/control_on_form for a documentation how to use this.
You can use this with TCastleView, following https://castle-engine.io/control_on_form instructions. In this case, all user interface creation and event handling should be inside some view.
You can also add any user-interface controls to the Controls property. User-interface controls are any TCastleUserInterface descendants, like TCastleImageControl or TCastleButton or TCastleViewport. Use their events like TCastleUserInterface.OnPress to react to input. Use event TCastleUserInterface.OnUpdate to do something continuously.
By default, the control is filled with simple color from TCastleContainer.BackgroundColor.
This control is an alternative to rendering things using TCastleWindow. Note that you cannot use both TCastleControl and TCastleWindow within the same application.
Source: lcl/castlecontrol.pas (line 169).
Hierarchy
- TObject
- TPersistent
- TComponent
- TLCLComponent
- TControl
- TWinControl
- TCustomOpenGLControl
- TCastleControl
Generated by PasDoc 0.17.0.snapshot.