engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FSlateUpdatableTexture类 参考abstract

An interface to deal with a slate texture that can be updated dynamically 更多...

#include <SlateUpdatableTexture.h>

+ 类 FSlateUpdatableTexture 继承关系图:

Public 成员函数

virtual void Cleanup ()=0
 Deferred or Immediate cleanup of this data depending on what is required.
 
virtual FRenderResource * GetRenderResource ()
 Gets the interface to the underlying render resource (may not always be used) 更多...
 
virtual FSlateShaderResource * GetSlateResource ()=0
 Gets the interface to the underlying platform independent texture 更多...
 
virtual void ResizeTexture (uint32 Width, uint32 Height)=0
 Resize the texture. 更多...
 
virtual void UpdateTexture (const TArray< uint8 > &Bytes)=0
 Updates the texture contents via a byte array. 更多...
 
virtual void UpdateTextureThreadSafe (const TArray< uint8 > &Bytes)=0
 Updates the texture contents via a byte array making a copy first for thread safety 更多...
 
virtual void UpdateTextureThreadSafeRaw (uint32 Width, uint32 Height, const void *Buffer, const FIntRect &Dirty=FIntRect())=0
 Update the texture from a raw byte buffer. 更多...
 
virtual void UpdateTextureThreadSafeWithTextureData (FSlateTextureData *TextureData)=0
 Update the texture from a provided FSlateTextureData buffer, also transferring ownership of the texture 更多...
 
virtual ~FSlateUpdatableTexture ()
 Virtual destructor
 

详细描述

An interface to deal with a slate texture that can be updated dynamically

成员函数说明

◆ GetRenderResource()

virtual FRenderResource * FSlateUpdatableTexture::GetRenderResource ( )
inlinevirtual

Gets the interface to the underlying render resource (may not always be used)

返回
FRenderResource* pointer to the render resource

被 FSlateTexture2DRHIRef 重载.

◆ GetSlateResource()

virtual FSlateShaderResource * FSlateUpdatableTexture::GetSlateResource ( )
pure virtual

Gets the interface to the underlying platform independent texture

返回
FSlateShaderResource* pointer to the shader resource

在 FSlateTexture2DRHIRef 内被实现.

◆ ResizeTexture()

virtual void FSlateUpdatableTexture::ResizeTexture ( uint32  Width,
uint32  Height 
)
pure virtual

Resize the texture.

参数
WidthNew texture width
HeightNew texture height

在 FSlateTexture2DRHIRef 内被实现.

◆ UpdateTexture()

virtual void FSlateUpdatableTexture::UpdateTexture ( const TArray< uint8 > &  Bytes)
pure virtual

Updates the texture contents via a byte array.

Note: This method is not thread safe so make sure you do not use the Bytes data on another after it is passed in

参数
BytesArray of texture data

在 FSlateTexture2DRHIRef 内被实现.

◆ UpdateTextureThreadSafe()

virtual void FSlateUpdatableTexture::UpdateTextureThreadSafe ( const TArray< uint8 > &  Bytes)
pure virtual

Updates the texture contents via a byte array making a copy first for thread safety

参数
BytesArray of texture data

在 FSlateTexture2DRHIRef 内被实现.

◆ UpdateTextureThreadSafeRaw()

virtual void FSlateUpdatableTexture::UpdateTextureThreadSafeRaw ( uint32  Width,
uint32  Height,
const void *  Buffer,
const FIntRect &  Dirty = FIntRect() 
)
pure virtual

Update the texture from a raw byte buffer.

Should only be used when integrating with third party APIs that provide a raw pointer to texture data. This method does a copy of the buffer for thread safety. Will resize the texture if the passed in width and height is different from the current size. The passed in size must correspond to the size of the buffer and the data must be valid for the entire texture, even when passing in a Dirty rectangle, as the implementation may chose to copy a larger area than specified. The RHI renderer currently ignores the Dirty argument completely.

参数
WidthNew texture width
HeightNew texture height
BufferA void pointer to a byte buffer.
DirtyAn optional hint of the area to update. An empty rectangle means that the entire texture should be updated.

在 FSlateTexture2DRHIRef 内被实现.

◆ UpdateTextureThreadSafeWithTextureData()

virtual void FSlateUpdatableTexture::UpdateTextureThreadSafeWithTextureData ( FSlateTextureData *  TextureData)
pure virtual

Update the texture from a provided FSlateTextureData buffer, also transferring ownership of the texture

参数
TextureDataA pointer to the provided FSlateTextureData.

NOTE: This function transfers ownership of the FSlateTextureData object. It will be deleted once the texture is used

在 FSlateTexture2DRHIRef 内被实现.


该类的文档由以下文件生成: