Make the RenderWindow global
Format source code with astyle