Re: [GtkGLExt] Handling mouse & keyboard with GLUT?
- From: Lindley M French <lfrench1 gmu edu>
- To: Rad Radish <radradish wp pl>
- Cc: gtkglext-list gnome org
- Subject: Re: [GtkGLExt] Handling mouse & keyboard with GLUT?
- Date: Mon, 21 Apr 2008 08:42:29 -0400
glutKeyboardFunc and glutMouseFunc are simply functions to register callbacks. Since GTK+ is heavily callback-oriented, you could of course just register your handlers with g_signal_connect on the relevant signals.
Of course, you may need to add a wrapper function to get the appropriate signature.
----- Original Message -----
From: Rad Radish <radradish wp pl>
Date: Monday, April 21, 2008 2:29 am
Subject: [GtkGLExt] Handling mouse & keyboard with GLUT?
> Hi
>
> Is there a way to simply use GLUT: glutMouseFunc and
> glutKeyboardFunc to
> handle 3d objects rotation when having OpenGL Drawing Area in
> GTK+? Or
> do I have to catch keyboard and mouse movements in GTK+ directly
> and
> then pass them to OpenGL scene?
>
> Kind regards
> Rad Radish
> _______________________________________________
> gtkglext-list mailing list
> gtkglext-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkglext-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]