writing some glue code between the domain logic and the opengl screen