FWebBrowserTextureResource

Texture resource type for webbrowser textures.

Windows
MacOS
Linux

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

Name Description

Public function

FWebBrowserTextureResource

(
    UWebBrowserTexture& InOwner,
    FIntPoint& InOwnerDim,
    SIZE_T& InOwnerSize
)

Creates and initializes a new instance.

Destructors

Name Description

Public function Virtual

~FWebBrowserTextureResource()

Virtual destructor.

Functions

Name Description

Protected function

void

 

ClearTexture

(
    const FLinearColor& ClearColor
)

Clear the texture using the given clear color.

Protected function

void

 

CopySample

(
    const TSharedPtr< FWebBrowserTextur...,
    const FLinearColor& ClearColor
)

Render the given texture sample by using it as or copying it to the render target.

Public function

void

 

Render

(
    const FRenderParams& Params
)

Render the texture resource.

Protected function

void

 

UpdateResourceSize()

Calculates the current resource size and notifies the owner texture.

Protected function

void

 

UpdateTextureReference

(
    FRHITexture2D* NewTexture
)

Set the owner's texture reference to the given texture.

Overridden from FRenderTarget

Name Description

Public function Virtual Const

FIntPoint

 

GetSizeXY()

Properties.

Overridden from FTexture

Name Description

Public function Virtual Const

uint32

 

GetSizeX()

Returns the width of the texture in pixels.

Public function Virtual Const

uint32

 

GetSizeY()

Returns the height of the texture in pixels.

Overridden from FRenderResource

Name Description

Public function Virtual Const

FString

 

GetFriendlyName()

Public function Virtual

void

 

InitDynamicRHI()

Initializes the dynamic RHI resource and/or RHI render target used by this resource.

Public function Virtual

void

 

ReleaseDynamicRHI()

Releases the dynamic RHI resource and/or RHI render target resources used by this resource.

Classes

Name

Description

Public struct

FRenderParams

Parameters for the Render method.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss