Jump to content
  • Advertisement
Sign in to follow this  
gameSTICKER

OpenGL Settng VerticalSync ON in OpenGL

This topic is 4974 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

Hey Guys I am coding a small game in OpenGL and I need to set vertical sync on, but dont know how to do that. I am coding in OpenGL+gl4java+Java1.5 so please tell me if there is any way to turn on VerticalSync in 1. OpenGL itself 2. gl4java 3. Java 1.5 Thank you in advance ;)

Share this post


Link to post
Share on other sites
Advertisement
thanks for ur post.. but i dont want to use any extensions.. plz tell me how it can be done using : "gl" , "glu" or "glut".. plz help me dude :-\

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Thnx guys. Looks like its not gonna work without WGL_EXT_swap_control. But then

1. How do i use it?
2. What are the header files I need for that?
3. Where can I download the implementations, if any?
4. What is the portability of WGL_EXT_swap_control?

Looking forward for your hot replies :)

Share this post


Link to post
Share on other sites
Hello..

1) Follow the link posted above...
2) I recommend GLEW for all your extension needs.
3) For 1 line of code?
4) WGL_ means it's a windows only extension. There seem to be one or two similar extension sthat begins with GLX_ so.. should be something similar för linux etc.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by rick_appleton
It cannot be done without extensions.

Rubbish. I don't have anything to back me up, but I'm pretty sure (99%) there is a way to enable/disable VSync without the use of OpenGL extensions.

Share this post


Link to post
Share on other sites
I've just taken a look at the red book and that doesnt mention anything (I've got the 1.4 version), so I think you'll find that you are wrong and its only the extensions which let it happen

Share this post


Link to post
Share on other sites
whats the hassle with extensions? basically theyre called that cause they are extras /advancements to the core spec, theyre not something to be shyed away from

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!