open gl
I have drawn two spaceships on the screen using gl_line_strip and they interact with the keyboard, the problem is they dont move at the same time,independetly of each other,the has something to do with the glClear(GL_COLOR_BUFFER_BIT)command,please let me know if you need additional information
We need additional information.
Please post code fragments; and post them inside [ source] code goes here [/source] tags, please (without the space in the opening tag)
Please post code fragments; and post them inside [ source] code goes here [/source] tags, please (without the space in the opening tag)
It is higly unlikely that your problem is related to glClear(GL_COLOR_BUFFER_BIT). That would just clear the color buffer, clearing all colors on your screen...
It is more likely that your code outside of OGL is wrong. Post a little code from where you update and control your ships.
It is more likely that your code outside of OGL is wrong. Post a little code from where you update and control your ships.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement