Hiding the cursor

50 views
Skip to first unread message

Christopher Howard

unread,
Nov 9, 2012, 3:32:38 PM11/9/12
to haskel...@googlegroups.com
Is there some way in a gloss-based application that I could hide the
cursor (i.e., get an invisible cursor)? Say, through a GLUT call or
something? Or would gloss have to do that internally?

I've tried using the cursor function from GLUT at various points in the
program. If I do it before calling playIO, then (naturally enough) the
program dies at startup complaining that glut is not initialized. If I
call it from somewhere within the event loop, I get "ERROR: Function
<glutSetCursor> called with no current window defined." I'm definitely
not an expert on GLUT, in case you were wondering.

--
frigidcode.com


signature.asc

Ben Lippmeier

unread,
Nov 13, 2012, 6:55:17 AM11/13/12
to haskel...@googlegroups.com, Christopher Howard
I haven't tried to hide the cursor before, or use glutSetCursor.

If you call glutSetCursor in the display function of one of the gloss IO wrappers (like animateIO) then the current window should be set. Just the act of creating the window sets that window to be the current one.

Ben.


Reply all
Reply to author
Forward
0 new messages