Esempio n. 1
0
 public Occluder(int apiVersion, EventHandler handler, OccluderType occluderType, Vertex origin, Vertex normal, Vertex xAxis, Vertex yAxis, float pairOffset)
     : base(apiVersion, handler)
 {
     this.occluderType = occluderType;
     this.origin       = new Vertex(requestedApiVersion, handler, origin);
     this.normal       = new Vertex(requestedApiVersion, handler, normal);
     this.xAxis        = new Vertex(requestedApiVersion, handler, xAxis);
     this.yAxis        = new Vertex(requestedApiVersion, handler, yAxis);
     this.pairOffset   = pairOffset;
 }
Esempio n. 2
0
            void Parse(Stream s)
            {
                BinaryReader r = new BinaryReader(s);

                occluderType = (OccluderType)r.ReadUInt32();
                origin       = new Vertex(recommendedApiVersion, handler, s);
                normal       = new Vertex(recommendedApiVersion, handler, s);
                xAxis        = new Vertex(recommendedApiVersion, handler, s);
                yAxis        = new Vertex(recommendedApiVersion, handler, s);
                pairOffset   = r.ReadSingle();
            }