Update of /cvsroot/csdopenglnet/csdOpenGL/samples
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11787/samples
Modified Files:
Makefile.gtk gtkAdvanced.cs
Log Message:
preliminary mouse event handler added
Index: gtkAdvanced.cs
===================================================================
RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/gtkAdvanced.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** gtkAdvanced.cs 31 Jul 2004 13:57:25 -0000 1.4
--- gtkAdvanced.cs 31 Jul 2004 16:01:01 -0000 1.5
***************
*** 1,4 ****
--- 1,5 ----
using csDragons.OpenGL;
using GLib;
+ using GdkSharp;
using Gtk;
using GtkSharp;
***************
*** 8,12 ****
public class GtkAdvanced : csdGL {
! protected Window window;
protected GtkGLArea glarea;
protected Entry rotX_entry;
--- 9,13 ----
public class GtkAdvanced : csdGL {
! protected Gtk.Window window;
protected GtkGLArea glarea;
protected Entry rotX_entry;
***************
*** 40,43 ****
--- 41,45 ----
Debug.WriteLine( "Init GtkGLArea" );
glarea = new GtkGLArea();
+ glarea.Events = Gdk.EventMask.PointerMotionMask;
glarea.Realized += new EventHandler (OnRealized);
glarea.ConfigureEvent += new ConfigureEventHandler (OnConfigure);
***************
*** 45,48 ****
--- 47,51 ----
glarea.MapEvent += new MapEventHandler (OnMap);
glarea.UnmapEvent += new UnmapEventHandler (OnUnmap);
+ glarea.MotionNotifyEvent += new MotionNotifyEventHandler (OnMotionNotify) ;
Debug.WriteLine( "Init rotation entry fields" );
***************
*** 195,198 ****
--- 198,208 ----
}
+ protected void OnMotionNotify( object obj, MotionNotifyEventArgs args){
+
+ Console.WriteLine( args.Event.X );
+
+
+ }
+
protected virtual void draw() {
if (glarea.MakeCurrent()) {
Index: Makefile.gtk
===================================================================
RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/Makefile.gtk,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Makefile.gtk 31 Jul 2004 11:45:59 -0000 1.3
--- Makefile.gtk 31 Jul 2004 16:01:01 -0000 1.4
***************
*** 24,28 ****
%.exe:%.cs
! $(MCS) -r:glib-sharp.dll -r gtk-sharp.dll -r:csdGL_Gtk.dll -r:csdGLtools.dll -r:csdMath.dll -r:System.Drawing $^ -o $@
--- 24,28 ----
%.exe:%.cs
! $(MCS) -r:glib-sharp.dll -r:gdk-sharp.dll -r:gtk-sharp.dll -r:csdGL_Gtk.dll -r:csdGLtools.dll -r:csdMath.dll -r:System.Drawing $^ -o $@
|