FBX.SceneLoader.Objects.Material.AddTexture C# (CSharp) Method

AddTexture() public method

Adds a generic texture to the material
public AddTexture ( LoaderTempTexture _Texture ) : void
_Texture LoaderTempTexture The texture to add
return void
        public void AddTexture( LoaderTempTexture _Texture )
        {
            if ( m_TexturesRegular.ContainsKey( _Texture.Name ) )
                throw new Exception( "Material \"" + m_Name + "\" already contains a GENERIC texture named \"" + _Texture.Name + "\"!" );

            _Texture.GenerateMipMaps = m_Owner.GenerateMipMapsRegular;
            m_TexturesRegular[_Texture.Name] = _Texture;
        }