Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FTextureSource
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Init
(
const FImageView& Image |
Init and copy in texture bits from Image | Engine/Texture.h | |
void Init
(
int32 NewSizeX, |
Initialize the source data with the given size, number of mips, and format. | Engine/Texture.h | |
void Init
(
int32 NewSizeX, |
Initialize the source data with the given size, number of mips, and format. | Engine/Texture.h |
Init(const FImageView &)
Description
Init and copy in texture bits from Image
FImageView has gamma information too that is lost TextureSource does not store gamma information (it's in the owning Texture) this function does NOT set Texture->SRGB , you must do so!
Init() does UseHashAsGuid Init() must be done inside PreEdit/PostEdit on the owning Texture
| Name | Init |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Texture.h |
| Include Path | #include "Engine/Texture.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Texture.cpp |
void Init
(
const FImageView & Image
)
Parameters
| Name | Remarks |
|---|---|
| Image | Image to initialize with |
Init(int32, int32, int32, int32, ETextureSourceFormat, const uint8 *)
Description
Initialize the source data with the given size, number of mips, and format.
| Name | Init |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Texture.h |
| Include Path | #include "Engine/Texture.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Texture.cpp |
void Init
(
int32 NewSizeX,
int32 NewSizeY,
int32 NewNumSlices,
int32 NewNumMips,
ETextureSourceFormat NewFormat,
const uint8 * NewData
)
Parameters
| Name | Remarks |
|---|---|
| NewSizeX | Width of the texture source data. |
| NewSizeY | Height of the texture source data. |
| NewNumSlices | The number of slices in the texture source data. |
| NewNumMips | The number of mips in the texture source data. |
| NewFormat | The format in which source data is stored. |
| NewData | [optional] The new source data. |
Init(int32, int32, int32, int32, ETextureSourceFormat, UE::Serialization::FEditorBulkData::FSharedBufferWithID)
Description
Initialize the source data with the given size, number of mips, and format.
| Name | Init |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Texture.h |
| Include Path | #include "Engine/Texture.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Texture.cpp |
void Init
(
int32 NewSizeX,
int32 NewSizeY,
int32 NewNumSlices,
int32 NewNumMips,
ETextureSourceFormat NewFormat,
UE::Serialization::FEditorBulkData::FSharedBufferWithID NewData
)
Parameters
| Name | Remarks |
|---|---|
| NewSizeX | Width of the texture source data. |
| NewSizeY | Height of the texture source data. |
| NewNumSlices | The number of slices in the texture source data. |
| NewNumMips | The number of mips in the texture source data. |
| NewFormat | The format in which source data is stored. |
| NewData | The new source data. |