PDA

View Full Version : Pop-up menu under GLFW?



kng
05-15-2002, 06:30 AM
Is it possible to enable pop-up menu when you right click the mouse under GLFW?.In GLUT it is possible.
Is GLUT Open source?

jmathies
05-15-2002, 08:20 AM
Originally posted by kng:
Is it possible to enable pop-up menu when you right click the mouse under GLFW?.In GLUT it is possible.
Is GLUT Open source?

I'm not sur about the answer to the first,
but I know the second is "no". Mark Kilgard
maintains the copyright and has prevented
people from releasing non sanctioned
versions of his library.

Regards,
Jim

marcus256
05-18-2002, 09:33 AM
The answer to the first question is: no.

GLFW is not meant to be a pure GLUT replacement. GLUT has some features that are nice when developing small programs (the popup menus, embedded font support and geometrical shapes are examples of this). GLFW will probably never have similar functionality. You can either simply poll for specific keys (and supply a readme.txt file with your app telling what the different keys do), or add a more sophisticated GUI-like layer that runs under OpenGL.

jmathies
05-20-2002, 02:33 PM
Originally posted by kng:
Is it possible to enable pop-up menu when you right click the mouse under GLFW?.In GLUT it is possible.
Is GLUT Open source?

Or try a library that is free source, is
a glut replacement, and offer's popup and
standard menuing. For example Cpw (http://www.mathies.com/cpw/) .

Which also happens to offer -
- excellent high performance timing
- anti-aliased TrueType fonts
- Full windowing support
- multiple contexts
- primitives library
- direct keyboard and mouse state access
- on win32 DirectInput support
- common image format loading and saving
- screenshoting
- auto OpenGL 1.2, 1.3 and extension support

Ok, enough of that. you get the picture.

Regards,
Jim