Add pivot offset for rotations.

This commit is contained in:
2023-09-25 18:44:35 +02:00
parent ea2733f594
commit 8aab1132b6
8 changed files with 27 additions and 17 deletions

View File

@@ -82,8 +82,9 @@ namespace DaggerFramework.Rendering
/// Sets transforms for the next draw operation.
/// </summary>
/// <param name="position">Global transform position.</param>
/// <param name="offset">Local offset point around which shapes will rotate.</param>
/// <param name="rotation">Rotation.</param>
public abstract void SetTransform(Vector2 position, float rotation = 0.0f);
public abstract void SetTransform(Vector2 position, Vector2 offset, float rotation = 0.0f);
/// <summary>
/// Sets the transform for the next draw operation.
/// </summary>