Sign in to follow this  
phil67rpg

open gl

Recommended Posts

phil67rpg    443
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

Share this post


Link to post
Share on other sites
Android_s    164
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.

Share this post


Link to post
Share on other sites
jbadams    25713
For more info on using the source tags to post code, see the FAQ.

I'd suspect the problem is likely either in how you're taking input, or in how you're processing your main loop (or a mix of the two).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this