SharpDX.Vector2[] pointsUpArrow = new SharpDX.Vector2[] { new SharpDX.Vector2 {X=0,Y=0 }, new SharpDX.Vector2 {X=8,Y=10}, new SharpDX.Vector2 {X=-7,Y=10}, new SharpDX.Vector2 {X=0,Y=0} };
I need to move this to the current bar and in some cases rotate it so that it's upside down.
In GDI this was easy:
graphics.TranslateTransform( x,y ) would move to the x,y coordinate of the bar ( given x and y )
graphics.RotateTransform(180) would invert the drawing.
In DirectX I've been searching the web for hours trying to find and example of how to do this and I can't figure it out. Do you have an example that?
Example that:
1. Defines a simple polygon ( a triangle would be fine )
2. Draws them on each bar
3. Sometimes inverts them so they're pointing down.
I believe that the use of SharpDX.Vector2.Transform is what's required but I haven't found an example of how to use this method to achieve it.
Thank you.
Comment