MaterialsOptimizer.Material.Layer.Texture.Write C# (CSharp) Method

Write() public method

public Write ( BinaryWriter W ) : void
W System.IO.BinaryWriter
return void
                public void Write( BinaryWriter W )
                {
                    W.Write( m_rawTextureLine );
                    W.Write( m_name );
                    W.Write( m_fileName != null ? m_fileName.FullName : "" );	// Can be null when using ipr_constantColor
                    W.Write( m_error != null ? m_error.Message : "" );
                    W.Write( (int) m_constantColorType );
                    W.Write( m_customConstantColor.x );
                    W.Write( m_customConstantColor.y );
                    W.Write( m_customConstantColor.z );
                    W.Write( m_customConstantColor.w );
                }