Nez.ImageMaskTransition.render C# (CSharp) Méthode

render() public méthode

public render ( Graphics graphics ) : void
graphics Graphics
Résultat void
		public override void render( Graphics graphics )
		{
			Core.graphicsDevice.setRenderTarget( null );

			// if we are scaling out we dont need to render the previous scene anymore since we want the new scene to be visible
			if( !_isNewSceneLoaded )
			{
				graphics.batcher.begin( BlendState.Opaque, Core.defaultSamplerState, DepthStencilState.None, null );
				graphics.batcher.draw( previousSceneRender, Vector2.Zero, Color.White );
				graphics.batcher.end();
			}

			graphics.batcher.begin( _blendState, Core.defaultSamplerState, DepthStencilState.None, null );
			graphics.batcher.draw( _maskRenderTarget, Vector2.Zero, Color.White );
			graphics.batcher.end();
		}