| 1 |
{ |
| 2 |
Copyright 2009-2022 Michalis Kamburelis. |
| 3 |
|
| 4 |
This file is part of "Castle Game Engine". |
| 5 |
|
| 6 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 7 |
included in this distribution, for details about the copyright. |
| 8 |
|
| 9 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 12 |
|
| 13 |
---------------------------------------------------------------------------- |
| 14 |
} |
| 15 |
|
| 16 |
{ Scene manager (TCastleSceneManager) and viewport (TCastleViewport) classes. } |
| 17 |
unit CastleSceneManager deprecated 'use CastleViewport'; |
| 18 |
|
| 19 |
{$I castleconf.inc} |
| 20 |
|
| 21 |
interface |
| 22 |
|
| 23 |
uses SysUtils, |
| 24 |
CastleViewport, CastleScene, CastleInputs; |
| 25 |
|
| 26 |
type |
| 27 |
TCastleViewport = CastleViewport.TCastleViewport; |
| 28 |
TCastleAbstractViewport = CastleViewport.TCastleViewport; |
| 29 |
{$warnings off} // only to keep deprecated working |
| 30 |
TCastleSceneManager = CastleViewport.TCastleSceneManager; |
| 31 |
TCastleAbstractViewportList = CastleViewport.TCastleViewportList; |
| 32 |
{$warnings on} |
| 33 |
TRender3DEvent = CastleViewport.TRenderOnePassEvent; |
| 34 |
TProjectionEvent = CastleViewport.TProjectionEvent; |
| 35 |
TUseHeadlight = CastleScene.TUseHeadlight; |
| 36 |
|
| 37 |
EViewportSceneManagerMissing = class(Exception) |
| 38 |
end deprecated 'this is never raised anymore'; |
| 39 |
|
| 40 |
const |
| 41 |
hlOn = CastleScene.hlOn; |
| 42 |
hlOff = CastleScene.hlOff; |
| 43 |
hlMainScene = CastleScene.hlMainScene; |
| 44 |
|
| 45 |
function GetInput_Interact: TInputShortcut; |
| 46 |
procedure SetInput_Interact(const Value: TInputShortcut); |
| 47 |
{$ifdef FPC} |
| 48 |
property Input_Interact: TInputShortcut read GetInput_Interact write SetInput_Interact; |
| 49 |
{$endif} |
| 50 |
|
| 51 |
implementation |
| 52 |
|
| 53 |
function GetInput_Interact: TInputShortcut; |
| 54 |
begin |
| 55 |
Result := CastleViewport.Input_Interact; |
| 56 |
end; |
| 57 |
|
| 58 |
procedure SetInput_Interact(const Value: TInputShortcut); |
| 59 |
begin |
| 60 |
CastleViewport.Input_Interact := Value; |
| 61 |
end; |
| 62 |
|
| 63 |
end. |