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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback