|
| virtual void | AddWidgetRendererUpdate (const struct FRenderThreadUpdateContext &Context, bool bDeferredRenderTargetUpdate) |
| | Lets the renderer know that we need to render some widgets to a render target. 更多...
|
| |
|
virtual bool | AreShadersInitialized () const |
| | Returns whether shaders that Slate depends on have been compiled.
|
| |
| virtual void | BeginFrame () const |
| | Indicates the start of a new frame to the Renderer. 更多...
|
| |
|
virtual bool | CanRenderResource (UObject &InResourceObject) const |
| | The default implementation assumes all things are renderable.
|
| |
|
virtual void | ClearScenes ()=0 |
| | Reset the internal Scene tracking.
|
| |
|
virtual void | CopyWindowsToVirtualScreenBuffer (const TArray< FString > &KeypressBuffer) |
| | Copies all slate windows out to a buffer at half resolution with debug information like the mouse cursor and any keypresses.
|
| |
| virtual FSlateUpdatableTexture * | CreateUpdatableTexture (uint32 Width, uint32 Height)=0 |
| | Create an updatable texture that can receive new data dynamically 更多...
|
| |
| virtual void | CreateViewport (const TSharedRef< SWindow > InWindow)=0 |
| | Creates a rendering viewport 更多...
|
| |
| | DECLARE_MULTICAST_DELEGATE_OneParam (FOnPostResizeWindowBackbuffer, void *) |
| | Called on the game thread right after a window backbuffer has been resized 更多...
|
| |
| | DECLARE_MULTICAST_DELEGATE_OneParam (FOnPreResizeWindowBackbuffer, void *) |
| | Called on the game thread right before a window backbuffer is about to be resized 更多...
|
| |
| | DECLARE_MULTICAST_DELEGATE_OneParam (FOnSlateWindowDestroyed, void *) |
| | Called on the game thread right before the slate window handle is destroyed. 更多...
|
| |
|
| DECLARE_MULTICAST_DELEGATE_TwoParams (FOnBackBufferReadyToPresent, SWindow &, const FTexture2DRHIRef &) |
| | Callback on the render thread after slate rendering finishes and right before present is called
|
| |
|
| DECLARE_MULTICAST_DELEGATE_TwoParams (FOnSlateWindowRendered, SWindow &, void *) |
| | Callback that fires after Slate has rendered each window, each frame
|
| |
| virtual void | DrawWindows (FSlateDrawBuffer &InWindowDrawBuffer)=0 |
| | Creates necessary resources to render a window and sends draw commands to the rendering thread 更多...
|
| |
| virtual void | EndFrame () const |
| | Indicates the end of the current frame to the Renderer. 更多...
|
| |
|
virtual void | FlushCommands () const |
| | Gives the renderer a chance to wait for any render commands to be completed before returning/
|
| |
|
void | FlushFontCache (const FString &FlushReason) |
| | Flushes all cached data from the font cache for the current thread
|
| |
|
| FSlateRenderer (const TSharedRef< FSlateFontServices > &InSlateFontServices) |
| | Constructor.
|
| |
| virtual FIntPoint | GenerateDynamicImageResource (const FName InTextureName) |
| | Creates a dynamic image resource and returns its size 更多...
|
| |
| virtual bool | GenerateDynamicImageResource (FName ResourceName, uint32 Width, uint32 Height, const TArray< uint8 > &Bytes) |
| | Creates a dynamic image resource 更多...
|
| |
|
virtual int32 | GetCurrentSceneIndex () const =0 |
| | Get the currently registered scene index (set by RegisterCurrentScene)
|
| |
|
virtual FSlateDrawBuffer & | GetDrawBuffer ()=0 |
| | Returns a draw buffer that can be used by Slate windows to draw window elements
|
| |
|
virtual ISlateAtlasProvider * | GetFontAtlasProvider () |
| | Returns the way to access the font atlas information for this renderer
|
| |
|
TSharedRef< class FSlateFontCache > | GetFontCache () const |
| | Get the font cache to use for the current thread
|
| |
|
TSharedRef< class FSlateFontMeasure > | GetFontMeasureService () const |
| | Get access to the font measure service (game thread only!)
|
| |
|
TSharedRef< FSlateFontServices > | GetFontServices () const |
| | Get access to the font services used by this renderer
|
| |
|
virtual FCriticalSection * | GetResourceCriticalSection ()=0 |
| | Necessary to grab before flushing the resource pool, as it may be being accessed by multiple threads when loading.
|
| |
| virtual FSlateResourceHandle | GetResourceHandle (const FSlateBrush &Brush)=0 |
| | Creates a handle to a Slate resource A handle is used as fast path for looking up a rendering resource for a given brush when adding Slate draw elements This can be cached and stored safely in code. 更多...
|
| |
|
virtual ISlateAtlasProvider * | GetTextureAtlasProvider () |
| | Returns the way to access the texture atlas information for this renderer
|
| |
| virtual void * | GetViewportResource (const SWindow &Window) |
| | Returns the viewport rendering resource (backbuffer) for the provided window 更多...
|
| |
| virtual void | InvalidateAllViewports () |
| | Removes references to FViewportRHI's. 更多...
|
| |
| bool | IsViewportFullscreen (const SWindow &Window) const |
| | Returns whether or not a viewport should be in fullscreen 更多...
|
| |
|
virtual void | LoadStyleResources (const ISlateStyle &Style) |
| | Loads all the resources used by the specified SlateStyle
|
| |
|
virtual void | MapVirtualScreenBuffer (FMappedTextureBuffer *OutImageData) |
| | Allows and disallows access to the crash tracker buffer data on the CPU
|
| |
|
virtual void | OnWindowDestroyed (const TSharedRef< SWindow > &InWindow)=0 |
| | Called when a window is destroyed to give the renderer a chance to free resources
|
| |
|
virtual void | OnWindowFinishReshaped (const TSharedPtr< SWindow > &InWindow) |
| | Called when a window is finished being reshaped
|
| |
| virtual void | PrepareToTakeScreenshot (const FIntRect &Rect, TArray< FColor > *OutColorData, SWindow *InScreenshotWindow) |
| | Prepares the renderer to take a screenshot of the UI. 更多...
|
| |
| virtual int32 | RegisterCurrentScene (FSceneInterface *Scene)=0 |
| | Register the active scene pointer with the renderer. 更多...
|
| |
| virtual void | ReleaseAccessedResources (bool bImmediatelyFlush) |
| | A renderer may need to keep a cache of accessed garbage collectible objects alive for the duration of their usage. 更多...
|
| |
| virtual void | ReleaseDynamicResource (const FSlateBrush &Brush)=0 |
| | Releases a specific resource. 更多...
|
| |
| virtual void | ReleaseUpdatableTexture (FSlateUpdatableTexture *Texture)=0 |
| | Return an updatable texture to the renderer for release 更多...
|
| |
|
virtual void | ReloadTextureResources () |
| | Reloads all texture resources from disk
|
| |
| virtual void | RemoveDynamicBrushResource (TSharedPtr< FSlateDynamicImageBrush > BrushToRemove)=0 |
| | Queues a dynamic brush for removal when it is safe. 更多...
|
| |
| virtual void | RequestResize (const TSharedPtr< SWindow > &InWindow, uint32 NewSizeX, uint32 NewSizeY)=0 |
| | Requests that a rendering viewport be resized 更多...
|
| |
| virtual void | RestoreSystemResolution (const TSharedRef< SWindow > InWindow)=0 |
| | Restore the given window to the resolution settings currently cached by the engine 更多...
|
| |
|
virtual void | SetColorVisionDeficiencyType (EColorVisionDeficiency Type, int32 Severity, bool bCorrectDeficiency, bool bShowCorrectionWithDeficiency) |
| | Sets which color vision filter to use
|
| |
| virtual void | SetSystemResolution (uint32 Width, uint32 Height)=0 |
| | Set the resolution cached by the engine 更多...
|
| |
|
virtual void | SetWindowRenderTarget (const SWindow &Window, class IViewportRenderTargetProvider *Provider) |
| | Pushes the rendering of the specified window to the specified render target
|
| |
| virtual void | Sync () const |
| | Gives the renderer a chance to synchronize with another thread in the event that the renderer runs in a multi-threaded environment. 更多...
|
| |
| virtual void | UpdateFullscreenState (const TSharedRef< SWindow > InWindow, uint32 OverrideResX=0, uint32 OverrideResY=0)=0 |
| | Sets fullscreen state on the window's rendering viewport 更多...
|
| |
|
virtual | ~FSlateRenderer () |
| | Virtual destructor.
|
| |
Abstract base class for Slate renderers.