engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
FSlateTextureAtlas类 参考abstract

Base class texture atlases in Slate 更多...

#include <TextureAtlas.h>

+ 类 FSlateTextureAtlas 继承关系图:

Public 成员函数

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
 

Protected 成员函数

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). 更多...
 

Protected 属性

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

参数
TextureWidthWidth of the texture
TextureHeightHeight of the texture
DataRaw texture data

◆ CopyDataIntoSlot()

void FSlateTextureAtlas::CopyDataIntoSlot ( const FAtlasedTextureSlot *  SlotToCopyTo,
const TArray< uint8 > &  Data 
)
protected

Copies texture data into the atlas at a given slot

参数
SlotToCopyToThe occupied slot in the atlas where texture data should be copied to
DataThe 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.

参数
CopyRowDataInformation 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

参数
WidthThe width of the texture we are adding
HeightThe height of the texture we are adding

◆ GetHeight()

uint32 FSlateTextureAtlas::GetHeight ( ) const
inline
返回
the height of the atlas

◆ GetWidth()

uint32 FSlateTextureAtlas::GetWidth ( ) const
inline
返回
the width of the atlas

◆ ZeroRow()

void FSlateTextureAtlas::ZeroRow ( const FCopyRowData &  CopyRowData)
protected

Zeros out a row in the dest texture (used with PaddingStyle == PadWithZero).

respecting the padding.

参数
CopyRowDataInformation for how to copy a row

该类的文档由以下文件生成: