Navigation
API > API/Developer > API/Developer/DatasmithFacade
Datasmith facade.
| Name | FDatasmithFacadeTexture |
| Type | class |
| Header File | /Engine/Source/Developer/Datasmith/DatasmithFacade/Public/DatasmithFacadeTexture.h |
| Include Path | #include "DatasmithFacadeTexture.h" |
Syntax
class FDatasmithFacadeTexture : public FDatasmithFacadeElement
Inheritance Hierarchy
- FDatasmithFacadeElement → FDatasmithFacadeTexture
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDatasmithFacadeTexture
(
const TCHAR* InElementName |
DatasmithFacadeTexture.h | ||
FDatasmithFacadeTexture
(
TSharedRef< IDatasmithTextureElement > InTextureElement |
DatasmithFacadeTexture.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FDatasmithFacadeTexture() |
DatasmithFacadeTexture.h |
Enums
Public
| Name | Remarks |
|---|---|
| EColorSpace | Texture color space. |
| ETextureAddress | Texture address mode for textures. |
| ETextureFilter | Texture filtering for textures. |
| ETextureFormat | Texture format for raw data importing. |
| ETextureMode | Possible Datasmith texture modes. |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetAllowResize() |
Get allow texture resizing | DatasmithFacadeTexture.h | |
const uint8 * GetData
(
uint32& OutDataSize, |
Return the optional data, if loading from memory. Must be callable from any thread. | DatasmithFacadeTexture.h | |
TSharedRef< IDatasmithTextureElement > GetDatasmithTextureElement() |
DatasmithFacadeTexture.h | ||
const TCHAR * GetFile() |
Get texture filename | DatasmithFacadeTexture.h | |
void GetFileHash
(
TCHAR OutBuffer, |
Return a string representation of a MD5 hash of the content of the Texture Element. | DatasmithFacadeTexture.h | |
float GetRGBCurve() |
Get texture gamma <= 0 for auto | DatasmithFacadeTexture.h | |
EColorSpace GetSRGB() |
Gets the color space of the texture | DatasmithFacadeTexture.h | |
ETextureAddress GetTextureAddressX() |
Get texture X axis address mode | DatasmithFacadeTexture.h | |
ETextureAddress GetTextureAddressY() |
Get texture Y axis address mode | DatasmithFacadeTexture.h | |
ETextureFilter GetTextureFilter() |
Get texture filter | DatasmithFacadeTexture.h | |
ETextureMode GetTextureMode() |
Get texture usage | DatasmithFacadeTexture.h | |
void SetAllowResize
(
bool bAllowResize |
Set allow texture resizing | DatasmithFacadeTexture.h | |
void SetData
(
const uint8* InData, |
Set the output data buffer, used only when no output filename is set | DatasmithFacadeTexture.h | |
void SetFile
(
const TCHAR* File |
Set texture filename | DatasmithFacadeTexture.h | |
void SetFileHash
(
const TCHAR* Hash |
Set the MD5 hash of the current texture file. This should be a hash of its content. | DatasmithFacadeTexture.h | |
void SetRGBCurve
(
const float InRGBCurve |
Set texture gamma <= 0 for auto | DatasmithFacadeTexture.h | |
void SetSRGB
(
EColorSpace Option |
Sets the color space of the texture | DatasmithFacadeTexture.h | |
void SetTextureAddressX
(
ETextureAddress Mode |
Set texture X axis address mode | DatasmithFacadeTexture.h | |
void SetTextureAddressY
(
ETextureAddress Mode |
Set texture Y axis address mode | DatasmithFacadeTexture.h | |
void SetTextureFilter
(
ETextureFilter Filter |
Set texture filter | DatasmithFacadeTexture.h | |
void SetTextureMode
(
ETextureMode Mode |
Set texture usage | DatasmithFacadeTexture.h |