Beispiel #1
0
 void INormal <Int16> .Write(BitWriter w, Int16 v)
 {
     w.UInt16((UInt16)v);
 }
Beispiel #2
0
 void IPacked <Ray> .Write(BitWriter w, Ray v)
 {
     w.Packed <Vector3>(v.origin); w.Packed <Vector3>(v.direction);
 }
Beispiel #3
0
 void INormal <T> .Write(BitWriter w, T v)
 {
     throw new NotSupportedException();
 }
Beispiel #4
0
 void IPacked <Color32> .Write(BitWriter w, Color32 v)
 {
     w.UInt64Packed(s_convert.ConvertToUInt32(v));
 }
Beispiel #5
0
 void IPacked <Vector4> .Write(BitWriter w, Vector4 v)
 {
     w.Packed <float>(v.x); w.Packed <float>(v.y); w.Packed <float>(v.z); w.Packed <float>(v.w);
 }
Beispiel #6
0
 void IPacked <UInt64> .Write(BitWriter w, UInt64 v)
 {
     w.UInt64Packed(v);
 }
Beispiel #7
0
 void IPacked <float> .Write(BitWriter w, float v)
 {
     w.UInt64Packed(s_convert.ConvertToUInt32(v));
 }
Beispiel #8
0
 void INormal <double> .Write(BitWriter w, double v)
 {
     w.Normal <UInt64>(s_convert.ConvertToUInt64(v));
 }
Beispiel #9
0
 void INormal <Color32> .Write(BitWriter w, Color32 v)
 {
     w.Normal <UInt32>(s_convert.ConvertToUInt32(v));
 }
Beispiel #10
0
 void INormal <Int64> .Write(BitWriter w, Int64 v)
 {
     w.UInt64((UInt64)v);
 }
Beispiel #11
0
 void INormal <float> .Write(BitWriter w, float v)
 {
     w.Normal <UInt32>(s_convert.ConvertToUInt32(v));
 }
Beispiel #12
0
 void INormal <UInt64> .Write(BitWriter w, UInt64 v)
 {
     w.UInt64(v);
 }
Beispiel #13
0
 void INormal <Int32> .Write(BitWriter w, Int32 v)
 {
     w.UInt32((UInt32)v);
 }
Beispiel #14
0
 void INormal <UInt32> .Write(BitWriter w, UInt32 v)
 {
     w.UInt32(v);
 }
Beispiel #15
0
 void IPacked <sbyte> .Write(BitWriter w, sbyte v)
 {
     w.Byte((  byte)v);
 }
Beispiel #16
0
 void INormal <Vector2> .Write(BitWriter w, Vector2 v)
 {
     w.Normal <float>(v.x); w.Normal <float>(v.y);
 }
Beispiel #17
0
 void IPacked <char> .Write(BitWriter w, char v)
 {
     w.UInt64Packed(v);
 }
Beispiel #18
0
 void INormal <Vector4> .Write(BitWriter w, Vector4 v)
 {
     w.Normal <float>(v.x); w.Normal <float>(v.y); w.Normal <float>(v.z); w.Normal <float>(v.w);
 }
Beispiel #19
0
 void IPacked <Int64> .Write(BitWriter w, Int64 v)
 {
     w.UInt64Packed(Arithmetic.ZigZagEncode(v));
 }
Beispiel #20
0
 void INormal <Color> .Write(BitWriter w, Color v)
 {
     w.Normal <float>(v.r); w.Normal <float>(v.g); w.Normal <float>(v.b); w.Normal <float>(v.a);
 }
Beispiel #21
0
 void IPacked <double> .Write(BitWriter w, double v)
 {
     w.UInt64Packed(s_convert.ConvertToUInt64(v));
 }
Beispiel #22
0
 void INormal <Ray> .Write(BitWriter w, Ray v)
 {
     w.Normal <Vector3>(v.origin); w.Normal <Vector3>(v.direction);
 }
Beispiel #23
0
 void IPacked <Vector2> .Write(BitWriter w, Vector2 v)
 {
     w.Packed <float>(v.x); w.Packed <float>(v.y);
 }
Beispiel #24
0
 void INormal <Quaternion> .Write(BitWriter w, Quaternion v)
 {
     w.Normal <float>(v.x); w.Normal <float>(v.y); w.Normal <float>(v.z); w.Normal <float>(v.w);
 }
Beispiel #25
0
 void IPacked <Color> .Write(BitWriter w, Color v)
 {
     w.Packed <float>(v.r); w.Packed <float>(v.g); w.Packed <float>(v.b); w.Packed <float>(v.a);
 }
Beispiel #26
0
 void IPacked <bool> .Write(BitWriter w, bool v)
 {
     w.Bit(v);
 }
Beispiel #27
0
 void IPacked <Quaternion> .Write(BitWriter w, Quaternion v)
 {
     w.Packed <float>(v.x); w.Packed <float>(v.y); w.Packed <float>(v.z); w.Packed <float>(v.w);
 }
Beispiel #28
0
 void IPacked <byte> .Write(BitWriter w, byte v)
 {
     w.Byte(v);
 }
Beispiel #29
0
 void IPacked <T> .Write(BitWriter w, T v)
 {
     throw new NotSupportedException();
 }
Beispiel #30
0
 void INormal <UInt16> .Write(BitWriter w, UInt16 v)
 {
     w.UInt16(v);
 }