WriteTexel() public méthode

public WriteTexel ( Texel t ) : void
t Texel
Résultat void
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.OrientByMotion);
            writer.Write(new byte[3]);

            this.NumFiles = this.AppearanceFiles.Count;
            writer.Write(this.NumFiles);
            writer.Write(this.NumFrames);
            writer.Write(this.FrameWidth);
            writer.Write(this.FrameHeight);
            writer.Write((Int32)this.MaterialType);
            writer.WriteTexel(this.Emissive);
            writer.WriteTexel(this.Specular);
            writer.Write(this.SpecularExponent);
            writer.Write(this.FramesPerSecond);
            writer.Write(this.AnimationRate);
            writer.Write(this.AnimationRateVar);
        }
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.UsePalette);
            writer.Write(new byte[3]);

            writer.WriteTexel(this.Color);
            writer.Write(this.Hold);
            writer.Write(this.Fade);
        }
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.UsePalette);
            writer.Write(new byte[3]);

            writer.WriteTexel(this.Color);
            writer.Write(this.Hold);
            writer.Write(this.Fade);
        }
Exemple #4
0
        public void Write(Stream stream)
        {
            using (PrtBinaryWriter writer = new PrtBinaryWriter(new LittleEndianBitConverter(), stream))
            {
                writer.Write(this.Version);

                this.Emitter.Write(writer);
                this.Shape.Write(writer);
                this.Appearance.Write(writer);
                this.Opacity.Write(writer);
                this.Scale.Write(writer);
                this.Color.Write(writer);
                this.Forces.Write(writer);
                this.Collision.Write(writer);

                writer.Write(this.BrgFileName);

                for (int i = 0; i < this.Color.NumPaletteColors; i++)
                {
                    writer.WriteTexel(this.Color.PaletteColors[i]);
                }

                for (int i = 0; i < this.Appearance.NumFiles; i++)
                {
                    writer.Write(this.Appearance.AppearanceWeights[i]);
                }
                for (int i = 0; i < this.Appearance.NumFiles; i++)
                {
                    writer.Write(this.Appearance.AppearanceFiles[i]);
                }

                for (int i = 0; i < this.Opacity.NumStages; i++)
                {
                    this.Opacity.OpacityStages[i].Write(writer);
                }

                for (int i = 0; i < this.Scale.NumStages; i++)
                {
                    this.Scale.ScaleStages[i].Write(writer);
                }

                for (int i = 0; i < this.Color.NumStages; i++)
                {
                    this.Color.ColorStages[i].Write(writer);
                }

                for (int i = 0; i < this.Collision.NumTypes; i++)
                {
                    this.Collision.CollisionTypes[i].Write(writer);
                }
            }
        }
Exemple #5
0
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.UsePalette);
            writer.Write(this.LoopingCycle);
            writer.Write(new byte[2]);

            this.NumPaletteColors = this.PaletteColors.Count;
            this.NumStages        = this.ColorStages.Count;
            writer.Write(this.NumPaletteColors);
            writer.Write(this.NumStages);
            writer.Write(this.CycleTime);
            writer.Write(this.CycleTimeVar);
            writer.Write(this.WorldLightingInfluence);
            writer.WriteTexel(this.Color);
        }
Exemple #6
0
        public void Write(Stream stream)
        {
            using (PrtBinaryWriter writer = new PrtBinaryWriter(new LittleEndianBitConverter(), stream))
            {
                writer.Write(this.Version);

                this.Emitter.Write(writer);
                this.Shape.Write(writer);
                this.Appearance.Write(writer);
                this.Opacity.Write(writer);
                this.Scale.Write(writer);
                this.Color.Write(writer);
                this.Forces.Write(writer);
                this.Collision.Write(writer);

                writer.Write(this.BrgFileName);

                for (int i = 0; i < this.Color.NumPaletteColors; i++)
                {
                    writer.WriteTexel(this.Color.PaletteColors[i]);
                }

                for (int i = 0; i < this.Appearance.NumFiles; i++)
                {
                    writer.Write(this.Appearance.AppearanceWeights[i]);
                }
                for (int i = 0; i < this.Appearance.NumFiles; i++)
                {
                    writer.Write(this.Appearance.AppearanceFiles[i]);
                }

                for (int i = 0; i < this.Opacity.NumStages; i++)
                {
                    this.Opacity.OpacityStages[i].Write(writer);
                }

                for (int i = 0; i < this.Scale.NumStages; i++)
                {
                    this.Scale.ScaleStages[i].Write(writer);
                }

                for (int i = 0; i < this.Color.NumStages; i++)
                {
                    this.Color.ColorStages[i].Write(writer);
                }

                for (int i = 0; i < this.Collision.NumTypes; i++)
                {
                    this.Collision.CollisionTypes[i].Write(writer);
                }
            }
        }
Exemple #7
0
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.UsePalette);
            writer.Write(this.LoopingCycle);
            writer.Write(new byte[2]);

            this.NumPaletteColors = this.PaletteColors.Count;
            this.NumStages = this.ColorStages.Count;
            writer.Write(this.NumPaletteColors);
            writer.Write(this.NumStages);
            writer.Write(this.CycleTime);
            writer.Write(this.CycleTimeVar);
            writer.Write(this.WorldLightingInfluence);
            writer.WriteTexel(this.Color);
        }
        public void Write(PrtBinaryWriter writer)
        {
            writer.Write(this.OrientByMotion);
            writer.Write(new byte[3]);

            this.NumFiles = this.AppearanceFiles.Count;
            writer.Write(this.NumFiles);
            writer.Write(this.NumFrames);
            writer.Write(this.FrameWidth);
            writer.Write(this.FrameHeight);
            writer.Write((Int32)this.MaterialType);
            writer.WriteTexel(this.Emissive);
            writer.WriteTexel(this.Specular);
            writer.Write(this.SpecularExponent);
            writer.Write(this.FramesPerSecond);
            writer.Write(this.AnimationRate);
            writer.Write(this.AnimationRateVar);
        }