Robert, that paramether is very helpful, thanks! About the second code, I had the idea it was not possible to use your own loop, instead GLUT requires using its events... how do you initialize GLUT to run your own loop?

waran, I'm trying not to use SDL, it would be another library to learn and integrate and I have had enough with DX and GLUT

Thanks!