Gorilla.Context.Rendering
Unit Gorilla.Context.Rendering.pasClasses
- TRenderPass = class ( TObject )
- TRenderPasses = class ( {System.Generics.Collections}TDictionary<System.string,Gorilla.Context.Rendering.TRenderPass> )
Records
- record TGorillaFogSettings
- record TRenderContext
Enumerations
- enum TGorillaFogMode = ( fmLinear, fmExp, fmExp2 ) ;
- enum TRenderPassType = ( Pre, Intermediate, Post ) ;
- enum TRenderPassMethod = ( RenderListToFBO, RectToFBO ) ;
- enum TRenderPassRenderingProc = ( DefaultRendering, ListRendering ) ;
Constants
- const GORILLA_FOG_COLOR_DEFAULT : TAlphaColorF = ;
Mics. types
- type PGorillaFogSettings = pointer to TGorillaFogSettings;
- type PRenderContext = pointer to TRenderContext;
TRenderPassMethod
The render pass method defines what is going to be rendered and where to.
Remarks
RenderListToFBO - will render all objects in renderlist with the provided render pass material. The output will be written to the FBO of your renderpass.
RectToFBO - will render on basis of the latest context FBO or on a attached renderpass output. The output will be written to the FBO of your renderpass.
TRenderPassRenderingProc
Especially render passes may need different rendering techniques. So you can choose between: default and list rendering Default rendering uses multiple steps for rendering opaque and translucent elements and combining those afterwards. While list rendering is a simple rendering of all elements in renderlist. No post-processing renderpass will be needed, but this may lead to problems with transparency.
TGorillaFogSettings
TRenderPass
Ancestors
Members
Fields
- protected FId :
string
- protected FType :
TRenderPassType
- protected FMethod :
TRenderPassMethod
- protected FContext :
TContext3D
- protected FController :
TObject
- protected FOldViewport :
- protected FOnBeginRendering :
TOnRenderingPass
- protected FOnEndRendering :
TOnRenderingPass
Methods
- public constructor Create ( const AContext : TContext3D; const AController : TObject ) ;
- public destructor Destroy ( ) ;
- protected function GetEnabled ( ) : Boolean ;
- protected procedure SetEnabled ( const AValue : Boolean ) ;
- public function BeginScene ( ) : Boolean ;
- public procedure EndScene ( ) ;
- public function GetIterations ( ) : Integer ;
- public function GetControllerShader ( ) : TObject ;
Properties
TRenderPasses
Ancestors
Members
Fields
Methods
- public constructor Create ( const AContext : TContext3D ) ;
- public destructor Destroy ( ) ;
- protected procedure DoOnValueNotify ( ASender : TObject; const AItem : TRenderPass; AAction : TCollectionNotification ) ;
- public function GetPreProcessingPasses ( ) : TArray<Gorilla.Context.Rendering.TRenderPass> ;
- public function GetPostProcessingPasses ( ) : TArray<Gorilla.Context.Rendering.TRenderPass> ;