Axiom.Core.Entity.EntityShadowRenderable.RebindPositionBuffer C# (CSharp) Method

RebindPositionBuffer() public method

Rebind the source positions for temp buffer users.
public RebindPositionBuffer ( VertexData vertexData, bool force ) : void
vertexData Axiom.Graphics.VertexData
force bool
return void
			public void RebindPositionBuffer( VertexData vertexData, bool force )
			{
				if ( force || this.currentVertexData != vertexData )
				{
					this.currentVertexData = vertexData;
					this.positionBuffer =
							this.currentVertexData.vertexBufferBinding.GetBuffer( this.originalPosBufferBinding );
					this.renderOperation.vertexData.vertexBufferBinding.SetBinding( 0, this.positionBuffer );
					if ( this.lightCap != null )
					{
						( (EntityShadowRenderable)this.lightCap ).RebindPositionBuffer( vertexData, force );
					}
				}
			}