Fusion.Engine.Graphics.SpriteLayer.Clear C# (CSharp) Method

Clear() public method

Clears all sprites.
public Clear ( ) : void
return void
		public void Clear ()
		{
			dirty		=	true;
			spriteCount	=	0;
			vertices.Clear();
			groups.Clear();

			//	should be enough
			int min = -49999;
			int max = 99999;

			SetClipRectangle( 0, new Rectangle(min, min, max, max), Color.White );
		}

Usage Example

Esempio n. 1
0
		/// <summary>
		/// Draws entire interface
		/// </summary>
		/// <param name="gameTime"></param>
		void Draw ( GameTime gameTime, SpriteLayer spriteLayer )
		{
			if (SkipUserInterface) {
				return;
			}

			spriteLayer.Clear();

			Frame.DrawNonRecursive( RootFrame, gameTime, spriteLayer );
		}