SpriteState Type
State required to render a 2D sprite via SpriteBatch.Draw.
Record fields
| Record Field |
Description
|
Tint color (multiplied with texture).
|
|
Destination rectangle on screen (in pixels).
|
|
|
Render layer for ordering.
|
Optional normal map for per-pixel lighting. When
|
|
Origin point for rotation and positioning (relative to Dest).
|
|
Full Usage:
Rotation
Field type: float32
|
Rotation in radians around Origin.
|
Source rectangle within the texture (in texels).
|
|
The texture to draw.
|
Mibo