Click or drag to resize
Ab4d.SharpEngine logo

SpriteBatch Properties

The SpriteBatch type exposes the following members.

Properties
 NameDescription
Public propertyAreAbsoluteCoordinatesSupported Gets a Boolean that specifies if this SpriteBatch supports absolute coordinates (true when created from SceneView; false when created from Scene).
Public propertyIsUsingAbsoluteCoordinates Gets or sets a Boolean that specifies if absolute coordinates are used to define positions and sizes (max values are defined by SceneView's size) in the Draw calls that follow the change. When false then relative coordinates are used (in this case the values are from 0 to 1). Absolute coordinates can be used only when this SpriteBatch is created from SceneView and not for Scene (see AreAbsoluteCoordinatesSupported property). This value can be also set when calling Begin(Boolean, Int32) method. Default value is false.
Public propertyIsUsingDpiScale When set to true (false by default) than the absolute coordinates and sprite size are multiplied by dpi scale. When false, then absolute coordinates are specified in pixels. The value of this property is used for all sprites and texts in this SpriteBatch.
Top
See Also