public void Load(DataStreamPtr reader) { if (globalVersion == 0) { index = MBOgreUtil.LoadInt32(reader); col = MBOgreUtil.LoadUInt32(reader); // color x vert! as 4 bytes AABBGGRR __norm = MBOgreUtil.LoadPoint3F(reader); ta = MBOgreUtil.LoadPoint2F(reader); ta.Y = 1 - ta.Y; tb = MBOgreUtil.LoadPoint2F(reader); tb.Y = 1 - tb.Y; } else if (globalVersion == 1) { index = MBOgreUtil.LoadInt32(reader); col = MBOgreUtil.LoadUInt32(reader); // color x vert! as 4 bytes AABBGGRR __norm = MBOgreUtil.LoadPoint3F(reader); tang = MBOgreUtil.LoadPoint3F(reader); tangi = MBOgreUtil.LoadByte(reader); ta = MBOgreUtil.LoadPoint2F(reader); ta.Y = 1 - ta.Y; tb = ta; } else if (globalVersion == 2) { index = MBOgreUtil.LoadInt32(reader); col = MBOgreUtil.LoadUInt32(reader); // color x vert! as 4 bytes AABBGGRR __norm = MBOgreUtil.LoadPoint3F(reader); ta = MBOgreUtil.LoadPoint2F(reader); ta.Y = 1 - ta.Y; tb = ta; } }