Click or drag to resize
Ab4d.SharpEngine logo

SceneRemoveSpriteBatch Method

Removes the specified SpriteBatch from the list of SpriteBatches associated to this Scene (created by CreateBackgroundSpriteBatch(String) or CreateOverlaySpriteBatch(String) methods).

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public void RemoveSpriteBatch(
	SpriteBatch spriteBatch,
	bool disposeSpriteBatch = true
)

Parameters

spriteBatch  SpriteBatch
SpriteBatch to remove
disposeSpriteBatch  Boolean  (Optional)
when true (by default) the Dispose method is called on the removed SpriteBatch
See Also