CreateLight method

  1. @override
LightD CreateLight(
  1. int type,
  2. Vector3D position,
  3. Vector3D target,
  4. ColorD color,
  5. ShaderD shader,
)
override

Create a light and get its shader locations

Implementation

@override
LightD CreateLight(
  int type,
  Vector3D position,
  Vector3D target,
  ColorD color,
  ShaderD shader,
) => $.Light$.RefCapture(
  RaylibCaptureIds.CreateLight,
  (p) => _wasm.CreateLight(
    p.toJS,
    type.toJS,
    $.Vector3$.Ref1(position).toJS,
    $.Vector3$.Ref2(target).toJS,
    $.Color$.Ref1(color).toJS,
    $.Shader$.Ref1(shader).toJS,
  ),
);