LightD constructor

LightD({
  1. StructPointer<LightD>? op,
  2. LightType type = .LIGHT_POINT,
  3. bool enabled = false,
  4. Vector3D? position,
  5. Vector3D? target,
  6. ColorD? color,
  7. double attenuation = 0,
  8. int enabledLoc = 0,
  9. int typeLoc = 0,
  10. int positionLoc = 0,
  11. int targetLoc = 0,
  12. int colorLoc = 0,
  13. int attenuationLoc = 0,
})

Implementation

LightD({
  super.op,
  LightType type = .LIGHT_POINT,
  bool enabled = false,
  Vector3D? position,
  Vector3D? target,
  ColorD? color,
  double attenuation = 0,
  int enabledLoc = 0,
  int typeLoc = 0,
  int positionLoc = 0,
  int targetLoc = 0,
  int colorLoc = 0,
  int attenuationLoc = 0,
}) :
  _type = type,
  _enabled = enabled,
  _position = position ?? .zero(),
  _target = target ?? .zero(),
  _color = color ?? .zero(),
  _attenuation = attenuation,
  _enabledLoc = enabledLoc,
  _typeLoc = typeLoc,
  _positionLoc = positionLoc,
  _targetLoc = targetLoc,
  _colorLoc = colorLoc,
  _attenuationLoc = attenuationLoc;