Exemplo n.º 1
0
        public void WriteTo(Stream stream)
        {
            BinaryWriter writer = new BinaryWriter(stream);

            writer.Write(remMesh.ClassType);
            writer.Write(Length());
            frame.WriteTo(stream);
            writer.Write(numMats);
            name.WriteTo(stream);
            writer.Write(numFaces);
            writer.Write(numVertices);
            writer.Write(unknown);
            if (numMats > 0)
            {
                for (int i = 0; i < numMats; i++)
                {
                    materials[i].WriteTo(stream);
                }
            }
            if (numVertices > 0)
            {
                for (int i = 0; i < numVertices; i++)
                {
                    vertices[i].WriteTo(stream);
                }
            }
            if (numFaces > 0)
            {
                writer.Write(faces);
                writer.Write(faceMarks);
            }
        }
Exemplo n.º 2
0
        public void WriteTo(Stream stream)
        {
            bone.WriteTo(stream);
            BinaryWriter writer = new BinaryWriter(stream);

            writer.Write(numVertIdxWts);
            writer.Write(matrix);
            writer.Write(vertexIndices);
            writer.Write(vertexWeights);
        }
Exemplo n.º 3
0
        public override void WriteTo(Stream stream)
        {
            BinaryWriter writer = new BinaryWriter(stream);

            writer.Write(remSkin.ClassType);
            writer.Write(Length());
            mesh.WriteTo(stream);
            writer.Write(Count);
            if (Count > 0)
            {
                for (int i = 0; i < Count; i++)
                {
                    this[i].WriteTo(stream);
                }
            }
        }
Exemplo n.º 4
0
        public void WriteTo(Stream stream)
        {
            BinaryWriter writer = new BinaryWriter(stream);

            writer.Write(remMaterial.ClassType);
            writer.Write(Length());
            name.WriteTo(stream);
            writer.Write(properties);
            writer.Write(specularPower);
            writer.Write(unk_or_flag);
            unknown.WriteTo(stream);
            if (texture != null)
            {
                texture.WriteTo(stream);
            }
        }
Exemplo n.º 5
0
        public override void WriteTo(Stream stream)
        {
            BinaryWriter writer = new BinaryWriter(stream);

            writer.Write(remBone.ClassType);
            writer.Write(Length());
            name.WriteTo(stream);
            writer.Write(matrix);
            writer.Write(Count);
            if (Count > 0)
            {
                for (int i = 0; i < Count; i++)
                {
                    children[i].name.WriteTo(stream);
                }
            }
        }
Exemplo n.º 6
0
        public void WriteTo(Stream stream)
        {
            BinaryWriter writer = new BinaryWriter(stream);

            writer.Write(Type);
            writer.Write(Length());
            boneFrame.WriteTo(stream);
            writer.Write(scalings.Length);
            writer.Write(rotations.Length);
            writer.Write(translations.Length);
            foreach (reaIndexVector ivec in scalings)
            {
                ivec.WriteTo(stream);
            }
            foreach (reaIndexQuaternion iq in rotations)
            {
                iq.WriteTo(stream);
            }
            foreach (reaIndexVector ivec in translations)
            {
                ivec.WriteTo(stream);
            }
        }