Exemplo n.º 1
0
        public static DDCaps Read(System.IO.BinaryReader r)
        {
            DDCaps caps = new DDCaps();
            caps.caps1 = r.ReadInt32();
            caps.caps2 = r.ReadInt32();
            r.ReadInt64(); // reserved[2]

            return caps;
        }
Exemplo n.º 2
0
        public static DDCaps Read(System.IO.BinaryReader r)
        {
            DDCaps caps = new DDCaps();

            caps.caps1 = r.ReadInt32();
            caps.caps2 = r.ReadInt32();
            r.ReadInt64(); // reserved[2]

            return(caps);
        }
Exemplo n.º 3
0
        public static DDSurfaceDesc2 Read(BinaryReader reader)
        {
            DDSurfaceDesc2 s = new DDSurfaceDesc2();

            s.size              = reader.ReadInt32();
            s.flags             = reader.ReadInt32();
            s.height            = reader.ReadInt32();
            s.width             = reader.ReadInt32();
            s.pitchOrLinearSize = reader.ReadInt32();
            s.depth             = reader.ReadInt32();
            s.mipCount          = reader.ReadInt32();
            for (int i = 0; i < 11; i++) // reserved1
            {
                reader.ReadInt32();
            }
            s.ddpfPixelFormat = DDPixelFormat.Read(reader);
            s.ddsCaps         = DDCaps.Read(reader);
            reader.ReadInt32(); // reserved2

            return(s);
        }