I'm trying to make this an array but where I've put the brackets it just gives an error out.
Texture2D* sun = new Texture2D();
Texture2D* sun = new Texture2D[10];Maybe you need to do something like this:
Texture2D** sun = new Texture2D*[size];
Texture2D()[10];