Camera and Starfield


I want to program a “star wars” starfield with objects moving towards the screen.

What would be the OpenGL principle behind this? How does it work in principle with OpenGL?

  • Do I have stationary objects and move the camera?
  • Do I have a stationary camera and move the objects towards the camera?

Thanks for help.