Axiom.Graphics.TextureUnitState.SetTextureName C# (CSharp) Method

SetTextureName() public method

Sets this texture layer to use a single texture, given the name of the texture to use on this layer.
Applies to both fixed-function and programmable pipeline.
public SetTextureName ( string name ) : void
name string Name of the texture.
return void
		public void SetTextureName( string name )
		{
			SetTextureName( name, TextureType.TwoD );
		}

Same methods

TextureUnitState::SetTextureName ( string name, TextureType type ) : void
TextureUnitState::SetTextureName ( string name, TextureType type, int mipmaps ) : void
TextureUnitState::SetTextureName ( string name, TextureType type, int mipmaps, bool alpha ) : void

Usage Example

Beispiel #1
0
		/// <summary>
		///    Inserts a new TextureUnitState object into the Pass.
		/// </summary>
		/// <remarks>
		///    This unit is is added on top of all previous texture units.
		///    <p/>
		///    Applies to both fixed-function and programmable passes.
		/// </remarks>
		/// <param name="textureName">The basic name of the texture (i.e. brickwall.jpg)</param>
		/// <param name="texCoordSet">The index of the texture coordinate set to use.</param>
		/// <returns></returns>
		public TextureUnitState CreateTextureUnitState( string textureName, int texCoordSet )
		{
			TextureUnitState state = new TextureUnitState( this );
			state.SetTextureName( textureName );
			state.TextureCoordSet = texCoordSet;
			textureUnitStates.Add( state );
			// needs recompilation
			_parent.NotifyNeedsRecompile();
			DirtyHash();
			return state;
		}
All Usage Examples Of Axiom.Graphics.TextureUnitState::SetTextureName