Jump to content
  • Advertisement
Sign in to follow this  
phil67rpg

open gl

This topic is 4960 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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)

Share this post


Link to post
Share on other sites
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
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!