Navigation
API > API/Runtime > API/Runtime/WebBrowserTexture
Inheritance Hierarchy
- FRenderTarget
- FTextureResource
- FWebBrowserTextureResource
References
| Module | WebBrowserTexture |
| Header | /Engine/Source/Runtime/WebBrowserTexture/Public/WebBrowserTextureResource.h |
| Include | #include "WebBrowserTextureResource.h" |
Syntax
class FWebBrowserTextureResource :
public FRenderTarget,
public FTextureResource
Remarks
Texture resource type for webbrowser textures.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FWebBrowserTextureResource
(
UWebBrowserTexture& InOwner, |
Creates and initializes a new instance. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ClearTexture
(
const FLinearColor& ClearColor |
Clear the texture using the given clear color. | |
| void | CopySample
(
const TSharedPtr< FWebBrowserTextureSample, ESPMode::ThreadSafe >& Sample, |
Render the given texture sample by using it as or copying it to the render target. | |
| void | Render
(
const FRenderParams& Params |
Render the texture resource. | |
| void | Calculates the current resource size and notifies the owner texture. | ||
| void | UpdateTextureReference
(
FRHITexture2D* NewTexture |
Set the owner's texture reference to the given texture. |
Overridden from FRenderTarget
| Type | Name | Description | |
|---|---|---|---|
| FIntPoint | GetSizeXY () |
Properties. |
Overridden from FTexture
| Type | Name | Description | |
|---|---|---|---|
| uint32 | GetSizeX () |
Returns the width of the texture in pixels. | |
| uint32 | GetSizeY () |
Returns the height of the texture in pixels. |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| FString | |||
| void | InitRHI
(
FRHICommandListBase& RHICmdList |
Initializes the RHI resources used by this resource. | |
| void | ReleaseRHI () |
Releases the RHI resources used by this resource. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FRenderParams | Parameters for the Render method. |