Click or drag to resize
Ab4d.SharpEngine logo

SceneCreateBackgroundSpriteBatch Method

Creates a SpriteBatch that will be rendered before the objects in this Scene are rendered. SpriteBatch that is created from Scene object can use only relative coordinates. To use absolute coordinates, call SceneView.CreateBackgroundSpriteBatch(String) or SceneView.CreateOverlaySpriteBatch(String) methods. To remove the created SpriteBatch call the RemoveSpriteBatch(SpriteBatch, Boolean) or RemoveAllSpriteBatches(Boolean) methods. It is also possible to add sprites that are rendered only with a specific SceneView - in this case call SceneView.CreateBackgroundSpriteBatch(String) or SceneView.CreateOverlaySpriteBatch(String) methods.

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public SpriteBatch CreateBackgroundSpriteBatch(
	string? name = null
)

Parameters

name  String  (Optional)
name of the created SpriteBatch (optional)

Return Value

SpriteBatch
created SpriteBatch
See Also