setC method

  1. @override
VrDeviceInfoD setC(
  1. VrDeviceInfoC o
)
override

Copies the fields of the native struct o into this instance.

Implementation

@override
VrDeviceInfoD setC(VrDeviceInfoC o) {
  onOriginalPointer((p) {
    p.ref.lensDistortionValues = o.lensDistortionValues;
    p.ref.chromaAbCorrection = o.chromaAbCorrection;
  });
  hResolution = o.hResolution;
  vResolution = o.vResolution;
  hScreenSize = o.hScreenSize;
  vScreenSize = o.vScreenSize;
  eyeToScreenDistance = o.eyeToScreenDistance;
  lensSeparationDistance = o.lensSeparationDistance;
  interpupillaryDistance = o.interpupillaryDistance;
  lensDistortionValues = .generate(paramCount, (i) => o.lensDistortionValues[i]);
  chromaAbCorrection = .generate(paramCount, (i) => o.chromaAbCorrection[i]);
  return this;
}