Inheritance: IMaterialTexture
コード例 #1
0
        /// <summary>
        /// Deserializes a material texture from binary data.
        /// </summary>
        /// <param name="reader">
        /// The binary reader to read from.
        /// </param>
        /// <returns>
        /// The deserialized material texture.
        /// </returns>
        private IMaterialTexture DeserializeMaterialTexture(BinaryReader reader)
        {
            if (reader.ReadBoolean())
            {
                var texture = new MaterialTexture();
                texture.HintPath = reader.ReadString();
                return(texture);
            }

            return(null);
        }
コード例 #2
0
        /// <summary>
        /// Deserializes a material texture from binary data.
        /// </summary>
        /// <param name="reader">
        /// The binary reader to read from.
        /// </param>
        /// <returns>
        /// The deserialized material texture.
        /// </returns>
        private IMaterialTexture DeserializeMaterialTexture(BinaryReader reader)
        {
            if (reader.ReadBoolean())
            {
                var texture = new MaterialTexture();
                texture.HintPath = reader.ReadString();
                return texture;
            }

            return null;
        }