Base class texture atlases in Slate
更多...
#include <TextureAtlas.h>
|
| const FAtlasedTextureSlot * | AddTexture (uint32 TextureWidth, uint32 TextureHeight, const TArray< uint8 > &Data) |
| | Adds a texture to the atlas 更多...
|
| |
|
virtual void | ConditionalUpdateTexture ()=0 |
| | Updates the texture used for rendering if needed
|
| |
| void | EmptyAtlasData () |
| | Clears atlas cpu data. 更多...
|
| |
| uint32 | GetHeight () const |
| |
| uint32 | GetWidth () const |
| |
|
void | MarkTextureDirty () |
| | Marks the texture as dirty and needing its rendering resources updated
|
| |
|
| void | CopyDataIntoSlot (const FAtlasedTextureSlot *SlotToCopyTo, const TArray< uint8 > &Data) |
| | Copies texture data into the atlas at a given slot 更多...
|
| |
| void | CopyRow (const FCopyRowData &CopyRowData) |
| | Copies a single row from a source texture to a dest texture, respecting the padding. 更多...
|
| |
| const FAtlasedTextureSlot * | FindSlotForTexture (uint32 InWidth, uint32 InHeight) |
| | Finds the optimal slot for a texture in the atlas 更多...
|
| |
|
void | InitAtlasData () |
| | Creates enough space for a single texture the width and height of the atlas
|
| |
| void | ZeroRow (const FCopyRowData &CopyRowData) |
| | Zeros out a row in the dest texture (used with PaddingStyle == PadWithZero). 更多...
|
| |
|
|
TArray< uint8 > | AtlasData |
| | Actual texture data contained in the atlas
|
| |
|
FAtlasedTextureSlot * | AtlasEmptySlots |
| | The list of atlas slots pointing to empty texture data in the atlas
|
| |
|
uint32 | AtlasHeight |
| | Height of the atlas
|
| |
|
ESlateTextureAtlasThreadId | AtlasOwnerThread |
| | The type of thread that owns this atlas - this is the only thread that can safely update it NOTE: We don't use the thread ID here, as the render thread can be recreated if it gets suspended and resumed, giving it a new ID
|
| |
|
FAtlasedTextureSlot * | AtlasUsedSlots |
| | The list of atlas slots pointing to used texture data in the atlas
|
| |
|
uint32 | AtlasWidth |
| | Width of the atlas
|
| |
|
bool | bNeedsUpdate |
| | True if this texture needs to have its rendering resources updated
|
| |
|
bool | bUpdatesAfterInitialization |
| | True if this texture can update after initialziation and we should preserve the atlas slots and cpu memory
|
| |
|
uint32 | BytesPerPixel |
| | Bytes per pixel in the atlas
|
| |
|
ESlateTextureAtlasPaddingStyle | PaddingStyle |
| | Padding style
|
| |
Base class texture atlases in Slate
◆ AddTexture()
| const FAtlasedTextureSlot * FSlateTextureAtlas::AddTexture |
( |
uint32 |
TextureWidth, |
|
|
uint32 |
TextureHeight, |
|
|
const TArray< uint8 > & |
Data |
|
) |
| |
Adds a texture to the atlas
- 参数
-
| TextureWidth | Width of the texture |
| TextureHeight | Height of the texture |
| Data | Raw texture data |
◆ CopyDataIntoSlot()
Copies texture data into the atlas at a given slot
- 参数
-
| SlotToCopyTo | The occupied slot in the atlas where texture data should be copied to |
| Data | The data to copy into the atlas |
◆ CopyRow()
| void FSlateTextureAtlas::CopyRow |
( |
const FCopyRowData & |
CopyRowData | ) |
|
|
protected |
Copies a single row from a source texture to a dest texture, respecting the padding.
- 参数
-
| CopyRowData | Information for how to copy a row |
◆ EmptyAtlasData()
| void FSlateTextureAtlas::EmptyAtlasData |
( |
| ) |
|
Clears atlas cpu data.
It does not clear rendering data
◆ FindSlotForTexture()
| const FAtlasedTextureSlot * FSlateTextureAtlas::FindSlotForTexture |
( |
uint32 |
InWidth, |
|
|
uint32 |
InHeight |
|
) |
| |
|
protected |
Finds the optimal slot for a texture in the atlas
- 参数
-
| Width | The width of the texture we are adding |
| Height | The height of the texture we are adding |
◆ GetHeight()
| uint32 FSlateTextureAtlas::GetHeight |
( |
| ) |
const |
|
inline |
- 返回
- the height of the atlas
◆ GetWidth()
| uint32 FSlateTextureAtlas::GetWidth |
( |
| ) |
const |
|
inline |
◆ ZeroRow()
| void FSlateTextureAtlas::ZeroRow |
( |
const FCopyRowData & |
CopyRowData | ) |
|
|
protected |
Zeros out a row in the dest texture (used with PaddingStyle == PadWithZero).
respecting the padding.
- 参数
-
| CopyRowData | Information for how to copy a row |
该类的文档由以下文件生成: