Jump to content
  • Advertisement
Sign in to follow this  
muimui1911

use GLUT + OpenGL in WIN32 app at the same time problems!!!!!?

This topic is 4840 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 would like to ask if i use WIN32 Application for my program, is it possible to use GLUT for interactive control and openGL for others? i am trying to make myself move in my 3D environment with mousing view and keyboard control. can anyone help me, i am stuck on the mouse viewing. thanks for whoever helps me.

Share this post


Link to post
Share on other sites
Advertisement
Mouse viewing? Like being able to see the mouse cursor? I think that you can just go into orthographic mode and display one where the mouse cursor is. Oh wait... like you want to move the camera with the mouse. In that case, just check and seee if the mouse is near the borders of the window, then rotate the camera. I think that's what you meant.

Share this post


Link to post
Share on other sites
It's not possible to use GLUT within a Win32 applications. GLUT requires the glutMainLoop, which is incompatabile with winMain.

However, it's possible to use GLUT to handle all your mouse and keyboard controls with

glutKeyboardFunc
glutMotionFunc
and
glutSpecialFunc(for arrow keys)

Hopefully, that'll be enough to lead you in the right direction.

Share this post


Link to post
Share on other sites
Quote:
Original post by silverphyre673
In that case, just check and seee if the mouse is near the borders of the window, then rotate the camera. I think that's what you meant.




that is what i meant, use mouse to rotate the camera and use keyboard to walk.

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!