Struct in ldk_light.h

LDKPointLight

typedef struct LDKPointLight{
  u32 color;
  float intensity;
  float range;
  bool enabled;
}LDKPointLight;
Struct in ldk_light.h

LDKSpotLight

typedef struct LDKSpotLight{
  u32 color;
  float intensity;
  float range;
  float inner_angle;
  float outer_angle;
  bool enabled;
}LDKSpotLight;
Struct in ldk_light.h

LDKDirectionalLight

typedef struct LDKDirectionalLight{
  u32 color;
  float intensity;
  bool enabled;
  bool casts_shadows;
}LDKDirectionalLight;
Function in ldk_light.h

ldk_point_light_component_desc

Build the ECS registration descriptor for the point light component.

LDK_API LDKComponentDesc ldk_point_light_component_desc(u32 initial_capacity);

Parameters

u32 initial_capacity
Initial number of entries reserved in the registry.

Returns

A descriptor for the requested component or resource.

Function in ldk_light.h

ldk_spot_light_component_desc

Build the ECS registration descriptor for the spot light component.

LDK_API LDKComponentDesc ldk_spot_light_component_desc(u32 initial_capacity);

Parameters

u32 initial_capacity
Initial number of entries reserved in the registry.

Returns

A descriptor for the requested component or resource.

Function in ldk_light.h

ldk_directional_light_component_desc

Build the ECS registration descriptor for the directional light component.

LDK_API LDKComponentDesc ldk_directional_light_component_desc(u32 initial_capacity);

Parameters

u32 initial_capacity
Initial number of entries reserved in the registry.

Returns

A descriptor for the requested component or resource.