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 2 of 2

Thread: Please help, just started

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2002
    Location
    Great Britain
    Posts
    5

    Please help, just started

    Dear Sirs,
    I've just started learning OpenGL. It already looks like i'mgoing to like it. But unfortunately I got stuck on something. I want to define a specific area so when a mouse is over that area i programme could perform a function.
    Could anyone please help me.
    Looking forward to your replies.

  2. #2
    Intern Contributor
    Join Date
    Feb 2002
    Location
    Wiesbaden, Germany
    Posts
    97

    Re: Please help, just started

    Hi,

    OpenGL is for graphics output only. So if you want to implement such a feature you need to use functions of your OS, meaning checking mouse XY-Position on screen and then performing some action.
    Maybe GLUT, which is a library that eases some OpenGL things, provides some sort of function that could do this for you.

    Greets,

    Martin

Posting Permissions

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