public void SetRawData(ref BezierPatchRaw src) { cp[0] = src.cp00; cp[1] = src.cp01; cp[2] = src.cp02; cp[3] = src.cp03; cp[4] = src.cp04; cp[5] = src.cp05; cp[6] = src.cp06; cp[7] = src.cp07; cp[8] = src.cp08; cp[9] = src.cp09; cp[10] = src.cp10; cp[11] = src.cp11; cp[12] = src.cp12; cp[13] = src.cp13; cp[14] = src.cp14; cp[15] = src.cp15; }
// I HATE C# public void GetRawData(ref BezierPatchRaw dst) { dst.cp00 = cp[0]; dst.cp01 = cp[1]; dst.cp02 = cp[2]; dst.cp03 = cp[3]; dst.cp04 = cp[4]; dst.cp05 = cp[5]; dst.cp06 = cp[6]; dst.cp07 = cp[7]; dst.cp08 = cp[8]; dst.cp09 = cp[9]; dst.cp10 = cp[10]; dst.cp11 = cp[11]; dst.cp12 = cp[12]; dst.cp13 = cp[13]; dst.cp14 = cp[14]; dst.cp15 = cp[15]; }
public void SetRawData(ref BezierPatchRaw src) { cp[ 0] = src.cp00; cp[ 1] = src.cp01; cp[ 2] = src.cp02; cp[ 3] = src.cp03; cp[ 4] = src.cp04; cp[ 5] = src.cp05; cp[ 6] = src.cp06; cp[ 7] = src.cp07; cp[ 8] = src.cp08; cp[ 9] = src.cp09; cp[10] = src.cp10; cp[11] = src.cp11; cp[12] = src.cp12; cp[13] = src.cp13; cp[14] = src.cp14; cp[15] = src.cp15; }
// I HATE C# public void GetRawData(ref BezierPatchRaw dst) { dst.cp00 = cp[ 0]; dst.cp01 = cp[ 1]; dst.cp02 = cp[ 2]; dst.cp03 = cp[ 3]; dst.cp04 = cp[ 4]; dst.cp05 = cp[ 5]; dst.cp06 = cp[ 6]; dst.cp07 = cp[ 7]; dst.cp08 = cp[ 8]; dst.cp09 = cp[ 9]; dst.cp10 = cp[10]; dst.cp11 = cp[11]; dst.cp12 = cp[12]; dst.cp13 = cp[13]; dst.cp14 = cp[14]; dst.cp15 = cp[15]; }
public void SetBezierPatches(BezierPatchRaw[] src) { m_bpatches = src; }
public void SetBezierPatches(BezierPatchRaw[] src) { m_dirty = true; m_bpatch_src = src; }