Minimal viewport for assisting with taking screenshots (also used within a plugin)
更多...
|
| virtual void | BeginRenderFrame (FRHICommandListImmediate &RHICmdList) override |
| | Starts a new rendering frame. 更多...
|
| |
|
virtual void | DeferInvalidateHitProxy () override |
| | Invalidates the viewport's cached hit proxies at the end of the frame.
|
| |
| virtual void | EndRenderFrame (FRHICommandListImmediate &RHICmdList, bool bPresent, bool bLockToVsync) override |
| | Ends a rendering frame. 更多...
|
| |
| virtual FCanvas * | GetDebugCanvas () override |
| |
| virtual FString | GetFriendlyName () const override |
| |
| virtual FViewportFrame * | GetViewportFrame () override |
| | Retrieves the interface to the viewport's frame, if it has one. 更多...
|
| |
| virtual void | InitDynamicRHI () override |
| | Initializes the dynamic RHI resource and/or RHI render target used by this resource. 更多...
|
| |
| virtual void | InitResource () override |
| | Initializes the resource. 更多...
|
| |
| virtual void | InitRHI () override |
| | Initializes the RHI resources used by this resource. 更多...
|
| |
|
virtual void | InvalidateDisplay () override |
| | Invalidates the viewport's displayed pixels.
|
| |
| virtual void | ReleaseResource () override |
| | Prepares the resource for deletion. 更多...
|
| |
| virtual void | ReleaseRHI () override |
| | Releases the RHI resources used by this resource. 更多...
|
| |
| virtual FIntPoint | ViewportToVirtualDesktopPixel (FVector2D ViewportCoordinate) const override |
| | Transforms a coordinate in the local space of this viewport into a virtual desktop pixel. 更多...
|
| |
| virtual FVector2D | VirtualDesktopPixelToViewport (FIntPoint VirtualDesktopPointPx) const override |
| | Transforms a virtual desktop pixel (the origin is in the primary screen's top left corner) to the local space of this viewport 更多...
|
| |
| virtual ENGINE_API void | BeginRenderFrame (FRHICommandListImmediate &RHICmdList) |
| | Starts a new rendering frame. 更多...
|
| |
| ENGINE_API FIntRect | CalculateViewExtents (float AspectRatio, const FIntRect &ViewRect) |
| | Calculates the view inside the viewport when the aspect ratio is locked. 更多...
|
| |
|
| DECLARE_MULTICAST_DELEGATE_TwoParams (FOnViewportResized, FViewport *, uint32) |
| | delegate type for viewport resize events ( Params: FViewport* Viewport, uint32 )
|
| |
|
virtual ENGINE_API void | DeferInvalidateHitProxy () |
| | Invalidates the viewport's cached hit proxies at the end of the frame.
|
| |
| ENGINE_API void | Draw (bool bShouldPresent=true) |
| | Updates the viewport's displayed pixels with the results of calling ViewportClient->Draw. 更多...
|
| |
| virtual int32 | DrawStatsHUD (FCanvas *InCanvas, const int32 InX, const int32 InY) |
| | First chance for viewports to render custom stats text 更多...
|
| |
| virtual ENGINE_API void | EndRenderFrame (FRHICommandListImmediate &RHICmdList, bool bPresent, bool bLockToVsync) |
| | Ends a rendering frame. 更多...
|
| |
| virtual ENGINE_API void | EnqueueBeginRenderFrame (const bool bShouldPresent) |
| | Starts a new rendering frame. 更多...
|
| |
| virtual ENGINE_API void | EnqueueEndRenderFrame (const bool bLockToVsync, const bool bShouldPresent) |
| | Ends a rendering frame. 更多...
|
| |
| ENGINE_API void | GetActorsAndModelsInHitProxy (FIntRect InRect, TSet< AActor * > &OutActors, TSet< UModel * > &OutModels) |
| | Returns all actors and models found in the hit proxy within a specified region. 更多...
|
| |
| virtual FCanvas * | GetDebugCanvas () |
| |
| virtual float | GetDesiredAspectRatio () const |
| |
|
virtual ENGINE_API FRHIGPUMask | GetGPUMask (FRHICommandListImmediate &RHICmdList) const override |
| | Returns the GPU nodes on which to render this viewport.
|
| |
| ENGINE_API HHitProxy * | GetHitProxy (int32 X, int32 Y) |
| | Returns the dominant hit proxy at a given point. 更多...
|
| |
| ENGINE_API void | GetHitProxyMap (FIntRect InRect, TArray< HHitProxy * > &OutMap) |
| | Copies the hit proxies from an area of the screen into a buffer. 更多...
|
| |
| virtual FIntPoint | GetRenderTargetTextureSizeXY () const |
| | Returns dimensions of RenderTarget texture. 更多...
|
| |
| virtual FViewportFrame * | GetViewportFrame ()=0 |
| | Retrieves the interface to the viewport's frame, if it has one. 更多...
|
| |
|
const FViewportRHIRef & | GetViewportRHI () const |
| | Accessors for RHI resources
|
| |
|
virtual ENGINE_API bool | HasToggleFreezeCommand () override |
| | Returns if there is a command to freeze
|
| |
|
ENGINE_API void | Invalidate () |
| | Invalidates cached hit proxies and the display.
|
| |
|
virtual void | InvalidateDisplay ()=0 |
| | Invalidates the viewport's displayed pixels.
|
| |
|
ENGINE_API void | InvalidateHitProxy () |
| | Invalidates cached hit proxies
|
| |
| virtual bool | IsCursorVisible () const |
| | Returns true if the mouse cursor is currently visible 更多...
|
| |
|
bool | IsHDRViewport () const |
| | Returns true if this viewport should be rendered in HDR
|
| |
| virtual bool | IsKeyboardAvailable (int32 ControllerID) const |
| |
| virtual bool | IsMouseAvailable (int32 ControllerID) const |
| |
|
bool | IsPlayInEditorViewport () const |
| | Returns true if the viewport is for play in editor
|
| |
|
bool | IsSlateViewport () const |
| | Returns true if this is an FSlateSceneViewport
|
| |
|
virtual bool | IsStereoRenderingAllowed () const |
| | Should return true, if stereo rendering is allowed in this viewport
|
| |
|
virtual ENGINE_API void | ProcessToggleFreezeCommand () override |
| | Handles freezing/unfreezing of rendering
|
| |
|
void | SetHDRMode (bool bHDR) |
| | Sets HDR Status of Viewport
|
| |
| ENGINE_API void | SetInitialSize (FIntPoint InitialSizeXY) |
| | Sets the initial size of this viewport. 更多...
|
| |
|
void | SetPlayInEditorViewport (bool bInPlayInEditorViewport) |
| | Sets this viewport as a play in editor viewport
|
| |
|
virtual void | SetPreCaptureMousePosFromSlateCursor () |
| | Sets PreCapture coordinates from the current position of the slate cursor.
|
| |
|
virtual void | SetRequiresVsync (bool bShouldVsync) |
| | Indicate that the viewport should be block for vsync.
|
| |
| virtual ENGINE_API void | SetViewportClient (FViewportClient *InViewportClient) |
| | Sets a viewport client if one wasn't provided at construction time. 更多...
|
| |
| ENGINE_API bool | TakeHighResScreenShot () |
| | Trigger a high res screenshot. 更多...
|
| |
|
void | UpdateRenderTargetSurfaceRHIToCurrentBackBuffer () |
| | Update the render target surface RHI to the current back buffer
|
| |
| virtual FIntPoint | ViewportToVirtualDesktopPixel (FVector2D ViewportCoordinate) const =0 |
| | Transforms a coordinate in the local space of this viewport into a virtual desktop pixel. 更多...
|
| |
| virtual FVector2D | VirtualDesktopPixelToViewport (FIntPoint VirtualDesktopPointPx) const =0 |
| | Transforms a virtual desktop pixel (the origin is in the primary screen's top left corner) to the local space of this viewport 更多...
|
| |
| virtual ENGINE_API float | GetDisplayGamma () const |
| |
|
virtual ENGINE_API FRHIGPUMask | GetGPUMask (FRHICommandListImmediate &RHICmdList) const |
| | Returns the GPU nodes on which to render this rendertarget.
|
| |
| virtual ENGINE_API const FTexture2DRHIRef & | GetRenderTargetTexture () const |
| | Accessor for the surface RHI when setting this render target 更多...
|
| |
|
virtual bool | HasToggleFreezeCommand () |
| | Returns if there is a command to toggle freezerendering
|
| |
|
virtual void | ProcessToggleFreezeCommand () |
| | Handles freezing/unfreezing of rendering
|
| |
| ENGINE_API bool | ReadFloat16Pixels (TArray< FFloat16Color > &OutputBuffer, ECubeFace CubeFace=CubeFace_PosX) |
| | Reads the viewport's displayed pixels into the given color buffer. 更多...
|
| |
| ENGINE_API bool | ReadLinearColorPixels (TArray< FLinearColor > &OutputBuffer, FReadSurfaceDataFlags InFlags=FReadSurfaceDataFlags(RCM_MinMax, CubeFace_MAX), FIntRect InRect=FIntRect(0, 0, 0, 0)) |
| | Reads the viewport's displayed pixels into the given color buffer. 更多...
|
| |
| ENGINE_API bool | ReadPixels (TArray< FColor > &OutImageData, FReadSurfaceDataFlags InFlags=FReadSurfaceDataFlags(RCM_UNorm, CubeFace_MAX), FIntRect InRect=FIntRect(0, 0, 0, 0)) |
| | Reads the viewport's displayed pixels into a preallocated color buffer. 更多...
|
| |
| ENGINE_API bool | ReadPixelsPtr (FColor *OutImageBytes, FReadSurfaceDataFlags InFlags=FReadSurfaceDataFlags(RCM_UNorm, CubeFace_MAX), FIntRect InSrcRect=FIntRect(0, 0, 0, 0)) |
| | Reads the viewport's displayed pixels into a preallocated color buffer. 更多...
|
| |
|
| static ENGINE_API bool | IsGameRenderingEnabled () |
| | Returns whether rendering is globally enabled or disabled. 更多...
|
| |
| static ENGINE_API void | SetGameRenderingEnabled (bool bIsEnabled, int32 PresentAndStopMovieDelay=0) |
| | Globally enables/disables rendering 更多...
|
| |
|
FString | AppVersionString |
| | The current version of the running instance
|
| |
|
static ENGINE_API FOnViewportResized | ViewportResizedEvent |
| | Send when a viewport is resized
|
| |
|
void | HighResScreenshot () |
| | Take a high-resolution screenshot and save to disk.
|
| |
| virtual ENGINE_API void | InitDynamicRHI () override |
| | Initializes the dynamic RHI resource and/or RHI render target used by this resource. 更多...
|
| |
| virtual ENGINE_API void | InitRHI () override |
| | Initializes the RHI resources used by this resource. 更多...
|
| |
| virtual ENGINE_API void | ReleaseDynamicRHI () override |
| | Releases the dynamic RHI resource and/or RHI render target resources used by this resource. 更多...
|
| |
| virtual ENGINE_API void | ReleaseRHI () override |
| | Releases the RHI resources used by this resource. 更多...
|
| |
| virtual ENGINE_API void | UpdateViewportRHI (bool bDestroyed, uint32 NewSizeX, uint32 NewSizeY, EWindowMode::Type NewWindowMode, EPixelFormat PreferredPixelFormat) |
| | Updates the viewport RHI with the current viewport state. 更多...
|
| |
| bool | ReadFloat16Pixels (FFloat16Color *OutImageBytes, ECubeFace CubeFace=CubeFace_PosX) |
| | Reads the viewport's displayed pixels into a preallocated color buffer. 更多...
|
| |
|
| FRenderResource () |
| | Default constructor.
|
| |
|
| FRenderResource (ERHIFeatureLevel::Type InFeatureLevel) |
| | Constructor when we know what feature level this resource should support
|
| |
| virtual FString | GetFriendlyName () const |
| |
| virtual void | InitDynamicRHI () |
| | Initializes the dynamic RHI resource and/or RHI render target used by this resource. 更多...
|
| |
| virtual void | InitResource () |
| | Initializes the resource. 更多...
|
| |
| virtual void | InitRHI () |
| | Initializes the RHI resources used by this resource. 更多...
|
| |
| virtual void | ReleaseDynamicRHI () |
| | Releases the dynamic RHI resource and/or RHI render target resources used by this resource. 更多...
|
| |
| virtual void | ReleaseResource () |
| | Prepares the resource for deletion. 更多...
|
| |
| virtual void | ReleaseRHI () |
| | Releases the RHI resources used by this resource. 更多...
|
| |
| void | UpdateRHI () |
| | If the resource's RHI resources have been initialized, then release and reinitialize it. 更多...
|
| |
|
virtual | ~FRenderResource () |
| | Destructor used to catch unreleased resources.
|
| |
|
static void | InitPreRHIResources () |
| | Initialize all resources initialized before the RHI was initialized
|
| |
|
uint32 | bHasRequestedToggleFreeze: 1 |
| | If a toggle freeze request has been made
|
| |
|
uint32 | bHitProxiesCached: 1 |
| | True if the hit proxy buffer buffer has up to date hit proxies for this viewport.
|
| |
|
uint32 | bIsHDR: 1 |
| | If true this viewport is being displayed on a HDR monitor
|
| |
|
uint32 | bIsPlayInEditorViewport: 1 |
| | if true this viewport is for play in editor
|
| |
|
uint32 | bIsSlateViewport: 1 |
| | If true this viewport is an FSlateSceneViewport
|
| |
|
uint32 | bRequiresHitProxyStorage: 1 |
| | True if the viewport client requires hit proxy storage.
|
| |
|
bool | bTakeHighResScreenShot |
| | Triggers the taking of a high res screen shot for this viewport.
|
| |
|
TArray< FColor > | CachedHitProxyData |
| | Cached hit proxy data.
|
| |
|
FHitProxyMap | HitProxyMap |
| | The viewport's hit proxy map.
|
| |
|
uint32 | HitProxySize |
| | The size of the region to check hit proxies
|
| |
|
uint32 | InitialPositionX |
| | The initial position of the viewport.
|
| |
|
uint32 | InitialPositionY |
| | The initial position of the viewport.
|
| |
|
uint32 | SizeX |
| | The width of the viewport.
|
| |
|
uint32 | SizeY |
| | The height of the viewport.
|
| |
|
FViewportClient * | ViewportClient |
| | The viewport's client.
|
| |
|
FViewportRHIRef | ViewportRHI |
| | The RHI viewport.
|
| |
|
FName | ViewportType |
| | Used internally for testing runtime instance type before casting
|
| |
|
EWindowMode::Type | WindowMode |
| | What is the current window mode.
|
| |
|
static ENGINE_API bool | bIsGameRenderingEnabled |
| | true if we should draw game viewports (has no effect on Editor viewports)
|
| |
| static int32 | PresentAndStopMovieDelay |
| | Delay in frames to disable present (but still render scene) and stopping of a movie. 更多...
|
| |
Minimal viewport for assisting with taking screenshots (also used within a plugin)
- 待办事项:
- : This should be refactored