![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SlateTextureData.h>
Public Member Functions | |
| FSlateTextureData (uint32 InWidth=0, uint32 InHeight=0, uint32 InBytesPerPixel=0, const TArray< uint8 > &InBytes=TArray< uint8 >()) | |
| FSlateTextureData (uint32 InWidth, uint32 InHeight, uint32 InBytesPerPixel, TArray< uint8 > &&InBytes) | |
| FSlateTextureData (const uint8 *InBuffer, uint32 InWidth, uint32 InHeight, uint32 InBytesPerPixel) | |
| FSlateTextureData (const FSlateTextureData &Other) | |
| FSlateTextureData (const FImageView &Other) | |
| FSlateTextureData (FImage &&Other) | |
| FSlateTextureData & | operator= (const FSlateTextureData &Other) |
| ~FSlateTextureData () | |
| void | SetRawData (uint32 InWidth, uint32 InHeight, uint32 InBytesPerPixel, const TArray< uint8 > &InBytes) |
| void | SetImage (const FImageView &Image) |
| void | SetImage (FImage &&MoveFrom) |
| void | Empty () |
| uint32 | GetWidth () const |
| uint32 | GetHeight () const |
| uint32 | GetBytesPerPixel () const |
| const TArray< uint8 > & | GetRawBytes () const |
| uint8 * | GetRawBytesPtr () |
Holds texture data for upload to a rendering resource Makes a copy of the bytes passed to it and holds ownership of the image data array.
Note that "BytesPerPixel" is a variable but in practice this must be BGRA8-SRGB , and BytesPerPixel == 4
|
inline |
|
inline |
|
inline |
Constructor to create texture data by copying from a pointer instead of an array
| InBuffer | Pointer to Texture data (must contain InWidth*InHeight*InBytesPerPixel bytes). |
| InWidth | Width of the Texture. |
| InHeight | Height of the Texture. |
| InBytesPerPixel | Bytes per pixel of the Texture. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Accesses the raw bytes of already sized texture data
|
inline |
|
inline |
|
inline |
|
inline |