Jump to content
  • Advertisement
Sign in to follow this  

glut:how to not rendering when user did not press key.

This topic is 2818 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 am writing a program to render a julia set. i understand that when the program run, it always in a loop and render the image to screen. but i dont want the program to render anything when the user did not enter any command(pressing keys) because it take a lot of time to draw the julia set. i want it to render only after the user entered a command to go to a portion of the screen that the user wanted to zoom in. basically, i want the program to waits before do any rendering after the first rendering. any idea?

the other problem that i need your help is this : I used glReadPixels to store the screen in an array with GL_INT type. but when i glDrawPixels, the screen color changed but the shape of the image still look like it was generate before glDrawPixels. i suspect that the type is somehow changed between read and draw. how can i get the same colored image before glDrawPixels?

any help will be appreciated.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!