class TextureImportOptions

Inherits: ImportOptions

Contains import options you may use to control how is a texture imported.

Public

Constructors

TextureImportOptions

TextureImportOptions() = default

Methods

staticCreate

static SPtr<TextureImportOptions> Create()

Creates a new import options object that allows you to customize how are textures imported.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Fields

Format

Pixel format to import as.

GenerateMips

bool GenerateMips

Enables or disables mipmap generation for the texture.

MaxMip

u32 MaxMip

Maximum mip level to generate when generating mipmaps.

If 0 then maximum amount of mip levels will be generated.

CpuCached

bool CpuCached

Determines whether the texture data is also stored in main memory, available for fast CPU access.

SRgb

bool SRgb

Determines whether the texture data should be treated as if its in sRGB (gamma) space.

Such texture will be converted by hardware to linear space before use on the GPU.

Cubemap

bool Cubemap

Determines should the texture be imported as a cubemap.

See CubemapSourceType to choose how will the source texture be converted to a cubemap.

CubemapSourceType

Determines how should the source texture be interpreted when generating a cubemap.

Only relevant when is set to true.