Enum in ldk_material.h

LDKMaterialTextureFilter

typedef enum LDKMaterialTextureFilter{
  LDK_MATERIAL_TEXTURE_FILTER_NEAREST=0,
  LDK_MATERIAL_TEXTURE_FILTER_LINEAR=1
}LDKMaterialTextureFilter;
Enum in ldk_material.h

LDKMaterialTextureMipFilter

typedef enum LDKMaterialTextureMipFilter{
  LDK_MATERIAL_TEXTURE_MIP_FILTER_NONE=0,
  LDK_MATERIAL_TEXTURE_MIP_FILTER_NEAREST=1,
  LDK_MATERIAL_TEXTURE_MIP_FILTER_LINEAR=2
}LDKMaterialTextureMipFilter;
Enum in ldk_material.h

LDKMaterialTextureSlot

typedef enum LDKMaterialTextureSlot{
  LDK_MATERIAL_TEXTURE_SLOT_ALBEDO=0,
  LDK_MATERIAL_TEXTURE_SLOT_NORMAL=1,
  LDK_MATERIAL_TEXTURE_SLOT_SPECULAR=2,
  LDK_MATERIAL_TEXTURE_SLOT_3=3,
  LDK_MATERIAL_TEXTURE_SLOT_4=4,
  LDK_MATERIAL_TEXTURE_SLOT_5=5,
  LDK_MATERIAL_TEXTURE_SLOT_6=6,
  LDK_MATERIAL_TEXTURE_SLOT_7=7
}LDKMaterialTextureSlot;
Enum in ldk_material.h

LDKMaterialTextureWrap

typedef enum LDKMaterialTextureWrap{
  LDK_MATERIAL_TEXTURE_WRAP_REPEAT=0,
  LDK_MATERIAL_TEXTURE_WRAP_CLAMP=1,
  LDK_MATERIAL_TEXTURE_WRAP_MIRROR=2
}LDKMaterialTextureWrap;
Macro in ldk_material.h

LDK_MATERIAL_ADDITIONAL_TEXTURE_COUNT

#define LDK_MATERIAL_ADDITIONAL_TEXTURE_COUNT 5u
Macro in ldk_material.h

LDK_MATERIAL_TEXTURE_SLOT_COUNT

#define LDK_MATERIAL_TEXTURE_SLOT_COUNT 8u
Function in ldk_material.h

ldk_material_texture_atlas_set

Assign an atlas region to a material slot; region 0 means full atlas.

LDK_API bool ldk_material_texture_atlas_set(
 LDKMaterialDesc *desc,
 u32 slot,
 LDKAssetTextureAtlas atlas,
 u64 region
);

Parameters

LDKMaterialDesc *desc
Description or configuration for this operation.
u32 slot
Resource or binding slot identifier.
LDKAssetTextureAtlas atlas
Texture atlas being inspected or modified.
u64 region
Region used by this operation.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_material.h

ldk_material_texture_settings_get

Return independent settings, or the legacy material defaults.

LDK_API LDKMaterialTextureSettings ldk_material_texture_settings_get(
 LDKMaterialDesc const *desc,
 u32 slot
);

Parameters

LDKMaterialDesc const *desc
Description or configuration for this operation.
u32 slot
Resource or binding slot identifier.

Returns

The requested value.

Function in ldk_material.h

ldk_material_texture_slot_get

Return the image assigned to a material texture slot.

LDK_API LDKAssetImage ldk_material_texture_slot_get(
 LDKMaterialDesc const *desc,
 u32 slot
);

Parameters

LDKMaterialDesc const *desc
Description or configuration for this operation.
u32 slot
Resource or binding slot identifier.

Returns

Handle to the requested object or resource.

Function in ldk_material.h

ldk_material_texture_slot_set

Assign an image to a material texture slot.

LDK_API bool ldk_material_texture_slot_set(
 LDKMaterialDesc *desc,
 u32 slot,
 LDKAssetImage image
);

Parameters

LDKMaterialDesc *desc
Description or configuration for this operation.
u32 slot
Resource or binding slot identifier.
LDKAssetImage image
Image used by this operation.

Returns

True if the operation succeeds; false otherwise.