예제 #1
0
        public CLUT ReadCLUT()
        {
            CLUT clut = new CLUT();

            reader.BaseStream.Seek(0, SeekOrigin.Begin);
            clut.Length = reader.ReadUInt32();
            clut.X      = reader.ReadUInt16();
            clut.Y      = reader.ReadUInt16();
            clut.Width  = reader.ReadUInt16();
            clut.Height = reader.ReadUInt16();
            for (int i = 0; i < clut.Height; i++)
            {
                Palette palette = new Palette(clut.Width);
                for (int j = 0; j < clut.Width; j++)
                {
                    palette[j] = new PaletteEntry(reader.ReadUInt16());
                }
                clut[i] = palette;
            }
            return(clut);
        }
예제 #2
0
 public MIM()
 {
     Clut     = new CLUT();
     Textures = new List <Texture>();
 }