Axiom.Graphics.Pass.CreateTextureUnitState C# (CSharp) Méthode

CreateTextureUnitState() public méthode

Overloaded method.
public CreateTextureUnitState ( ) : TextureUnitState
Résultat TextureUnitState
		public TextureUnitState CreateTextureUnitState()
		{
			TextureUnitState state = new TextureUnitState( this );
			textureUnitStates.Add( state );
			// needs recompilation
			_parent.NotifyNeedsRecompile();
			DirtyHash();
			return state;
		}

Same methods

Pass::CreateTextureUnitState ( string textureName ) : TextureUnitState
Pass::CreateTextureUnitState ( string textureName, int texCoordSet ) : TextureUnitState

Usage Example

Exemple #1
0
		public override bool PreAddToRenderState( TargetRenderState targetRenderState, Pass srcPass, Pass dstPass )
		{
			TextureUnitState textureUnit;

			//Create the mask texture unit.
			textureUnit = dstPass.CreateTextureUnitState();
			textureUnit.SetTextureName( this.maskMapTextureName );
			this.maskMapSamplerIndex = dstPass.TextureUnitStatesCount - 1;

			//Create the reflection texture unit.
			textureUnit = dstPass.CreateTextureUnitState();

			if ( this.reflectionMapType == TextureType.TwoD )
			{
				textureUnit.SetTextureName( this.reflectionMapTextureName );
			}
			else
			{
				textureUnit.SetCubicTextureName( this.reflectionMapTextureName, true );
			}
			this.reflectionMapSamplerIndex = dstPass.TextureUnitStatesCount - 1;

			return true;
		}
All Usage Examples Of Axiom.Graphics.Pass::CreateTextureUnitState