Class TCastleWindow

Unit

Declaration

type TCastleWindow = class(TComponent)

Description

Window to render everything (3D or 2D) with Castle Game Engine.

You should use this with TCastleView, following https://castle-engine.io/views and the rest of CGE manual. All user interface creation and event handling should be inside some view.

By default, the window is filled with simple color from TCastleContainer.BackgroundColor.

If you're looking for an analogous Lazarus / Delphi component (that can be placed on a Lazarus / Delphi form) see TCastleControl component. Note that you cannot use both TCastleControl and TCastleWindow within the same application. See https://castle-engine.io/control_on_form .

Deprecated functionality: You can actually add any TCastleUserInterface controls to the Controls property, not only TCastleView descendants.

Source: window/castlewindow.pas (line 487).

Hierarchy

  • TObject
  • TPersistent
  • TComponent
  • TCastleWindow

Generated by PasDoc 0.17.0.snapshot.