I am using Direct2D to write a simple rendering system that I could use to easily write a game. I have a function that renders each object every frame. Now, if my game is going to be dynamic, I can't hardcode every object into that function. I would much prefer to simply be able to instance a class and it show up until I remove it.
I considered a table containing all the objects, but that would be too tedious and hard to manage. I was wondering what the best way to do this would be. Any ideas?