Gorilla.Viewport
Unit Gorilla.Viewport.pasClasses
- TGorillaRenderingCompare = class ( TRenderingCompare )
- TGorillaRenderingHelper = class ( TObject )
- TGorillaViewport = class ( TControl , IViewport3D )
Constants
- const GORILLA_FRAMERATE_FIXED_DEFAULT : Integer = $3C;
TGorillaRenderingCompare
Ancestors
Members
Fields
- protected FRenderingList :
TList<FMX.Controls3D.TControl3D>
- protected FComputeCameraPos :
Boolean
- protected FCameraPos :
TPoint3D
- protected FCameraDir :
TPoint3D
Methods
- public constructor Create ( ARenderingList : TList<FMX.Controls3D.TControl3D> ) ;
- public destructor Destroy ( ) ;
- protected function DoInternalCompare ( const Left : TControl3D; const Right : TControl3D ) : Integer ;
- public function Compare ( const Left : TControl3D; const Right : TControl3D ) : Integer ; override;
TGorillaRenderingHelper
Ancestors
Members
Methods
- public function Renderable ( const ACtrl : TControl3D; const AFrustum : TGorillaFrustum; const AComponentState : TComponentState; var ASceneBounds : TBoundingBox; const AFrustumCulling : Boolean; const ACheckVisibility : Boolean ) : Boolean ; class;
- public procedure UpdateSceneBounds ( const ACtrl : TControl3D; const AComponentState : TComponentState; var ASceneBounds : TBoundingBox ) ; class;
TGorillaViewport
Ancestors
Implements Interfaces
- IViewport3D
Members
Fields
- private FWatermark :
TBitmap
- private FBitmap :
TBitmap
- private FTexture :
TTexture
- protected FAlbedoTexture :
TTexture
- protected FAlphaTexture :
TTexture
- protected FPositionTexture :
TTexture
- protected FDeferredCompositeCtrl :
TObject
- protected FDeferredCompositePass :
TRenderPass
- protected FContext :
TContext3D
- protected FCamera :
TCamera
- protected FDesignCamera :
TCamera
- protected FDesignCameraZ :
TDummy
- protected FDesignCameraX :
TDummy
- protected FFill :
TAlphaColor
- protected FMultisample :
TMultisample
- protected FUsingDesignCamera :
Boolean
- protected FDrawing :
Boolean
- protected FRenderingList :
TList<FMX.Controls3D.TControl3D>
- protected FShadowList :
TList<FMX.Controls3D.TControl3D>
- protected FScaleChangedId :
Integer
- protected FLights :
TList<FMX.Controls3D.TLight>
- protected FWinHandle :
TWindowHandle
- protected FDepthStencil :
Boolean
- protected FRenderBitmap :
TBitmap
- protected FAutoRedisplay :
Boolean
- protected FInvalidated :
Boolean
- protected FRenderPasses :
TObjectList<System.Classes.TComponent>
- protected FTimerService :
IFMXTimerService
- protected FRenderTime :
Double
- protected FRenderCycles :
Integer
- protected FFPS :
Double
- protected FUseFixedFrameRate :
Boolean
- protected FFixedFrameRate :
Integer
- protected FFrameRateStep :
Integer
- protected FLatestRenderTime :
Int64
- protected FManualRendering :
Boolean
- protected FDoManualRender :
Boolean
- protected FHighRes :
Boolean
- protected FLock :
TCriticalSection
- protected FSceneBounds :
TBoundingBox
- protected FFrustum :
TGorillaFrustum
- protected FFrustumCulling :
Boolean
- protected FUpdateFrustum :
Boolean
- protected FFog :
TGorillaFogSettings
- public ControlsOpen :
Cardinal
Methods
- public constructor Create ( AOwner : TComponent ) ;
- public destructor Destroy ( ) ;
- protected function GetFog ( ) : Boolean ; virtual;
- protected procedure SetFog ( const AValue : Boolean ) ; virtual;
- protected function GetFogMode ( ) : TGorillaFogMode ; virtual;
- protected procedure SetFogMode ( const AValue : TGorillaFogMode ) ; virtual;
- protected function GetFogDensity ( ) : Single ; virtual;
- protected procedure SetFogDensity ( const AValue : Single ) ; virtual;
- protected function GetFogStart ( ) : Single ; virtual;
- protected procedure SetFogStart ( const AValue : Single ) ; virtual;
- protected function GetFogEnd ( ) : Single ; virtual;
- protected procedure SetFogEnd ( const AValue : Single ) ; virtual;
- protected function GetFogColor ( ) : TAlphaColorF ; virtual;
- protected procedure SetFogColor ( AValue : TAlphaColorF ) ; virtual;
- protected procedure ApplyFogSettings
(
)
;
virtual;
Applies all fog settings to deferred composite pass
- protected procedure SetFixedFrameRate ( AValue : Integer ) ;
- protected function GetFPS ( ) : Double ;
- protected function GetFill ( ) : TAlphaColor ;
- protected procedure SetFill ( AValue : TAlphaColor ) ;
- protected procedure SetMultisample ( const Value : TMultisample ) ;
- protected function GetSmooth ( ) : Boolean ;
- protected procedure SetSmooth ( const AValue : Boolean ) ;
- protected procedure SetHighRes ( AValue : Boolean ) ;
- protected procedure SetUsingDesignCamera ( const Value : Boolean ) ;
- protected procedure ScaleChangedHandler ( const Sender : TObject; const Msg : TMessageBase ) ;
- protected function GetCurrentCamera ( ) : TCamera ;
- protected procedure CollectRenderingList ( ) ; virtual;
- protected procedure DoRunRenderingPipeline ( const ARenderContext : PRenderContext ) ; virtual;
- protected procedure DoRenderProc ( ) ; virtual;
- protected procedure Paint ( ) ; override;
- protected procedure Resize ( ) ; override;
- protected procedure Notification ( AComponent : TComponent; Operation : TOperation ) ; override;
- protected function FindTarget ( P : TPointF; const Data : TDragObject ) : IControl ; override;
- protected procedure DoAddObject ( const AObject : TFmxObject ) ; override;
- protected procedure DoRemoveObject ( const AObject : TFmxObject ) ; override;
- protected function GetObject ( ) : TFmxObject ;
- protected function GetContext ( ) : TContext3D ;
- protected function GetCamera ( ) : TCamera ;
- protected function GetLightCount ( ) : Integer ;
- protected function GetLight ( Index : Integer ) : TLight ;
- protected procedure AddLight ( const ALight : TLight ) ;
- protected procedure RemoveLight ( const ALight : TLight ) ;
- protected function GetUsingDesignCamera ( ) : Boolean ;
- protected function GetViewportScale ( ) : Single ;
- protected procedure SetCamera ( const ACamera : TCamera ) ;
- protected procedure NeedRender ( ) ;
- protected procedure DoScaleChanged ( ) ; virtual;
- public procedure BeginUpdate ( ) ; override;
- public procedure EndUpdate ( ) ; override;
- public procedure EndUpdateWithoutInvalidate ( ) ; virtual;
- public procedure Lock ( ) ; virtual;
- public procedure Unlock ( ) ; virtual;
- public procedure Invalidate ( ) ;
- public procedure RenderRenderList ( const ARenderContext : PRenderContext ) ;
- public procedure RenderRenderListByMode
(
AOpaque :
Boolean
)
;
Only render opaque (true) or translucent (false) elements. This rendering routine is used by weighted blended order independent transparency rendering.
- public procedure RenderManual ( ) ; virtual;
- public procedure RebuildRenderingList ( ) ; virtual;
- public procedure AddRenderPass ( const AController : TComponent ) ; virtual;
- public procedure UpdateRenderPassesOnResize ( ) ; virtual;
- public procedure UpdateRenderPasses ( ) ; virtual;
- public function ScreenToWorld ( const APoint2D : TPointF ) : TPoint3D ; virtual;
- public function WorldToScreen ( const APoint3D : TPoint3D ) : TPointF ; virtual;
- public function ObjectAtPoint ( P : TPointF ) : IControl ; override;
- public function RayCastIntersect ( const P : TPointF ) : TControl3D ; virtual;
Properties
- public Context : TContext3D
- public CurrentCamera : TCamera
- public FPS : Double
Returns the potentially frames per second count. This is not a value representing the real output FPS. This only measures the performances in delphi rendering mechanism.
read GetFPS - public ViewportScale : Single
- public Smooth : Boolean
- public SceneBounds : TBoundingBox
- public CurrentFrustum : TGorillaFrustum
- public AlphaTexture : TTextureread FAlphaTexture
- public PositionTexture : TTextureread FPositionTexture
- published ManualRendering : Boolean
manual rendering is a more effective method than intuitive rendering intuive rendering will be performed on every change of a TControl3D by manual rendering we can decide when the viewport renders.
read FManualRendering
write FManualRendering - published UseFixedFrameRate : Boolean
Get or set if you want to use a fixed intended framerate.
read FUseFixedFrameRate
write FUseFixedFrameRate - published FixedFrameRate : Integer
Get or set fixed frame rate value. Only affects rendering if UseFixedFrameRate is enabled.
read FFixedFrameRate
write SetFixedFrameRate - published FrustumCulling : Boolean
- published HighRes : Boolean
- published Fog : Boolean
- published FogMode : TGorillaFogMode
Get or set fog computation mode. Allowed modes are: linear, exp and exp2.
read GetFogMode
write SetFogMode - published FogDensity : Single
- published FogStart : Single
- published FogEnd : Single
- published FogColor : TAlphaColorF
- published Align : TAlignLayout
- published Anchors : TAnchors
- published Camera : TCamera
- published ClipChildren : Boolean
- published ClipParent : Boolean
- published Color : TAlphaColor
- published Cursor : TCursor
- published DragMode : TDragMode
- published EnableDragHighlight : Boolean
- published Enabled : Boolean
- published Height : Single
- published HitTest : Boolean
- published Locked : Boolean
- published Padding : TBounds
- published Multisample : TMultisample
- published Margins : TBounds
- published Opacity : Single
- published PopupMenu : TCustomPopupMenu
- published Position : TPosition
- published RotationAngle : Single
- published RotationCenter : TPosition
- published Scale : TPosition
- published Size : TControlSize
- published UsingDesignCamera : Boolean
- published Visible : Boolean
- published Width : Single