Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/Texture.h |
Include |
#include "Engine/Texture.h" |
struct FTextureSource
Texture source data management.
Name | Description | |
---|---|---|
|
FTextureSource() |
Default constructor. |
Name | Description | ||
---|---|---|---|
|
CalcMipSize ( |
||
|
CalcMipSize |
Computes the size of a single mip. |
|
|
Compress() |
PNG Compresses the source art if possible or tells the bulk data to zlib compress when it saves out to disk. |
|
|
ForceGenerateGuid() |
Force the GUID to change even if mip data has not been modified. |
|
|
GetBlock ( |
Access the given block |
|
|
GetBytesPerPixel ( |
Computes the number of bytes per-pixel. |
|
|
GetBytesPerPixel ( |
||
|
ETextureSour... |
GetFormat ( |
|
|
GetId() |
Trivial accessors. |
|
|
GetIdString() |
Returns the unique ID string for this source art. |
|
|
GetLogicalSize() |
Logical size of the texture includes all blocks |
|
|
GetMipData ( |
Legacy API that defaults to LayerIndex 0 |
|
|
GetMipData ( |
Retrieve a copy of the data for a particular mip. |
|
|
GetNumBlocks() |
||
|
GetNumLayers() |
||
|
GetNumMips() |
||
|
GetNumSlices() |
||
|
GetSizeInBlocks() |
Size of texture in blocks |
|
|
GetSizeOnDisk() |
||
|
GetSizeX() |
||
|
GetSizeY() |
||
|
HasHadBulkDataCleared() |
||
|
Init |
Initialize the source data with the given size, number of mips, and format. |
|
|
Init2DWithMipChain ( |
Initializes the source data for a 2D texture with a full mip chain. |
|
|
InitBlocked ( |
||
|
InitCubeWithMipChain ( |
Initializes the source data for a cubemap with a full mip chain. |
|
|
InitLayered |
||
|
InitLayered2DWithMipChain ( |
||
|
IsBulkDataLoaded() |
||
|
IsHDR ( |
||
|
IsPNGCompressed() |
||
|
IsPowerOfTwo ( |
Return true if the source data is power-of-2. |
|
|
IsValid() |
Returns true if source art is available. |
|
|
LoadBulkDataWithFileReader() |
||
|
uint8 * |
LockMip ( |
|
|
uint8 * |
LockMip |
Lock a mip for editing. |
|
ReleaseSourceMemory() |
||
|
RemoveBulkData() |
||
|
SetId |
Sets the GUID to use, and whether that GUID is actually a hash of some data. |
|
|
UnlockMip ( |
||
|
UnlockMip |
Unlock a mip. |
|
|
UseHashAsGuid() |
Uses a hash as the GUID, useful to prevent creating new GUIDs on load for legacy assets. |