Click or drag to resize
Ab4d.SharpEngine logo

SpriteBatchBegin Method

Begin method must be called before any Draw or Set calls. The method sets common properties of all sprites that will be defined by Draw call. After all draw calls are done, the End method must be called.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public void Begin(
	bool useAbsoluteCoordinates = false,
	int commandsCount = 0
)

Parameters

useAbsoluteCoordinates  Boolean  (Optional)
when true (false by default) then all position coordinates are in absolute values (from to size of the view); when false then coordinates are relative (from 0 to 1). Absolute coordinates are supported only when SpriteBatch is created from SceneView.
commandsCount  Int32  (Optional)
when set to a value bigger than zero (zero by default) then the commands List will be pre-allocated to that size to prevent resizing the List.
See Also