From: Tim R. <ti...@us...> - 2004-07-31 11:46:14
|
Update of /cvsroot/csdopenglnet/csdOpenGL/samples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8807 Modified Files: Makefile.gtk gtkFrame.cs Added Files: gtkAdvanced.cs Log Message: highend framework for OpenGL examples :) --- NEW FILE: gtkAdvanced.cs --- using csDragons.OpenGL; using GLib; using Gtk; using GtkSharp; using System; using System.Diagnostics; public class GtkAdvanced : csdGL { public static void Main( string[] args) { Debug.Listeners.Add( new TextWriterTraceListener( Console.Out ) ); Debug.AutoFlush = true; GtkAdvanced gl = new GtkAdvanced(); } } Index: Makefile.gtk =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/Makefile.gtk,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile.gtk 30 Jul 2004 06:46:14 -0000 1.2 --- Makefile.gtk 31 Jul 2004 11:45:59 -0000 1.3 *************** *** 9,13 **** LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! all: $(LIBS) gtkTriangle.exe gtkGears.exe gtkTexture.exe gtkFrame.exe csdGL_Gtk.dll: libcsdGL.so --- 9,13 ---- LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! all: $(LIBS) gtkTriangle.exe gtkGears.exe gtkTexture.exe gtkFrame.exe gtkAdvanced.exe csdGL_Gtk.dll: libcsdGL.so Index: gtkFrame.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/gtkFrame.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** gtkFrame.cs 31 Jul 2004 11:19:16 -0000 1.6 --- gtkFrame.cs 31 Jul 2004 11:45:59 -0000 1.7 *************** *** 17,20 **** --- 17,21 ---- protected VScale scaleRotX; protected HScale scaleRotY; + protected VScale scaleRotZ; protected int oldHeight = 0; protected int oldWidth = 0; *************** *** 54,61 **** scaleRotY.ValueChanged += new EventHandler( valueChanged ); Debug.WriteLine( "Init HBox 1" ); ! HBox hbox1 = new HBox( false, 2 ); hbox1.PackStart( scaleRotX, false, true, 5 ); ! hbox1.PackEnd( glarea, true, true, 5 ); Debug.WriteLine( "Init VBox 1" ); --- 55,68 ---- scaleRotY.ValueChanged += new EventHandler( valueChanged ); + Debug.WriteLine( "Init scaleRotZ" ); + scaleRotZ = new VScale( 0.0, 359.5, 0.1 ); + scaleRotZ.ValuePos = PositionType.Bottom; + scaleRotZ.ValueChanged += new EventHandler( valueChanged ); + Debug.WriteLine( "Init HBox 1" ); ! HBox hbox1 = new HBox( false, 3 ); hbox1.PackStart( scaleRotX, false, true, 5 ); ! hbox1.PackStart( glarea, true, true, 5 ); ! hbox1.PackEnd( scaleRotZ, false, true, 5 ); Debug.WriteLine( "Init VBox 1" ); *************** *** 77,80 **** --- 84,88 ---- if (obj==scaleRotX) rotX = (float)scaleRotX.Value; if (obj==scaleRotY) rotY = (float)scaleRotY.Value; + if (obj==scaleRotZ) rotZ = (float)scaleRotZ.Value; } |