|
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.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax 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