Representation of a texture for fonts in which characters are packed tightly based on their bounding rectangle 更多...
#include <FontTypes.h>
类 FSlateFontAtlas 继承关系图:Public 成员函数 | |
| const struct FAtlasedTextureSlot * | AddCharacter (const FCharacterRenderData &CharInfo) |
| Adds a character to the texture. 更多... | |
| void | Flush () |
| Flushes all cached data. | |
| virtual bool | IsGrayscale () const override final |
| Returns whether the texture resource is 8-bit grayscale or 8-bit per-channel BGRA color | |
Public 成员函数 继承自 ISlateFontTexture | |
| virtual class FTextureResource * | GetEngineTexture ()=0 |
| Returns the texture resource used the Engine | |
| virtual class FSlateShaderResource * | GetSlateTexture ()=0 |
| Returns the texture resource used by Slate | |
| virtual bool | IsGrayscale () const =0 |
| Returns whether the texture resource is 8-bit grayscale or 8-bit per-channel BGRA color | |
| virtual void | ReleaseResources () |
| Releases rendering resources of this texture | |
Public 成员函数 继承自 FSlateTextureAtlas | |
| 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 成员函数 继承自 FSlateTextureAtlas | |
| 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 属性 继承自 FSlateTextureAtlas | |
| 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 | |
Representation of a texture for fonts in which characters are packed tightly based on their bounding rectangle
| const struct FAtlasedTextureSlot * FSlateFontAtlas::AddCharacter | ( | const FCharacterRenderData & | CharInfo | ) |
Adds a character to the texture.
| CharInfo | Information about the size of the character |