Original Post
Hi All,
So i know the basics of a game loop and how a game works etc, ive been using Xna for a bout 5-6 years and i thought i would try to learn openGL in linux. Using SDL is easy however i would like use openGL without SDL and i have encountered my first issue. Using GLUT is proving to be confusing for me as what i want to do is to have control over the the keypresses and i know that i can tell GLUT which method will handle this but is this the right way of going about things?
I can't help but think that rather than using glutMainLoop etc that i could set up the game loop myself and call the functions separately i.e. handleInput, logic, rendering.
Any pointers would be great thanks!
So i know the basics of a game loop and how a game works etc, ive been using Xna for a bout 5-6 years and i thought i would try to learn openGL in linux. Using SDL is easy however i would like use openGL without SDL and i have encountered my first issue. Using GLUT is proving to be confusing for me as what i want to do is to have control over the the keypresses and i know that i can tell GLUT which method will handle this but is this the right way of going about things?
I can't help but think that rather than using glutMainLoop etc that i could set up the game loop myself and call the functions separately i.e. handleInput, logic, rendering.
Any pointers would be great thanks!