Gorilla.Renderer
Unit Gorilla.Renderer.pasClasses
- TRenderer = class ( TObject )
- TCompositeRenderer = class ( TRenderer )
- TForwardRenderer = class ( TCompositeRenderer )
- TDeferredRenderer = class ( TCompositeRenderer )
Enumerations
- enum TRendererFlag = ( IgnoreRenderTargets, IgnoreCompositeCtrl ) ;
Constants
TRenderer
Basis renderer class for all types of renderer.
Ancestors
Members
Fields
- protected FId :
string
- protected FFlags :
TRendererFlags
- protected FMultisample :
TMultisample
- protected FSharedContext :
TContext3D
- protected FRenderTargets :
TRenderTargets
- protected FCompositeTexture :
TGorillaTextureBitmap
- protected FOwner :
TComponent
- protected FSize :
TPoint
- protected FScale :
Single
- protected FOnCreateCompositeTexture :
TOnRendererCreateCompositeTexture
Methods
- public constructor Create ( AId : string; AOwner : TComponent; AFlags : TRendererFlags = [] ; ACompositeTextureEvent : TOnRendererCreateCompositeTexture = nil ) ;
- public destructor Destroy ( ) ;
- protected function GetDefaultFrameBuf ( ) : TFrameBufferObject ;
- protected function GetTranslucentBuf ( ) : TFrameBufferObject ;
- protected procedure SetSize ( const AValue : TPoint ) ; virtual;
- protected procedure SetScale ( const AValue : Single ) ; virtual;
- protected procedure DoResize ( const ASize : TPoint; const AScale : Single ) ; virtual;
- protected procedure DoCreateContext ( ) ;
- protected procedure DoDestroyContext ( ) ;
- protected function DoCreateCompositeTexture ( ) : TTexture ; virtual;
- protected procedure DoCreateTextures ( ) ; virtual;
- protected procedure DoDestroyTextures ( ) ; virtual;
- protected procedure DoApply ( ) ; virtual;
- public procedure Resize ( const ASize : TPoint; const AScale : Single ) ;
- public procedure Apply ( ) ; virtual;
- public procedure Reset ( ) ; virtual;
- public procedure BeginMainRenderPass ( ACamera : TMatrix3D; AAngleOfView : Single; AFill : TAlphaColor; ADepth : Single ) ; virtual;
- public procedure EndMainRenderPass ( ) ; virtual;
- public function BeginOpaqueRendering ( ) : Boolean ; virtual;
- public procedure EndOpaqueRendering ( ) ; virtual;
- public function BeginTranslucentRendering ( ) : Boolean ; virtual;
- public procedure EndTranslucentRendering ( ) ; virtual;
Properties
- public Id : stringread FId
- public Flags : TRendererFlagsread FFlags
- public SharedContext : TContext3Dread FSharedContext
- public CompositeTexture : TGorillaTextureBitmapread FCompositeTexture
- public RenderTargets : TRenderTargets
- public Owner : TComponent
- public Size : TPoint
- public Scale : Single
- public DefaultFrameBuf : TFrameBufferObjectread GetDefaultFrameBuf
- public TranslucentBuf : TFrameBufferObjectread GetTranslucentBuf
TCompositeRenderer
Basis renderer for forward and deferred renderer with WBOIT 3-phase rendering.
Ancestors
Members
Fields
- protected FAlbedoTexture :
TTexture
- protected FTranslucentAlbedoTexture :
TTexture
- protected FAlphaTexture :
TTexture
- protected FPositionTexture :
TTexture
- protected FDeferredCompositeCtrl :
TObject
- protected FDeferredCompositePass :
TRenderPass
Methods
- public constructor Create ( AId : string; AOwner : TComponent; AFlags : TRendererFlags = [] ; ACompositeTextureEvent : TOnRendererCreateCompositeTexture = nil ) ;
- public destructor Destroy ( ) ;
- protected procedure DoResize ( const ASize : TPoint; const AScale : Single ) ; override;
- protected procedure DoCreateTextures ( ) ; override;
- protected procedure DoDestroyTextures ( ) ; override;
- public function BeginOpaqueRendering ( ) : Boolean ; override;
- public procedure EndOpaqueRendering ( ) ; override;
- public procedure Composite ( const ARenderContext : PRenderContext ) ; virtual;
Properties
TForwardRenderer
The old forward renderer with simple albedo, translucent-albedo and alpha texture.
Ancestors
Members
TDeferredRenderer
The new deferred renderer with multiple color channels combined together in a final composite render pass (embedded).
Ancestors
Members
Fields
- protected FNormalsTexture :
TTexture
- protected FComponentsTexture :
TTexture
- protected FAmbientTexture :
TTexture
- protected FEmissiveTexture :
TTexture
- protected FSpecularTexture :
TTexture
Methods
- public constructor Create ( AId : string; AOwner : TComponent; AFlags : TRendererFlags = [] ; ACompositeTextureEvent : TOnRendererCreateCompositeTexture = nil ) ;
- public destructor Destroy ( ) ;
- protected procedure DoResize ( const ASize : TPoint; const AScale : Single ) ; override;
- protected procedure DoCreateTextures ( ) ; override;
- protected procedure DoDestroyTextures ( ) ; override;
- protected procedure DoApply ( ) ; override;
- public procedure Composite ( const ARenderContext : PRenderContext ) ; override;