add_light function
- @Native<EntityId Function(Pointer<Void>, Uint8, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Bool)>(ffi.Pointer<ffi.Void>, ffi.Uint8, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Bool)>(symbol: '_add_light', assetId: 'thermion_dart')
int
add_light(
- Pointer<Void> viewer,
- int type,
- double colour,
- double intensity,
- double posX,
- double posY,
- double posZ,
- double dirX,
- double dirY,
- double dirZ,
- double falloffRadius,
- double spotLightConeInner,
- double spotLightConeOuter,
- double sunAngularRadius,
- double sunHaloSize,
- double sunHaloFallof,
- bool shadows,
)
Implementation
@ffi.Native<
EntityId Function(
ffi.Pointer<ffi.Void>,
ffi.Uint8,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Float,
ffi.Bool)>(symbol: '_add_light', assetId: 'thermion_dart')
external int add_light(
ffi.Pointer<ffi.Void> viewer,
int type,
double colour,
double intensity,
double posX,
double posY,
double posZ,
double dirX,
double dirY,
double dirZ,
double falloffRadius,
double spotLightConeInner,
double spotLightConeOuter,
double sunAngularRadius,
double sunHaloSize,
double sunHaloFallof,
bool shadows,
);