Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: mouse problem!!!

  1. #1
    Guest

    mouse problem!!!

    hi everyone..
    how can i get the coordinate from a screen..while click..and during the motion...
    from a mouse..
    as in case of GLUT...we have two different function for mouse motion and mouse click..which directly give coordinates..
    but how can i do same without using GLUT...as i am following nehe's tutorails..and it will be really tough to switch from a non-console progame to a consol ( will it really be?? )
    actually i have cube on screen..which i want to rotate with the help of mouse...how can it be done?? (without using glut)..
    if someone help with little code example..i will really be thaknful..
    waiting for replies..
    -prafs

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: mouse problem!!!

    The mouse cursor/coordinates have nothing to do with OpenGL so you will not find it there.

    If you decide not to use glut, then you will have to use something else to create the window that will contain the rendering context and that "else" will give you support for mouse handling, so it is difficult to give you an answer without any knowledge on what you are going to use, Win32, xlib, Fltk, FOX, Qt...bla bla bla...

    Mikael

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,096

    Re: mouse problem!!!

    Well it depends on what operating system you are using, the mouse functions are diffrent for each OS.

    Only using GLUT can you use the same function calls on any system for the mouse.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •