PDA

View Full Version : Please help, just started



sergey
10-13-2002, 11:19 PM
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. http://www.opengl.org/discussion_boards/ubb/smile.gif

mphanke
10-14-2002, 12:49 AM
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