setC method
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;
}