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
|
inlinevirtual |
Gets the interface to the underlying render resource (may not always be used)
被 FSlateTexture2DRHIRef 重载.
|
pure virtual |
Gets the interface to the underlying platform independent texture
在 FSlateTexture2DRHIRef 内被实现.
|
pure virtual |
Resize the texture.
| Width | New texture width |
| Height | New texture height |
在 FSlateTexture2DRHIRef 内被实现.
|
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
| Bytes | Array of texture data |
在 FSlateTexture2DRHIRef 内被实现.
|
pure virtual |
Updates the texture contents via a byte array making a copy first for thread safety
| Bytes | Array of texture data |
在 FSlateTexture2DRHIRef 内被实现.
|
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.
| Width | New texture width |
| Height | New texture height |
| Buffer | A void pointer to a byte buffer. |
| Dirty | An optional hint of the area to update. An empty rectangle means that the entire texture should be updated. |
在 FSlateTexture2DRHIRef 内被实现.
|
pure virtual |
Update the texture from a provided FSlateTextureData buffer, also transferring ownership of the texture
| TextureData | A pointer to the provided FSlateTextureData. |
NOTE: This function transfers ownership of the FSlateTextureData object. It will be deleted once the texture is used
在 FSlateTexture2DRHIRef 内被实现.