Beispiel #1
0
        public GXDisplayList(byte[] Buffer, HSD_AttributeGroup Group)
        {
            if (Buffer == null)
            {
                return;
            }
            HSDReader Reader = new HSDReader(new MemoryStream(Buffer));

            while (Reader.Position() < Buffer.Length)
            {
                GXPrimitiveGroup g = new GXPrimitiveGroup();
                if (!g.Read(Reader, Group))
                {
                    break;
                }
                Primitives.Add(g);
            }
            Reader.Close();
        }
Beispiel #2
0
 public void Dispose()
 {
     Reader.Close();
     Stream.Close();
 }