This is the most important function in a graphics window. It must be called every frame.
It performs a few different operations
If you have a window open, you should have this function being called in your main render loop every frame.