IDatasmithTextureElement

Windows
MacOS
Linux

Inheritance Hierarchy

IDatasmithElement

IDatasmithTextureElement

References

Module

DatasmithCore

Header

/Engine/Source/Runtime/Datasmith/DatasmithCore/Public/IDatasmithSceneElements.h

Include

#include "IDatasmithSceneElements.h"

Syntax

class IDatasmithTextureElement : public IDatasmithElement

Destructors

Name Description

Public function Virtual

~IDatasmithTextureElement()

Functions

Name Description

Public function Const

bool

 

GetAllowResize()

Get allow texture resizing

Public function Const

const uint8 ...

 

GetData

(
    uint32& OutDataSize,
    EDatasmithTextureFormat& OutFormat
)

Return the optional data, if loading from memory. Must be callable from any thread.

Public function Const

const TCHAR ...

 

GetFile()

Get texture filename

Public function Const

FMD5Hash

 

GetFileHash()

Return a MD5 hash of the content of the Texture Element.

Public function Const

float

 

GetRGBCurve()

Get texture gamma <= 0 for auto

Public function Const

EDatasmithCo...

 

GetSRGB()

Gets the color space of the texture

Public function Const

EDatasmithTe...

 

GetTextureAddressX()

Get texture X axis address mode

Public function Const

EDatasmithTe...

 

GetTextureAddressY()

Get texture Y axis address mode

Public function Const

EDatasmithTe...

 

GetTextureFilter()

Get texture filter

Public function Const

EDatasmithTe...

 

GetTextureMode()

Get texture usage

Public function

void

 

SetAllowResize

(
    bool bAllowResize
)

Set allow texture resizing

Public function

void

 

SetData

(
    const uint8* InData,
    uint32 InDataSize,
    EDatasmithTextureFormat InFormat
)

Set the output data buffer, used only when no output filename is set

Public function

void

 

SetFile

(
    const TCHAR* File
)

Set texture filename

Public function

void

 

SetFileHash

(
    FMD5Hash Hash
)

Set the MD5 hash of the current texture file. This should be a hash of its content.

Public function

void

 

SetRGBCurve

(
    const float InRGBCurve
)

Set texture gamma <= 0 for auto

Public function

void

 

SetSRGB

(
    EDatasmithColorSpace Option
)

Sets the color space of the texture

Public function

void

 

SetTextureAddressX

(
    EDatasmithTextureAddress Mode
)

Set texture X axis address mode

Public function

void

 

SetTextureAddressY

(
    EDatasmithTextureAddress Mode
)

Set texture Y axis address mode

Public function

void

 

SetTextureFilter

(
    EDatasmithTextureFilter Filter
)

Set texture filter

Public function

void

 

SetTextureMode

(
    EDatasmithTextureMode Mode
)

Set texture usage

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss