Navigation
API > API/Runtime > API/Runtime/WebBrowserTexture
Texture resource type for webbrowser textures.
| Name | FWebBrowserTextureResource |
| Type | class |
| Header File | /Engine/Source/Runtime/WebBrowserTexture/Public/WebBrowserTextureResource.h |
| Include Path | #include "WebBrowserTextureResource.h" |
Syntax
class FWebBrowserTextureResource :
public FRenderTarget,
public FTextureResource
Inheritance Hierarchy
- FRenderTarget → FWebBrowserTextureResource
- FRenderResource → FTexture → FTextureResource → FWebBrowserTextureResource
- FTexture → FTextureResource → FWebBrowserTextureResource
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FWebBrowserTextureResource
(
UWebBrowserTexture& InOwner, |
Creates and initializes a new instance. | WebBrowserTextureResource.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FWebBrowserTextureResource() |
Virtual destructor. | WebBrowserTextureResource.h |
Structs
| Name | Remarks |
|---|---|
| FRenderParams | Parameters for the Render method. |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Cleared | bool | Whether the texture has been cleared. | WebBrowserTextureResource.h | |
| CurrentClearColor | FLinearColor | Tracks the current clear color. | WebBrowserTextureResource.h | |
| InputTarget | TRefCountPtr< FRHITexture > | Input render target if the texture samples don't provide one (for conversions). | WebBrowserTextureResource.h | |
| OutputTarget | TRefCountPtr< FRHITexture > | Output render target if the texture samples don't provide one. | WebBrowserTextureResource.h | |
| Owner | UWebBrowserTexture & | The webbrowser texture that owns this resource. | WebBrowserTextureResource.h | |
| OwnerDim | FIntPoint & | Reference to the owner's texture dimensions field. | WebBrowserTextureResource.h | |
| OwnerSize | SIZE_T & | Reference to the owner's texture size field. | WebBrowserTextureResource.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetFriendlyName() |
WebBrowserTextureResource.h | ||
virtual uint32 GetSizeX() |
WebBrowserTextureResource.h | ||
virtual FIntPoint GetSizeXY() |
WebBrowserTextureResource.h | ||
virtual uint32 GetSizeY() |
WebBrowserTextureResource.h | ||
virtual void InitRHI
(
FRHICommandListBase& RHICmdList |
WebBrowserTextureResource.h | ||
virtual void ReleaseRHI() |
WebBrowserTextureResource.h | ||
void Render
(
const FRenderParams& Params |
Render the texture resource. | WebBrowserTextureResource.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClearTexture
(
const FLinearColor& ClearColor |
Clear the texture using the given clear color. | WebBrowserTextureResource.h | |
void CopySample
(
const TSharedPtr< FWebBrowserTextureSample, ESPMode::ThreadSafe >& Sample, |
Render the given texture sample by using it as or copying it to the render target. | WebBrowserTextureResource.h | |
void UpdateResourceSize() |
Calculates the current resource size and notifies the owner texture. | WebBrowserTextureResource.h | |
void UpdateTextureReference
(
FRHITexture* NewTexture |
Set the owner's texture reference to the given texture. | WebBrowserTextureResource.h |