Edit: the images below aren't supposed to have whitespace. I am just trying to show you that i am trying to create a rectangle from a 1x64 image, positioned as shown in the second picture
I know how to rotate an image like that in XNA
But how is it possible to draw a sprite in this angle this way ?
I can't seem to be able to find an answer on that and i'm sort on ideas
Matrix CreateSkewY(float angle)
{
Matrix skew = Matrix.Identity;
skew.M21 = (float)Math.Tan((double)angle);
return skew;
}
spriteBatch.Begin(SpriteSortMode.Deferred, null, null, null, null, null,
CreateSkewX((float)Math.PI / 6));