add_light function

  1. @Native<Int 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)>()
int add_light(
  1. Pointer<Void> viewer,
  2. int type,
  3. double colour,
  4. double intensity,
  5. double posX,
  6. double posY,
  7. double posZ,
  8. double dirX,
  9. double dirY,
  10. double dirZ,
  11. double falloffRadius,
  12. double spotLightConeInner,
  13. double spotLightConeOuter,
  14. double sunAngularRadius,
  15. double sunHaloSize,
  16. double sunHaloFallof,
  17. bool shadows,
)

Implementation

@ffi.Native<
    ffi.Int 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)>()
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,
);