Axiom.Core.TextureManager.SetPreferredFloatBitDepth C# (CSharp) Méthode

SetPreferredFloatBitDepth() public méthode

public SetPreferredFloatBitDepth ( ushort bits, bool reloadTextures ) : void
bits ushort
reloadTextures bool
Résultat void
		public void SetPreferredFloatBitDepth( ushort bits, bool reloadTextures )
		{
			_preferredFloatBitDepth = bits;

			if ( reloadTextures )
			{
				// Iterate throught all textures
				foreach ( Texture texture in Resources )
				{
					// Reload loaded and reloadable texture only
					if ( texture.IsLoaded && texture.IsReloadable )
					{
						texture.Unload();
						texture.DesiredFloatBitDepth = bits;
						texture.Load();
					}
					else
					{
						texture.DesiredFloatBitDepth = bits;
					}
				}
			}
		}