LDKGrassBladePreset

typedef enum LDKGrassBladePreset{
  LDK_GRASS_BLADE_PRESET_THIN=0,
  LDK_GRASS_BLADE_PRESET_CROSSED,
  LDK_GRASS_BLADE_PRESET_TUFT,
  LDK_GRASS_BLADE_PRESET_FLAT_TOP,
  LDK_GRASS_BLADE_PRESET_THORNY
}LDKGrassBladePreset;
Struct in ldk_grass_system.h

LDKGrassProfilePoint

One sample of the normalized blade profile. Height is in [0, 1]. Width is the full ribbon width, or the radial diameter, at that height.

typedef struct LDKGrassProfilePoint{
  float height;
  float width;
}LDKGrassProfilePoint;

LDK_GRASS_PROFILE_POINT_COUNT

#define LDK_GRASS_PROFILE_POINT_COUNT 4u

LDK_GRASS_TYPE_ID_INVALID

#define LDK_GRASS_TYPE_ID_INVALID UINT32_MAX
Function in ldk_grass_system.h

ldk_grass_type_is_valid

True when type_id names a configured slot in the active GrassSystem.

LDK_API bool ldk_grass_type_is_valid(LDKGrassTypeId type_id);

Parameters

LDKGrassTypeId type_id
Identifier of the type.

Returns

True when the queried condition holds; false otherwise.

Function in ldk_grass_system.h

ldk_grass_type_register

Register an additional type in the first free runtime slot. Names must be unique. Returns INVALID when the system is inactive, the description is invalid, the name already exists, or all 16 slots are occupied.

LDK_API LDKGrassTypeId ldk_grass_type_register(const LDKGrassTypeDesc *desc);

Parameters

const LDKGrassTypeDesc *desc
Description or configuration for this operation.

Returns

The requested value.