コード例 #1
0
        public override void Load(asStream stream)
        {
            Resolution = stream.GetShort();
            Stride     = stream.GetShort();

            Unknown = stream.GetShort();

            Flags = stream.GetShort();

            Material = stream.GetShort();
            Texture  = stream.GetShort();
            Physics  = stream.GetShort();

            var numVerts = (Resolution * Stride);

            Vertices = new List <DLPVertex>(numVerts);

            for (int i = 0; i < numVerts; i++)
            {
                var vertex = new DLPVertex(stream);
                Vertices.Add(vertex);
            }

            UserData = stream.GetString();
        }
コード例 #2
0
        public override void Load(asStream stream)
        {
            Name = stream.GetString(32);

            Emission = new ColorRGBA(stream);

            Ambient = new ColorRGBA(stream);
            Diffuse = new ColorRGBA(stream);

            Specular = new ColorRGBA(stream);

            Shininess = stream.GetFloat();

            Reserved = stream.GetShort();
        }
コード例 #3
0
        public override void Load(asStream stream)
        {
            Vertex = stream.GetShort();

            Normals = new Vector3()
            {
                X = stream.GetFloat(),
                Y = stream.GetFloat(),
                Z = stream.GetFloat()
            };

            SMap = stream.GetFloat();
            TMap = stream.GetFloat();

            Color = stream.GetInt();
        }