Q: Vsync enabling? and removing mouse display?

Hi…

Two simple questions…

Where does one enable/disable vsync with JOGL. I expected it to be an option in GLCapabilities, but it’s not.

Also, is there an option to not display the default mouse cursor?

Thanks…

[quote]Where does one enable/disable vsync with JOGL. I expected it to be an option in GLCapabilities, but it’s not.
[/quote]
I don’t know how to do this. If somebody knows, I’d be interested in this issue, too.

[quote]Also, is there an option to not display the default mouse cursor?
[/quote]
theGLCanvas.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));

Actually, what I meant was removing the mouse cursor from view entirely, but still having mouse input active.

Hi,

You maybe should create a fully transparent png file and use it as a cursor…

The problem is for the user… Where can be the mouse ???

This is what I use to get rid of the cursor:

Cursor invisibleCursor = Toolkit.getDefaultToolkit().
createCustomCursor(
Toolkit.getDefaultToolkit().getImage(""),
new Point(0,0),
“invisibleCursor”);

Disabling sync-to-vertical-retrace is a window system-specific option. If you’re on Windows, you can call wglSwapIntervalEXT(0). It looks like the analogous function on X11 is glXSwapIntervalSGI. We should probably provide some platform-independent means for doing this. Please file an RFE on the JOGL issues page on http://jogl.dev.java.net/ .