Did a bit of stuff.
Added a thread delay so that it won't use all of the cpu.
Added some more flags to the window config. They're unused as of yet.
Laid some groundwork for implementing animations.
Added some stuff for animations in particular.