AoMEngineLibrary.Graphics.Prt.PrtBinaryReader.ReadTexel C# (CSharp) Method

ReadTexel() public method

public ReadTexel ( ) : Texel
return Texel
        public Texel ReadTexel()
        {
            Texel t = new Texel();
            t.B = this.ReadByte();
            t.G = this.ReadByte();
            t.R = this.ReadByte();
            t.A = this.ReadByte();
            return t;
        }

Usage Example

        public PrtColorStage(PrtBinaryReader reader)
        {
            this.UsePalette = reader.ReadBoolean();
            reader.ReadBytes(3);

            this.Color = reader.ReadTexel();
            this.Hold  = reader.ReadSingle();
            this.Fade  = reader.ReadSingle();
        }
All Usage Examples Of AoMEngineLibrary.Graphics.Prt.PrtBinaryReader::ReadTexel