You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the XNA implementation I wanted to get results fast. This came on the account of drawing objects in hard-coded order rather than the order which they have been called from C code.
I first draw all the polygons, then the bitmaps and then the text. This can cause to weird effects if the intention was to draw the text and only then the polygon.
I'm using 3 arrays to hold the polygons, bitmaps and texts. I suggest keeping one array and inside the OnDraw function add 'switch' clause that check the object type and draws it accordingly.
The text was updated successfully, but these errors were encountered:
In the XNA implementation I wanted to get results fast. This came on the account of drawing objects in hard-coded order rather than the order which they have been called from C code.
I first draw all the polygons, then the bitmaps and then the text. This can cause to weird effects if the intention was to draw the text and only then the polygon.
I'm using 3 arrays to hold the polygons, bitmaps and texts. I suggest keeping one array and inside the OnDraw function add 'switch' clause that check the object type and draws it accordingly.
The text was updated successfully, but these errors were encountered: