I decided to go with Tuple. Thanks for the idea of โโa poster that later deleted its answer. Your deeds of valor will be remembered.
Edit: had to change Vector4to Color(alpha channel always 255).
Result:
List<Tuple<Vector2, Color>> markers = new List<Tuple<Vector2, Color>>();
Tuple<Vector2, Color> marker = new Tuple<Vector2, Color>(
new Vector2(x, y), Color.FromNonPremultiplied(250, 200, 150, 100));
markers.Add(marker);
foreach (var item in markers)
{
int x = item.Item1.X;
int y = item.Item1.Y;
Color mycolor = item.Item2;
}
This works, but I still have not tested the effectiveness of the CPU, if it turns out to be slower than the other proposed solutions, I will think about their use.
source
share