You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(79) |
Aug
(69) |
Sep
(120) |
Oct
(17) |
Nov
(7) |
Dec
|
---|
From: Tim R. <ti...@us...> - 2004-09-11 08:44:32
|
Update of /cvsroot/csdopenglnet/csdOpenGL/Cg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19152 Added Files: csDragons.OpenGL.Cg.dll.config Log Message: mapping between windows and linux --- NEW FILE: csDragons.OpenGL.Cg.dll.config --- <configuration> <dllmap dll="cg.dll" target="libCg.so" /> <dllmap dll="cgGL.dll" target="libCgGL.so" /> </configuration> |
Update of /cvsroot/csdopenglnet/csdOpenGL/samples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18411 Modified Files: Makefile Makefile.gtk gtkAdvanced.cs gtkFrame.cs gtkGears.cs gtkTexture.cs gtkTriangle.cs gtkWidget.cs Log Message: adaption to new structure Index: gtkAdvanced.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/gtkAdvanced.cs,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** gtkAdvanced.cs 8 Aug 2004 14:06:52 -0000 1.11 --- gtkAdvanced.cs 11 Sep 2004 08:39:28 -0000 1.12 *************** *** 1,3 **** --- 1,4 ---- using csDragons.OpenGL; + using csDragons.OpenGL.Platform; using GLib; using GdkSharp; Index: gtkTriangle.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/gtkTriangle.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** gtkTriangle.cs 6 Aug 2004 11:42:34 -0000 1.2 --- gtkTriangle.cs 11 Sep 2004 08:39:28 -0000 1.3 *************** *** 1,3 **** --- 1,4 ---- using csDragons.OpenGL; + using csDragons.OpenGL.Platform; using GLib; using Gtk; Index: Makefile.gtk =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/Makefile.gtk,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Makefile.gtk 11 Sep 2004 08:10:42 -0000 1.7 --- Makefile.gtk 11 Sep 2004 08:39:28 -0000 1.8 *************** *** 3,17 **** DEBUG= OPTS=$(DEBUG) ! LIBS=csDragons.OpenGL.dll csDragons.Math.dll csDragons.OpenGL.Tools.dll glib-sharp.dll gdk-sharp.dll gtk-sharp.dll PACKAGE=csDragons LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! MCS=$(CC) $(OPTS) $(LIBOPTS) -r:System.Drawing -lib:/usr/lib/mono/csDragons -lib:/usr/lib/mono/gtk-sharp -lib:../GL ! all: libcsdGL.so gtkTriangle.exe gtkGears.exe gtkTexture.exe gtkFrame.exe gtkAdvanced.exe ! libcsdGL.so: ! ln -sf ../cbonding/libcsdGL.so . %.exe:%.cs $(MCS) $^ -o $@ --- 3,32 ---- DEBUG= OPTS=$(DEBUG) ! LIBS_CSD=csDragons.OpenGL.dll csDragons.Math.dll csDragons.OpenGL.Tools.dll csDragons.OpenGL.Mono.dll ! LIBS=glib-sharp.dll gdk-sharp.dll gtk-sharp.dll $(LIBS_CSD) ! PACKAGE=csDragons LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! MCS=$(CC) $(OPTS) $(LIBOPTS) -r:System.Drawing -lib:/usr/lib/mono/gtk-sharp -lib:../GL -lib:../tools -lib:../math -lib:../platform/mono ! all: gtkTriangle.exe gtkGears.exe gtkTexture.exe gtkFrame.exe gtkAdvanced.exe $(LIBS_CSD) ! csDragons.OpenGL.dll: ! ln -sf ../GL/csDragons.OpenGL.dll* . + csDragons.OpenGL.Mono.dll: + ln -sf ../platform/mono/csDragons.OpenGL.Mono.dll* . + + csDragons.OpenGL.Windows.dll: + ln -sf ../platform/windows/csDragons.OpenGL.Mono.dll* . + + csDragons.Math.dll: + ln -sf ../math/csDragons.Math.dll* . + + csDragons.OpenGL.Tools.dll: + ln -sf ../tools/csDragons.OpenGL.Tools.dll* . + + %.exe:%.cs $(MCS) $^ -o $@ Index: gtkWidget.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/gtkWidget.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** gtkWidget.cs 6 Aug 2004 11:42:34 -0000 1.3 --- gtkWidget.cs 11 Sep 2004 08:39:28 -0000 1.4 *************** *** 1,3 **** --- 1,4 ---- using csDragons.OpenGL; + using csDragons.OpenGL.Platform; using GLib; using Gtk; *************** *** 6,9 **** --- 7,11 ---- using System.Diagnostics; + public class GtkTest : GL { Index: gtkGears.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/gtkGears.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** gtkGears.cs 6 Aug 2004 11:42:34 -0000 1.4 --- gtkGears.cs 11 Sep 2004 08:39:28 -0000 1.5 *************** *** 1,3 **** --- 1,4 ---- using csDragons.OpenGL; + using csDragons.OpenGL.Platform; using GLib; using Gtk; Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/Makefile,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Makefile 11 Sep 2004 08:10:42 -0000 1.8 --- Makefile 11 Sep 2004 08:39:28 -0000 1.9 *************** *** 4,15 **** OPTS=$(DEBUG) LIBS=csDragons.OpenGL.dll csDragons.Math.dll csDragons.OpenGL.Tools.dll ! MCS=$(CC) $(OPTS) -lib:/usr/lib/mono/gtk-sharp -lib:/usr/lib/mono/csDragons -lib:/../tools -lib:/../GL PACKAGE=csDragons LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! all: triangle.exe texture.exe gears.exe $(MAKE) -f Makefile.gtk %.exe:%.cs $(MCS) $(LIBOPTS) -r:System.Drawing $^ -o $@ --- 4,24 ---- OPTS=$(DEBUG) LIBS=csDragons.OpenGL.dll csDragons.Math.dll csDragons.OpenGL.Tools.dll ! MCS=$(CC) $(OPTS) -lib:/usr/lib/mono/gtk-sharp -lib:../GL -lib:../math -lib:../tools PACKAGE=csDragons LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! all: triangle.exe texture.exe gears.exe $(LIBS) $(MAKE) -f Makefile.gtk + csDragons.OpenGL.dll: + ln -sf ../GL/csDragons.OpenGL.dll* . + + csDragons.Math.dll: + ln -sf ../math/csDragons.Math.dll* . + + csDragons.OpenGL.Tools.dll: + ln -sf ../tools/csDragons.OpenGL.Tools.dll* . + %.exe:%.cs $(MCS) $(LIBOPTS) -r:System.Drawing $^ -o $@ Index: gtkTexture.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/gtkTexture.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** gtkTexture.cs 6 Aug 2004 11:42:34 -0000 1.2 --- gtkTexture.cs 11 Sep 2004 08:39:28 -0000 1.3 *************** *** 1,3 **** --- 1,4 ---- using csDragons.OpenGL; + using csDragons.OpenGL.Platform; using GLib; using Gtk; Index: gtkFrame.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/gtkFrame.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** gtkFrame.cs 6 Aug 2004 11:42:34 -0000 1.8 --- gtkFrame.cs 11 Sep 2004 08:39:28 -0000 1.9 *************** *** 1,3 **** --- 1,4 ---- using csDragons.OpenGL; + using csDragons.OpenGL.Platform; using GLib; using Gtk; |
From: Tim R. <ti...@us...> - 2004-09-11 08:26:47
|
Update of /cvsroot/csdopenglnet/csdOpenGL/platform/windows In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16636/windows Added Files: AssemblyInfo.cs Makefile PublicKeyFile.snk Log Message: added windows dummy library --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following // attributes. // // change them to the information which is associated with the assembly // you compile. [assembly: AssemblyTitle("csDragons.OpenGL")] [assembly: AssemblyDescription("Wrapper-Library for OpenGL")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("csDragons")] [assembly: AssemblyProduct("csDragons OpenGL.NET")] [assembly: AssemblyCopyright("(C)Copyright 2004 by Tim Rädisch & Kai Reichert")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // The assembly version has following format : // // Major.Minor.Build.Revision // // You can specify all values by your own or you can build default build and revision // numbers with the '*' character (the default): [assembly: AssemblyVersion("0.1.*")] // The following attributes specify the key for the sign of your assembly. See the // .NET Framework documentation for more information about signing. // This is not required, if you don't want signing let these attributes like they're. [assembly: AssemblyDelaySign(true)] [assembly: AssemblyKeyFile("PublicKeyFile.snk")] --- NEW FILE: Makefile --- FILES_SRC=../Exceptions.cs FILES=$(FILES_SRC) DEBUG=/d:DEBUG DEBUG= OPTS_SRC=-lib:../../GL -r:csDragons.OpenGL OPTS=$(OPTS_SRC) $(OPTS_GTK) DLL=csDragons.OpenGL.Windows.dll GEN=mono ../../generator/csdGenerator.exe CC=mcs MCS=$(CC) $(OPTS) PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) all: $(DLL) $(DLL): AssemblyInfo.cs $(FILES) $(MCS) -target:library $^ -out:$@ install: install-gac install-gac: $(DLL) $(GAC) /i $(DLL) /f /package $(PACKAGE) uninstall: uninstall-gac uninstall-gac: $(GAC) /u $(DLL) clean: rm -f *.exe rm -f *.dll .IGNORE: clean .EXPORT_ALL_VARIABLES: .PHONY: clean --- NEW FILE: PublicKeyFile.snk --- (This appears to be a binary file; contents omitted.) |
From: Tim R. <ti...@us...> - 2004-09-11 08:25:17
|
Update of /cvsroot/csdopenglnet/csdOpenGL/platform/windows In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16264/windows Log Message: Directory /cvsroot/csdopenglnet/csdOpenGL/platform/windows added to the repository |
From: Tim R. <ti...@us...> - 2004-09-11 08:23:14
|
Update of /cvsroot/csdopenglnet/csdOpenGL/cbonding In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15741 Modified Files: Makefile Removed Files: csdCg.c csdCg.h Log Message: bonding library for Cg is not longer needed Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/cbonding/Makefile,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Makefile 13 Aug 2004 08:26:44 -0000 1.7 --- Makefile 11 Sep 2004 08:23:04 -0000 1.8 *************** *** 3,14 **** ! all: libcsdGL.so libcsdCg.so libcsdGL.so: csdGL.o gcc -shared -Wl,-soname,libcsdGL.so.1 $(LIBPATH) -lglut -lGLU -lGL -o libcsdGL.so -lpthread csdGL.o - libcsdCg.so: csdCg.o - gcc -shared -Wl,-soname,libcsdCg.so.1 $(LIBPATH) -lCgGL -lCg -lGL -lGLU -o libcsdCg.so csdCg.o - %.o:%.c gcc -fPIC -c $^ -o $@ --- 3,11 ---- ! all: libcsdGL.so libcsdGL.so: csdGL.o gcc -shared -Wl,-soname,libcsdGL.so.1 $(LIBPATH) -lglut -lGLU -lGL -o libcsdGL.so -lpthread csdGL.o %.o:%.c gcc -fPIC -c $^ -o $@ *************** *** 17,25 **** mkdir -p $(DESTDIR)/usr/lib cp libcsdGL.so $(DESTDIR)/usr/lib - cp libcsdCg.so $(DESTDIR)/usr/lib uninstall: rm $(DESTDIR)/usr/lib/libcsdGL.so - rm $(DESTDIR)/usr/lib/libcsdCg.so clean: --- 14,20 ---- --- csdCg.h DELETED --- --- csdCg.c DELETED --- |
From: Tim R. <ti...@us...> - 2004-09-11 08:21:16
|
Update of /cvsroot/csdopenglnet/csdOpenGL/Cg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15488/Cg Modified Files: Makefile Log Message: corrected error during linking Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/Cg/Makefile,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** Makefile 11 Sep 2004 08:18:01 -0000 1.13 --- Makefile 11 Sep 2004 08:21:07 -0000 1.14 *************** *** 27,31 **** $(GEN) cgGL.xml ! demo: demo.exe %.exe:%.cs --- 27,35 ---- $(GEN) cgGL.xml ! demo: demo.exe csDragons.OpenGL.dll ! ! csDragons.OpenGL.dll: ! ln -sf ../GL/csDragons.OpenGL.dll . ! ln -sf ../GL/csDragons.OpenGL.dll.config . %.exe:%.cs |
From: Tim R. <ti...@us...> - 2004-09-11 08:21:15
|
Update of /cvsroot/csdopenglnet/csdOpenGL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15488 Modified Files: Makefile Log Message: corrected error during linking Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/Makefile,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Makefile 13 Aug 2004 12:27:05 -0000 1.7 --- Makefile 11 Sep 2004 08:21:06 -0000 1.8 *************** *** 1,2 **** --- 1,6 ---- + MONO=mono + WIN=win + PLATFORM=$(MONO) + all: $(MAKE) -C cbonding *************** *** 6,9 **** --- 10,19 ---- $(MAKE) -C math $(MAKE) -C tools + ifeq ($(PLATFORM),$(MONO)) + $(MAKE) -C platform/mono + else + $(MAKE) -C platform/windows + endif + doc: *************** *** 23,26 **** --- 33,41 ---- $(MAKE) -C math install $(MAKE) -C cbonding install + ifeq ($(PLATFORM),$(MONO)) + $(MAKE) -C platform/mono install + else + $(MAKE) -C platform/windows install + endif uninstall: *************** *** 29,32 **** --- 44,53 ---- $(MAKE) -C tools uninstall $(MAKE) -C cbonding uninstall + $(MAKE) -C math uninstall + ifeq ($(PLATFORM),$(MONO)) + $(MAKE) -C platform/mono uninstall + else + $(MAKE) -C platform/windows uninstall + endif clean: |
From: Tim R. <ti...@us...> - 2004-09-11 08:18:28
|
Update of /cvsroot/csdopenglnet/csdOpenGL/Cg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14957 Modified Files: Makefile Log Message: adaption to new structure Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/Cg/Makefile,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** Makefile 4 Sep 2004 08:33:44 -0000 1.12 --- Makefile 11 Sep 2004 08:18:01 -0000 1.13 *************** *** 7,27 **** DEBUG= OPTS=$(DEBUG) ! MCS=$(CC) $(OPTS) PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) ! all: csdCg.dll ! ! csdCg.dll: $(FILES) csdGL.dll ! $(MCS) -target:library -r:csdGL.dll $(FILES) -out:$@ ! ! csdGL.dll: ! ln -sf ../GL/csdGL.dll ! libcsdCg.so: ! ln -sf ../cbonding/libcsdCg.so - libcsdGL.so: - ln -sf ../cbonding/libcsdGL.so gl_8h.xml: --- 7,20 ---- DEBUG= OPTS=$(DEBUG) ! MCS=$(CC) $(OPTS) -lib:../GL -r:csDragons.OpenGL.dll PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) + DLL=csDragons.OpenGL.Cg.dll ! all: $(DLL) ! $(DLL): $(FILES) ! $(MCS) -target:library $(FILES) -out:$@ gl_8h.xml: *************** *** 34,57 **** $(GEN) cgGL.xml ! demo: demo.exe %.exe:%.cs ! $(MCS) -r:csdCg.dll -r:csdGL.dll $^ -o $@ ! ! test: test.exe - test.exe: test.cs $(FILES) - $(MCS) -r:csdGL.dll test.cs $(FILES) -out:test.exe - install: install-gac ! ! install-gac: csdCg.dll ! $(GAC) /i csdCg.dll /f /package $(PACKAGE) uninstall: uninstall-gac uninstall-gac: ! $(GAC) /u csdCg clean: --- 27,44 ---- $(GEN) cgGL.xml ! demo: demo.exe %.exe:%.cs ! $(MCS) -r:csDragons.OpenGL.Cg.dll $^ -o $@ install: install-gac ! install-gac: $(DLL) ! $(GAC) /i $(DLL) /f /package $(PACKAGE) uninstall: uninstall-gac uninstall-gac: ! $(GAC) /u $(DLL) clean: |
Update of /cvsroot/csdopenglnet/csdOpenGL/platform/mono In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13407/platform/mono Added Files: AssemblyInfo.cs GLXTokens.cs Makefile PublicKeyFile.snk glxtokens.xml glxtokens_8h.xml gtkArea.cs gtkContext.cs Log Message: Restrukturierung --- NEW FILE: gtkArea.cs --- namespace csDragons { namespace OpenGL { namespace Platform { using Gdk; using Gtk; using System; using System.Diagnostics; /** \brief OpenGL-widget * * This class is an OpenGL-widget for Gtk#. */ public class GtkGLArea : DrawingArea { /** \brief each widget must have a type */ static GLib.GType type = RegisterGType (typeof (GtkGLArea)); /** \brief OpenGL context*/ protected GdkGLContext context; /** \brief default constructor * * This constructor uses default settings for createn a GLX context */ public GtkGLArea() : base(type) { Debug.Indent(); Debug.WriteLine( "Entering GtkGLArea()" ); DoubleBuffered = false; Debug.WriteLine( "Init context" ); context = new GdkGLContext(); Debug.WriteLine( "Exiting GtkGLArea()" ); Debug.Unindent(); } /** * This constructor creates the GLX context with the specified parameters * @param attr GLX parameter list */ public GtkGLArea( uint[] attr) : base(type) { Debug.Indent(); Debug.WriteLine( "Entering GtkGLArea(uint[])" ); DoubleBuffered = false; Debug.WriteLine( "Init context" ); context = new GdkGLContext( attr ); Debug.WriteLine( "Entering GtkGLArea(uint[])" ); Debug.Unindent(); } /** \brief activate OpenGL context * * This method marks the associated GL context as active, so that * all following OpenGL statements will alter it. */ public bool MakeCurrent() { Debug.Indent(); Debug.WriteLine( "Entering GtkGLArea.MakeCurrent()" ); bool result = context.MakeCurrent( GdkWindow ); Debug.WriteLine( "Entering GtkGLArea.MakeCurrent()*" ); Debug.Unindent(); return result; } public void WaitGL(){ context.WaitGL(); } public void WaitX(){ context.WaitX(); } /** \brief OpenGL swapBuffers() * * This method causes OpenGL to swap buffers if possible, */ public void SwapBuffers() { Debug.Indent(); Debug.WriteLine( "Entering GtkGLArea.SwapBuffers()" ); context.SwapBuffers( GdkWindow ); Debug.WriteLine( "Entering GtkGLArea.SwapBuffers()" ); Debug.Unindent(); } } } } } --- NEW FILE: glxtokens_8h.xml --- <?xml version='1.0' encoding='iso-8859-1' standalone='no'?> <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.3.6"> <compounddef id="glxtokens_8h" kind="file"> <compoundname>glxtokens.h</compoundname> <sectiondef kind="define"> <memberdef kind="define" id="glxtokens_8h_1a0" prot="public" static="no"> <name>GLX_VERSION_1_1</name> <initializer>1</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/include/GL/glxtokens.h" line="27" bodystart="27" bodyend="-1"/> </memberdef> <memberdef kind="define" id="glxtokens_8h_1a1" prot="public" static="no"> <name>GLX_VERSION_1_2</name> <initializer>1</initializer> [...1646 lines suppressed...] </memberdef> <memberdef kind="define" id="glxtokens_8h_1a151" prot="public" static="no"> <name>GLX_FLOAT_COMPONENTS_NV</name> <initializer>0x20B0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/include/GL/glxtokens.h" line="254" bodystart="291" bodyend="-1"/> </memberdef> </sectiondef> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <location file="/usr/include/GL/glxtokens.h"/> </compounddef> </doxygen> --- NEW FILE: GLXTokens.cs --- /*Header*/ using System; using System.Runtime.InteropServices; namespace csDragons.OpenGL.Platform { public class GLXTokens : System.Object { // constant definitions public static uint GLX_ACCUM_ALPHA_SIZE = 17 /* number of <ref refid="glext_8h_1a2262" kindref="member">alpha</ref> accum bits */; public static uint GLX_ACCUM_BLUE_SIZE = 16 /* number of <ref refid="glext_8h_1a2261" kindref="member">blue</ref> accum bits */; public static uint GLX_ACCUM_BUFFER_BIT = 0x00000080; public static uint GLX_ACCUM_BUFFER_BIT_SGIX = GLX_ACCUM_BUFFER_BIT; public static uint GLX_ACCUM_GREEN_SIZE = 15 /* number of <ref refid="glext_8h_1a2260" kindref="member">green</ref> accum bits */; public static uint GLX_ACCUM_RED_SIZE = 14 /* number of red accum bits */; public static uint GLX_ALPHA_SIZE = 11 /* number of <ref refid="glext_8h_1a2262" kindref="member">alpha</ref> component bits */; public static byte GLX_ARB_get_proc_address = 1; public static uint GLX_AUX_BUFFERS = 7 /* number of aux <ref refid="glext_8h_1a2312" kindref="member">buffers</ref> */; public static uint GLX_AUX_BUFFERS_BIT = 0x00000010; public static uint GLX_AUX_BUFFERS_BIT_SGIX = GLX_AUX_BUFFERS_BIT; public static uint GLX_BACK_LEFT_BUFFER_BIT = 0x00000004; public static uint GLX_BACK_LEFT_BUFFER_BIT_SGIX = GLX_BACK_LEFT_BUFFER_BIT; public static uint GLX_BACK_RIGHT_BUFFER_BIT = 0x00000008; public static uint GLX_BACK_RIGHT_BUFFER_BIT_SGIX = GLX_BACK_RIGHT_BUFFER_BIT; public static uint GLX_BAD_ATTRIBUTE = 2 /* attribute to get is bad */; public static byte GLX_BAD_CONTEXT = 5; public static byte GLX_BAD_ENUM = 7; public static uint GLX_BAD_SCREEN = 1 /* screen # is bad */; public static byte GLX_BAD_VALUE = 6; public static uint GLX_BAD_VISUAL = 4 /* visual # not known <ref refid="glext_8h_1a2367" kindref="member">by</ref> GLX */; public static uint GLX_BLUE_SIZE = 10 /* number of <ref refid="glext_8h_1a2261" kindref="member">blue</ref> component bits */; public static uint GLX_BUFFER_SIZE = 2 /* <ref refid="glext_8h_1a2286" kindref="member">depth</ref> of the color <ref refid="glext_8h_1a2311" kindref="member">buffer</ref> */; public static uint GLX_COLOR_INDEX_BIT = 0x00000002; public static uint GLX_COLOR_INDEX_BIT_SGIX = GLX_COLOR_INDEX_BIT; public static uint GLX_COLOR_INDEX_TYPE = 0x8015; public static uint GLX_COLOR_INDEX_TYPE_SGIX = GLX_COLOR_INDEX_TYPE; public static uint GLX_CONFIG_CAVEAT = 0x20 /* Like visual_info VISUAL_CAVEAT */; public static uint GLX_DAMAGED = 0x8020; public static uint GLX_DAMAGED_SGIX = GLX_DAMAGED; public static uint GLX_DEPTH_BUFFER_BIT = 0x00000020; public static uint GLX_DEPTH_BUFFER_BIT_SGIX = GLX_DEPTH_BUFFER_BIT; public static uint GLX_DEPTH_SIZE = 12 /* number of <ref refid="glext_8h_1a2286" kindref="member">depth</ref> bits */; public static uint GLX_DIRECT_COLOR = 0x8003; public static uint GLX_DIRECT_COLOR_EXT = 0x8003; public static uint GLX_DONT_CARE = 0xFFFFFFFF; public static uint GLX_DOUBLEBUFFER = 5 /* double buffering supported */; public static uint GLX_DRAWABLE_TYPE = 0x8010; public static uint GLX_DRAWABLE_TYPE_SGIX = GLX_DRAWABLE_TYPE; public static uint GLX_EVENT_MASK = 0x801F; public static uint GLX_EVENT_MASK_SGIX = GLX_EVENT_MASK; public static uint GLX_EXTENSIONS = 0x3; public static byte GLX_EXT_import_context = 1; public static byte GLX_EXT_visual_info = 1; public static byte GLX_EXT_visual_rating = 1; public static uint GLX_FBCONFIG_ID = 0x8013; public static uint GLX_FBCONFIG_ID_SGIX = GLX_FBCONFIG_ID; public static uint GLX_FLOAT_COMPONENTS_NV = 0x20B0; public static uint GLX_FRONT_LEFT_BUFFER_BIT = 0x00000001; public static uint GLX_FRONT_LEFT_BUFFER_BIT_SGIX = GLX_FRONT_LEFT_BUFFER_BIT; public static uint GLX_FRONT_RIGHT_BUFFER_BIT = 0x00000002; public static uint GLX_FRONT_RIGHT_BUFFER_BIT_SGIX = GLX_FRONT_RIGHT_BUFFER_BIT; public static uint GLX_GRAY_SCALE = 0x8006; public static uint GLX_GRAY_SCALE_EXT = 0x8006; public static uint GLX_GREEN_SIZE = 9 /* number of <ref refid="glext_8h_1a2260" kindref="member">green</ref> component bits */; public static uint GLX_HEIGHT = 0x801E; public static uint GLX_HEIGHT_SGIX = GLX_HEIGHT; public static uint GLX_LARGEST_PBUFFER = 0x801C; public static uint GLX_LARGEST_PBUFFER_SGIX = GLX_LARGEST_PBUFFER; public static uint GLX_LEVEL = 3 /* <ref refid="glext_8h_1a2285" kindref="member">level</ref> <ref refid="glext_8h_1a2416" kindref="member">in</ref> plane stacking */; public static uint GLX_MAX_PBUFFER_HEIGHT = 0x8017; public static uint GLX_MAX_PBUFFER_HEIGHT_SGIX = GLX_MAX_PBUFFER_HEIGHT; public static uint GLX_MAX_PBUFFER_PIXELS = 0x8018; public static uint GLX_MAX_PBUFFER_PIXELS_SGIX = GLX_MAX_PBUFFER_PIXELS; public static uint GLX_MAX_PBUFFER_WIDTH = 0x8016; public static uint GLX_MAX_PBUFFER_WIDTH_SGIX = GLX_MAX_PBUFFER_WIDTH; public static uint GLX_NO_EXTENSION = 3 /* no glx extension on server */; public static uint GLX_NON_CONFORMANT_CONFIG = 0x800D; public static uint GLX_NON_CONFORMANT_VISUAL_EXT = 0x800D; public static uint GLX_NONE = 0x8000; public static uint GLX_NONE_EXT = 0x8000; public static byte GLX_NV_float_buffer = 1; public static uint GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX = 0x801A; public static uint GLX_OPTIMAL_PBUFFER_WIDTH_SGIX = 0x8019; public static uint GLX_PBUFFER = 0x8023; public static uint GLX_PBUFFER_BIT = 0x00000004; public static uint GLX_PBUFFER_BIT_SGIX = GLX_PBUFFER_BIT; public static uint GLX_PBUFFER_CLOBBER_MASK = 0x08000000; public static uint GLX_PBUFFER_CLOBBER_MASK_SGIX = GLX_PBUFFER_CLOBBER_MASK; public static uint GLX_PBUFFER_HEIGHT = 0x8040 /* New for GLX 1.3 */; public static uint GLX_PBUFFER_SGIX = GLX_PBUFFER; public static uint GLX_PBUFFER_WIDTH = 0x8041 /* New for GLX 1.3 */; public static uint GLX_PIXMAP_BIT = 0x00000002; public static uint GLX_PIXMAP_BIT_SGIX = GLX_PIXMAP_BIT; public static uint GLX_PRESERVED_CONTENTS = 0x801B; public static uint GLX_PRESERVED_CONTENTS_SGIX = GLX_PRESERVED_CONTENTS; public static uint GLX_PSEUDO_COLOR = 0x8004; public static uint GLX_PSEUDO_COLOR_EXT = 0x8004; public static uint GLX_RED_SIZE = 8 /* number of red component bits */; public static uint GLX_RENDER_TYPE = 0x8011; public static uint GLX_RENDER_TYPE_SGIX = GLX_RENDER_TYPE; public static uint GLX_RGBA = 4 /* true if RGBA <ref refid="glext_8h_1a2361" kindref="member">mode</ref> */; public static uint GLX_RGBA_BIT = 0x00000001; public static uint GLX_RGBA_BIT_SGIX = GLX_RGBA_BIT; public static uint GLX_RGBA_TYPE = 0x8014; public static uint GLX_RGBA_TYPE_SGIX = GLX_RGBA_TYPE; public static uint GLX_SAMPLE_BUFFERS_ARB = 100000 /* number of multisample <ref refid="glext_8h_1a2312" kindref="member">buffers</ref> */; public static uint GLX_SAMPLES_ARB = 100001 /* number of multisample samples */; public static uint GLX_SAVED = 0x8021; public static uint GLX_SAVED_SGIX = GLX_SAVED; public static uint GLX_SCREEN = 0x800C; public static uint GLX_SCREEN_EXT = 0x800C /* screen number */; public static byte GLX_SGIX_fbconfig = 1; public static byte GLX_SGIX_pbuffer = 1; public static uint GLX_SHARE_CONTEXT_EXT = 0x800A /* <ref refid="glext_8h_1a2310" kindref="member">id</ref> of share context */; public static uint GLX_SLOW_CONFIG = 0x8001; public static uint GLX_SLOW_VISUAL_EXT = 0x8001; public static uint GLX_STATIC_COLOR = 0x8005; public static uint GLX_STATIC_COLOR_EXT = 0x8005; public static uint GLX_STATIC_GRAY = 0x8007; public static uint GLX_STATIC_GRAY_EXT = 0x8007; public static uint GLX_STENCIL_BUFFER_BIT = 0x00000040; public static uint GLX_STENCIL_BUFFER_BIT_SGIX = GLX_STENCIL_BUFFER_BIT; public static uint GLX_STENCIL_SIZE = 13 /* number of stencil bits */; public static uint GLX_STEREO = 6 /* stereo buffering supported */; public static uint GLX_TRANSPARENT_ALPHA_VALUE = 0x28; public static uint GLX_TRANSPARENT_ALPHA_VALUE_EXT = 0x28 /* visual_info extension */; public static uint GLX_TRANSPARENT_BLUE_VALUE = 0x27; public static uint GLX_TRANSPARENT_BLUE_VALUE_EXT = 0x27 /* visual_info extension */; public static uint GLX_TRANSPARENT_GREEN_VALUE = 0x26; public static uint GLX_TRANSPARENT_GREEN_VALUE_EXT = 0x26 /* visual_info extension */; public static uint GLX_TRANSPARENT_INDEX = 0x8009; public static uint GLX_TRANSPARENT_INDEX_EXT = 0x8009; public static uint GLX_TRANSPARENT_INDEX_VALUE = 0x24; public static uint GLX_TRANSPARENT_INDEX_VALUE_EXT = 0x24 /* visual_info extension */; public static uint GLX_TRANSPARENT_RED_VALUE = 0x25; public static uint GLX_TRANSPARENT_RED_VALUE_EXT = 0x25 /* visual_info extension */; public static uint GLX_TRANSPARENT_RGB = 0x8008; public static uint GLX_TRANSPARENT_RGB_EXT = 0x8008; public static uint GLX_TRANSPARENT_TYPE = 0x23; public static uint GLX_TRANSPARENT_TYPE_EXT = 0x23 /* visual_info extension */; public static uint GLX_TRUE_COLOR = 0x8002; public static uint GLX_TRUE_COLOR_EXT = 0x8002; public static uint GLX_USE_GL = 1 /* support GLX rendering */; public static uint GLX_VENDOR = 0x1; public static uint GLX_VERSION = 0x2; public static byte GLX_VERSION_1_1 = 1; public static byte GLX_VERSION_1_2 = 1; public static byte GLX_VERSION_1_3 = 1; public static uint GLX_VISUAL_CAVEAT_EXT = 0x20 /* visual_rating extension <ref refid="glext_8h_1a2266" kindref="member">type</ref> */; public static uint GLX_VISUAL_ID = 0x800B; public static uint GLX_VISUAL_ID_EXT = 0x800B /* <ref refid="glext_8h_1a2310" kindref="member">id</ref> of context'<ref refid="glext_8h_1a2292" kindref="member">s</ref> visual */; public static uint GLX_WIDTH = 0x801D; public static uint GLX_WIDTH_SGIX = GLX_WIDTH; public static uint GLX_WINDOW = 0x8022; public static uint GLX_WINDOW_BIT = 0x00000001; public static uint GLX_WINDOW_BIT_SGIX = GLX_WINDOW_BIT; public static uint GLX_WINDOW_SGIX = GLX_WINDOW; public static uint GLX_X_RENDERABLE = 0x8012; public static uint GLX_X_RENDERABLE_SGIX = GLX_X_RENDERABLE; public static uint GLX_X_VISUAL_TYPE = 0x22; public static uint GLX_X_VISUAL_TYPE_EXT = 0x22 /* visual_info extension <ref refid="glext_8h_1a2266" kindref="member">type</ref> */; // delegates // functions } } /*Fiiter*/ --- NEW FILE: gtkContext.cs --- namespace csDragons { namespace OpenGL { namespace Platform { using Gdk; using System; using System.Diagnostics; using System.Runtime.InteropServices; public class GdkGLContext : GLXTokens { IntPtr xdisplay; // the Xlib Display used IntPtr glxcontext; // the Xlib GLXContext used [ DllImport( "X11" ) ] static extern void XFree( IntPtr reference ); [ DllImport( "GL" ) ] static extern IntPtr glXCreateContext( IntPtr display, IntPtr visualInfo, IntPtr shareList, bool direct ); [ DllImport( "GL" ) ] static extern IntPtr glXChooseVisual( IntPtr display, int screen, uint[] attribList ); [ DllImport( "gdk-x11-2.0" ) ] static extern IntPtr gdk_x11_get_default_xdisplay(); [ DllImport( "gdk-x11-2.0" ) ] static extern int gdk_x11_get_default_screen(); [ DllImport( "GL" ) ] public static extern IntPtr glXGetCurrentContext(); [ DllImport( "GL" ) ] public static extern void glXDestroyContext( IntPtr display, IntPtr context ); [ DllImport( "gdk-x11-2.0" ) ] static extern int gdk_x11_drawable_get_xid( IntPtr drawable ); [ DllImport( "GL" ) ] static extern bool glXMakeCurrent ( IntPtr display, int drawableID, IntPtr glxcontext ); [ DllImport( "GL" ) ] static extern void glXWaitGL (); [ DllImport( "GL" ) ] static extern void glXWaitX (); [ DllImport( "GL" ) ] static extern void glXSwapBuffers ( IntPtr display, int drawableID ); protected static uint[] stdInitializerOrig = { GLX_RGBA, GLX_RED_SIZE, 8, GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, GLX_DOUBLEBUFFER, 0 }; protected static uint[] stdInitializer = { GLX_RGBA, GLX_DEPTH_SIZE, 16, GLX_DOUBLEBUFFER, 0 }; public GdkGLContext() : this ( stdInitializer ) { Debug.Indent(); Debug.WriteLine( "Entering GdkGLContext()" ); Debug.WriteLine( "Exiting GdkGLContext()" ); Debug.Unindent(); } public GdkGLContext( uint[] attributeList ) { Debug.Indent(); Debug.WriteLine( "Entering GdkGLContext(uint[])" ); // choose the visual based on attribute list Debug.WriteLine( "gdk_x11_get_default_xdisplay" ); Debug.Write( "preX11get: " ); Debug.WriteLine( xdisplay.ToString() ); xdisplay = gdk_x11_get_default_xdisplay(); if (xdisplay==IntPtr.Zero) throw new NoXDisplayException(); Debug.Write( "postX11get: " ); Debug.WriteLine( xdisplay.ToString() ); Debug.WriteLine( "glXChooseVisual" ); IntPtr visualInfo = glXChooseVisual( xdisplay, gdk_x11_get_default_screen(), attributeList ); if (visualInfo==IntPtr.Zero) throw new NoGLContextException(); try { Debug.WriteLine( "glXCreateContext" ); Debug.Write( "preCreate: " ); Debug.WriteLine( glxcontext.ToString() ); glxcontext = glXCreateContext( xdisplay, visualInfo, IntPtr.Zero, true ); Debug.Write( "postCreate: " ); Debug.WriteLine( glxcontext.ToString() ); } catch (Exception e) { Debug.Write( "==> " ); Debug.WriteLine( e.ToString() ); } finally { Debug.WriteLine( "XFree" ); XFree( visualInfo ); } Debug.WriteLine( "Exiting GdkGLContext(uint[])" ); Debug.Unindent(); } ~GdkGLContext() { Debug.Indent(); Debug.WriteLine( "Entering ~GdkGLContext(uint[])" ); if (glxcontext==glXGetCurrentContext()) { Debug.WriteLine( "glXMakeCurrent" ); glXMakeCurrent( xdisplay, 0, IntPtr.Zero ); } Debug.WriteLine( "glXDestroyContext" ); glXDestroyContext( xdisplay, glxcontext ); Debug.WriteLine( "Exiting ~GdkGLContext()" ); Debug.Unindent(); } public bool MakeCurrent( Window window ) { Debug.Indent(); Debug.WriteLine( "Entering GdkGLContext.MakeCurrent(Window)" ); bool result = false; if (window==null) { Debug.WriteLine( "window not initialized" ); result = false; } else { Debug.WriteLine( "gdk_x11_drawable_get_xid" ); int id = gdk_x11_drawable_get_xid( window.Handle ); Debug.WriteLine( "glXMakeCurrent" ); result = glXMakeCurrent( xdisplay, id, glxcontext ); Debug.WriteLine( "Exiting GdkGLContext.MakeCurrent(Window)*" ); Debug.Indent(); } return result; } public void WaitGL(){ glXWaitGL(); } public void WaitX(){ glXWaitX(); } public void SwapBuffers( Window window ) { Debug.Indent(); Debug.WriteLine( "Entering GdkGLContext.SwapBuffers(Window)" ); if (window==null) { Debug.WriteLine( "window not initialized" ); } else { Debug.WriteLine( "gdk_x11_drawable_get_xid" ); int id = gdk_x11_drawable_get_xid( window.Handle ); Debug.WriteLine( "glXSwapBuffers" ); glXSwapBuffers( xdisplay, id ); } Debug.WriteLine( "Exiting GdkGLContext.SwapBuffers(Window)" ); Debug.Unindent(); } } } } } --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following // attributes. // // change them to the information which is associated with the assembly // you compile. [assembly: AssemblyTitle("csDragons.OpenGL")] [assembly: AssemblyDescription("Wrapper-Library for OpenGL")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("csDragons")] [assembly: AssemblyProduct("csDragons OpenGL.NET")] [assembly: AssemblyCopyright("(C)Copyright 2004 by Tim Rädisch & Kai Reichert")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // The assembly version has following format : // // Major.Minor.Build.Revision // // You can specify all values by your own or you can build default build and revision // numbers with the '*' character (the default): [assembly: AssemblyVersion("0.1.*")] // The following attributes specify the key for the sign of your assembly. See the // .NET Framework documentation for more information about signing. // This is not required, if you don't want signing let these attributes like they're. [assembly: AssemblyDelaySign(true)] [assembly: AssemblyKeyFile("PublicKeyFile.snk")] --- NEW FILE: Makefile --- FILES_SRC=GLXTokens.cs ../Exceptions.cs FILES_GTK=gtkArea.cs gtkContext.cs FILES=$(FILES_SRC) $(FILES_GTK) DEBUG=/d:DEBUG DEBUG= OPTS_SRC=-lib:../../GL -r:csDragons.OpenGL OPTS_GTK=-lib:/usr/lib/mono/gtk-sharp -r:gtk-sharp.dll -r:gdk-sharp.dll -r:glib-sharp.dll OPTS=$(OPTS_SRC) $(OPTS_GTK) DLL=csDragons.OpenGL.Mono.dll GEN=mono ../../generator/csdGenerator.exe CC=mcs MCS=$(CC) $(OPTS) PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) all: $(DLL) $(DLL): AssemblyInfo.cs $(FILES) $(MCS) -target:library $^ -out:$@ GLXTokens.cs: glxtokens_8h.xml glxtokens.xml $(GEN) glxtokens.xml install: install-gac install-gac: $(DLL) $(GAC) /i $(DLL) /f /package $(PACKAGE) uninstall: uninstall-gac uninstall-gac: $(GAC) /u $(DLL) clean: rm -f *.exe rm -f *.dll rm -f csdGLBase.cs rm -f csdGLUBase.cs rm -f csdGLUTBase.cs rm -f csdGLXTokens.cs .IGNORE: clean .EXPORT_ALL_VARIABLES: .PHONY: clean --- NEW FILE: glxtokens.xml --- <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xmlInput>glxtokens_8h.xml</xmlInput> <linkLibrary>libXext.so</linkLibrary> <className>GLXTokens</className> <upperClass>System.Object</upperClass> <outputFile>GLXTokens.cs</outputFile> <writeFunctions>true</writeFunctions> <writeDelegates>true</writeDelegates> <writeDefines>true</writeDefines> <BaseTypes> </BaseTypes> <TypeDefs> </TypeDefs> <Namespace>csDragons.OpenGL.Platform</Namespace> </Configuration> --- NEW FILE: PublicKeyFile.snk --- (This appears to be a binary file; contents omitted.) |
From: Tim R. <ti...@us...> - 2004-09-11 08:10:52
|
Update of /cvsroot/csdopenglnet/csdOpenGL/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13407/tools Modified Files: Makefile Log Message: Restrukturierung Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/tools/Makefile,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Makefile 17 Aug 2004 09:10:31 -0000 1.6 --- Makefile 11 Sep 2004 08:10:42 -0000 1.7 *************** *** 1,29 **** ! GTKLIBS=glib-sharp.dll gtk-sharp.dll gdk-sharp.dll ! GTKLIBOPTS=$(foreach lib,$(GTKLIBS),-r $(lib)) ! FILES=ByteTexture2D.cs AssemblyInfo.cs gtkContext.cs gtkArea.cs CC=mcs DEBUG=/d:DEBUG DEBUG= ! OPTS=$(DEBUG) -lib:/usr/lib/mono/gtk-sharp -lib:../GL ! LIBS=csdGL.dll ! LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! MCS=$(CC) $(OPTS) $(LIBOPTS) $(GTKLIBOPTS) PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) ! all: csdGLtools.dll ! csdGLtools.dll: $(FILES) $(MCS) -r:System.Drawing -target:library $(FILES) -out:$@ install: install-gac ! install-gac: csdGLtools.dll ! $(GAC) /i csdGLtools.dll /f /package $(PACKAGE) uninstall: uninstall-gac uninstall-gac: ! $(GAC) /u csdGLtools clean: --- 1,26 ---- ! FILES=ByteTexture2D.cs AssemblyInfo.cs CC=mcs DEBUG=/d:DEBUG DEBUG= ! OPTS=$(DEBUG) ! MCS=$(CC) $(OPTS) PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) + DLL=csDragons.OpenGL.Tools.dll ! all: $(DLL) ! $(DLL): $(FILES) $(MCS) -r:System.Drawing -target:library $(FILES) -out:$@ install: install-gac ! install-gac: $(DLL) ! $(GAC) /i $(DLL) /f /package $(PACKAGE) uninstall: uninstall-gac uninstall-gac: ! $(GAC) /u $(DLL) clean: |
From: Tim R. <ti...@us...> - 2004-09-11 08:10:52
|
Update of /cvsroot/csdopenglnet/csdOpenGL/samples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13407/samples Modified Files: Makefile Makefile.gtk Log Message: Restrukturierung Index: Makefile.gtk =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/Makefile.gtk,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Makefile.gtk 17 Aug 2004 09:11:33 -0000 1.6 --- Makefile.gtk 11 Sep 2004 08:10:42 -0000 1.7 *************** *** 3,11 **** DEBUG= OPTS=$(DEBUG) ! LIBS=csdGL.dll csdMath.dll csdGLtools.dll glib-sharp.dll gdk-sharp.dll gtk-sharp.dll PACKAGE=csDragons LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! MCS=$(CC) $(OPTS) $(LIBOPTS) -r:System.Drawing -lib:/usr/lib/mono/gtk-sharp -lib:../GL all: libcsdGL.so gtkTriangle.exe gtkGears.exe gtkTexture.exe gtkFrame.exe gtkAdvanced.exe --- 3,11 ---- DEBUG= OPTS=$(DEBUG) ! LIBS=csDragons.OpenGL.dll csDragons.Math.dll csDragons.OpenGL.Tools.dll glib-sharp.dll gdk-sharp.dll gtk-sharp.dll PACKAGE=csDragons LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! MCS=$(CC) $(OPTS) $(LIBOPTS) -r:System.Drawing -lib:/usr/lib/mono/csDragons -lib:/usr/lib/mono/gtk-sharp -lib:../GL all: libcsdGL.so gtkTriangle.exe gtkGears.exe gtkTexture.exe gtkFrame.exe gtkAdvanced.exe Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/Makefile,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Makefile 17 Aug 2004 09:11:33 -0000 1.7 --- Makefile 11 Sep 2004 08:10:42 -0000 1.8 *************** *** 3,30 **** DEBUG= OPTS=$(DEBUG) ! LIBS=csdGL.dll csdMath.dll csdGLtools.dll ! MCS=$(CC) $(OPTS) -lib:/usr/lib/mono/gtk-sharp -lib:/../tools -lib:/../GL PACKAGE=csDragons LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! all: $(LIBS) triangle.exe texture.exe gears.exe $(MAKE) -f Makefile.gtk - csdGL.dll: libcsdGL.so - ln -sf ../GL/csdGL.dll . - - csdMath.dll: - ln -sf ../math/csdMath.dll - - csdGLtools.dll: - ln -sf ../tools/csdGLtools.dll - - libcsdGL.so: - ln -sf ../cbonding/libcsdGL.so . - %.exe:%.cs ! $(MCS) -r:csdGL.dll -r:csdGLtools.dll -r:csdMath.dll -r:System.Drawing $^ -o $@ ! clean: --- 3,17 ---- DEBUG= OPTS=$(DEBUG) ! LIBS=csDragons.OpenGL.dll csDragons.Math.dll csDragons.OpenGL.Tools.dll ! MCS=$(CC) $(OPTS) -lib:/usr/lib/mono/gtk-sharp -lib:/usr/lib/mono/csDragons -lib:/../tools -lib:/../GL PACKAGE=csDragons LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! all: triangle.exe texture.exe gears.exe $(MAKE) -f Makefile.gtk %.exe:%.cs ! $(MCS) $(LIBOPTS) -r:System.Drawing $^ -o $@ clean: |
From: Tim R. <ti...@us...> - 2004-09-11 08:10:51
|
Update of /cvsroot/csdopenglnet/csdOpenGL/GL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13407/GL Modified Files: Exceptions.cs Makefile gl.xml glu.xml glut.xml Removed Files: glxtokens_8h.xml Log Message: Restrukturierung Index: gl.xml =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/GL/gl.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** gl.xml 6 Aug 2004 06:07:24 -0000 1.2 --- gl.xml 11 Sep 2004 08:10:41 -0000 1.3 *************** *** 1,5 **** <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xmlInput>gl_8h.xml</xmlInput> ! <linkLibrary>libGL.so</linkLibrary> <className>csdGLBase</className> <upperClass>System.Object</upperClass> --- 1,5 ---- <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xmlInput>gl_8h.xml</xmlInput> ! <linkLibrary>opengl32.dll</linkLibrary> <className>csdGLBase</className> <upperClass>System.Object</upperClass> --- glxtokens_8h.xml DELETED --- Index: glut.xml =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/GL/glut.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** glut.xml 17 Aug 2004 09:09:06 -0000 1.4 --- glut.xml 11 Sep 2004 08:10:41 -0000 1.5 *************** *** 1,7 **** <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xmlInput>glut_8h.xml</xmlInput> ! <linkLibrary>libcsdGL.so</linkLibrary> <className>csdGLUTBase</className> ! <upperClass>csdGLXTokens</upperClass> <outputFile>csdGLUTBase.cs</outputFile> <writeFunctions>true</writeFunctions> --- 1,7 ---- <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xmlInput>glut_8h.xml</xmlInput> ! <linkLibrary>glut32.dll</linkLibrary> <className>csdGLUTBase</className> ! <upperClass>csdGLUBase</upperClass> <outputFile>csdGLUTBase.cs</outputFile> <writeFunctions>true</writeFunctions> Index: glu.xml =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/GL/glu.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** glu.xml 6 Aug 2004 06:07:24 -0000 1.2 --- glu.xml 11 Sep 2004 08:10:41 -0000 1.3 *************** *** 1,5 **** <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xmlInput>glu_8h.xml</xmlInput> ! <linkLibrary>libGLU.so</linkLibrary> <className>csdGLUBase</className> <upperClass>csdGLBase</upperClass> --- 1,5 ---- <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xmlInput>glu_8h.xml</xmlInput> ! <linkLibrary>dlu32.dll</linkLibrary> <className>csdGLUBase</className> <upperClass>csdGLBase</upperClass> Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/GL/Makefile,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Makefile 17 Aug 2004 09:09:06 -0000 1.5 --- Makefile 11 Sep 2004 08:10:41 -0000 1.6 *************** *** 1,3 **** ! FILES=csdGLBase.cs csdGL.cs csdGLUBase.cs csdGLUTBase.cs Exceptions.cs csdGLXTokens.cs GEN=mono ../generator/csdGenerator.exe --- 1,3 ---- ! FILES=csdGLBase.cs csdGL.cs csdGLUBase.cs csdGLUTBase.cs Exceptions.cs GEN=mono ../generator/csdGenerator.exe *************** *** 10,21 **** PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) ! all: csdGL.dll ! csdGL.dll: AssemblyInfo.cs $(FILES) $(MCS) -target:library $^ -out:$@ - - csdGLXTokens.cs: glxtokens_8h.xml glxtokens.xml - $(GEN) glxtokens.xml csdGLBase.cs: gl_8h.xml gl.xml --- 10,19 ---- PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) + DLL=csDragons.OpenGL.dll ! all: $(DLL) ! $(DLL): AssemblyInfo.cs $(FILES) $(MCS) -target:library $^ -out:$@ csdGLBase.cs: gl_8h.xml gl.xml *************** *** 34,44 **** ! install-gac: csdGL.dll csdGL_Gtk.dll ! $(GAC) /i csdGL.dll /f /package $(PACKAGE) uninstall: uninstall-gac uninstall-gac: ! $(GAC) /u csdGL clean: --- 32,42 ---- ! install-gac: $(DLL) ! $(GAC) /i $(DLL) /f /package $(PACKAGE) uninstall: uninstall-gac uninstall-gac: ! $(GAC) /u $(DLL) clean: Index: Exceptions.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/GL/Exceptions.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Exceptions.cs 5 Aug 2004 13:09:14 -0000 1.1 --- Exceptions.cs 11 Sep 2004 08:10:41 -0000 1.2 *************** *** 53,68 **** public class GLOutOfMemory : GLException {}; - /** \brief No GL Context available - * - * This Exception is raised if there is an fatal error - * during obtaining the OpenGL context. - */ - public class NoGLContextException : GLException {} - - /** \brief No X Display available - * - * This Exception is raised if no XDisplay can be used. - */ - public class NoXDisplayException : GLException {} --- 53,56 ---- |
From: Tim R. <ti...@us...> - 2004-09-11 08:10:51
|
Update of /cvsroot/csdopenglnet/csdOpenGL/math In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13407/math Modified Files: Makefile Removed Files: MathTest.cs Log Message: Restrukturierung --- MathTest.cs DELETED --- Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/math/Makefile,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Makefile 13 Aug 2004 12:27:06 -0000 1.3 --- Makefile 11 Sep 2004 08:10:41 -0000 1.4 *************** *** 1,4 **** - destAPPS=MathTest.exe - destLIBS=csdMath.dll LIBFILES=FVector.cs F4Vector.cs F3Vector.cs FMatrix.cs F4Matrix.cs F3Matrix.cs AssemblyInfo.cs Bezier.cs CC=mcs --- 1,2 ---- *************** *** 9,35 **** PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) ! all: $(LIBS) MathTest.exe ! csdMath.dll: $(LIBFILES) mcs -target:library $(LIBFILES) $(OPTS) -out:$@ - MathTest.exe: MathTest.cs csdMath.dll - $(CC) $(OPTS) -r:csdMath.dll MathTest.cs -out:$@ - install: install-gac ! install-gac: csdMath.dll ! $(GAC) /i csdMath.dll /f /package $(PACKAGE) uninstall: uninstall-gac uninstall-gac: ! $(GAC) /u csdMath clean: ! rm -f $(destAPPS) ! rm -f $(destLIBS) .IGNORE: --- 7,30 ---- PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) + DLL=csDragons.Math.dll ! all: $(DLL) ! $(DLL): $(LIBFILES) mcs -target:library $(LIBFILES) $(OPTS) -out:$@ install: install-gac ! install-gac: $(DLL) ! $(GAC) /i $(DLL) /f /package $(PACKAGE) uninstall: uninstall-gac uninstall-gac: ! $(GAC) /u $(DLL) clean: ! rm -f $(DLL) .IGNORE: |
From: Tim R. <ti...@us...> - 2004-09-11 08:10:51
|
Update of /cvsroot/csdopenglnet/csdOpenGL/platform In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13407/platform Added Files: Exceptions.cs Log Message: Restrukturierung --- NEW FILE: Exceptions.cs --- using System; namespace csDragons { namespace OpenGL { namespace Platform { /** \brief General OpenGL Error * * This class is the base class for all Platform-OpenGL Exceptions */ public class GLPlatformException : csDragons.OpenGL.GLException {}; /** \brief No GL Context available * * This Exception is raised if there is an fatal error * during obtaining the OpenGL context. */ public class NoGLContextException : GLPlatformException {} /** \brief No X Display available * * This Exception is raised if no XDisplay can be used. */ public class NoXDisplayException : GLPlatformException {} } } } |
From: Tim R. <ti...@us...> - 2004-09-11 08:10:50
|
Update of /cvsroot/csdopenglnet/csdOpenGL/Cg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13407/Cg Modified Files: cg.xml cgGL.xml Log Message: Restrukturierung Index: cg.xml =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/Cg/cg.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** cg.xml 6 Aug 2004 06:02:10 -0000 1.1 --- cg.xml 11 Sep 2004 08:10:40 -0000 1.2 *************** *** 1,5 **** <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xmlInput>cg_8h.xml</xmlInput> ! <linkLibrary>libcsdCg.so</linkLibrary> <className>csdCgBase</className> <upperClass>csDragons.OpenGL.GL</upperClass> --- 1,5 ---- <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xmlInput>cg_8h.xml</xmlInput> ! <linkLibrary>libCg.so</linkLibrary> <className>csdCgBase</className> <upperClass>csDragons.OpenGL.GL</upperClass> Index: cgGL.xml =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/Cg/cgGL.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cgGL.xml 6 Aug 2004 11:42:33 -0000 1.2 --- cgGL.xml 11 Sep 2004 08:10:40 -0000 1.3 *************** *** 1,5 **** <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xmlInput>cgGL_8h.xml</xmlInput> ! <linkLibrary>libcsdCg.so</linkLibrary> <className>csdCgGLBase</className> <upperClass>csdCgBase</upperClass> --- 1,5 ---- <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xmlInput>cgGL_8h.xml</xmlInput> ! <linkLibrary>libCgGL.so</linkLibrary> <className>csdCgGLBase</className> <upperClass>csdCgBase</upperClass> |
From: Tim R. <ti...@us...> - 2004-09-11 07:49:30
|
Update of /cvsroot/csdopenglnet/csdOpenGL/platform/mono In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9466/mono Log Message: Directory /cvsroot/csdopenglnet/csdOpenGL/platform/mono added to the repository |
From: Tim R. <ti...@us...> - 2004-09-11 07:48:50
|
Update of /cvsroot/csdopenglnet/csdOpenGL/platform In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9342/platform Log Message: Directory /cvsroot/csdopenglnet/csdOpenGL/platform added to the repository |
From: Tim R. <ti...@us...> - 2004-09-04 08:34:07
|
Update of /cvsroot/csdopenglnet/csdOpenGL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30615 Modified Files: ChangeLog Log Message: preparation for new release Index: ChangeLog =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/ChangeLog,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ChangeLog 17 Aug 2004 09:14:46 -0000 1.8 --- ChangeLog 4 Sep 2004 08:33:44 -0000 1.9 *************** *** 1,3 **** ! ******: added basic Cg support relocated the Gtk# widgets in the tools assembly --- 1,3 ---- ! 0.2.0: added basic Cg support relocated the Gtk# widgets in the tools assembly |
From: Tim R. <ti...@us...> - 2004-09-04 08:34:06
|
Update of /cvsroot/csdopenglnet/csdOpenGL/Cg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30615/Cg Modified Files: Makefile Removed Files: demo2.cs Log Message: preparation for new release --- demo2.cs DELETED --- Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/Cg/Makefile,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Makefile 13 Aug 2004 12:27:05 -0000 1.11 --- Makefile 4 Sep 2004 08:33:44 -0000 1.12 *************** *** 34,38 **** $(GEN) cgGL.xml ! demo: demo.exe demo2.exe %.exe:%.cs --- 34,38 ---- $(GEN) cgGL.xml ! demo: demo.exe %.exe:%.cs |
From: Tim R. <ti...@us...> - 2004-08-17 23:09:21
|
Update of /cvsroot/csdopenglnet/csdOpenGL/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9783 Modified Files: Makefile gtkAdvanced.cs Added Files: gtkArea.cs gtkContext.cs Log Message: added Gtk# widget Index: gtkAdvanced.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/tools/gtkAdvanced.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** gtkAdvanced.cs 16 Aug 2004 08:20:26 -0000 1.1 --- gtkAdvanced.cs 17 Aug 2004 09:10:31 -0000 1.2 *************** *** 7,11 **** using System.Diagnostics; ! public class GtkAdvanced : GL { protected Gtk.Window window; --- 7,11 ---- using System.Diagnostics; ! public class GtkAdvanced : csDragons.OpenGL.Cg.Cg { protected Gtk.Window window; --- NEW FILE: gtkContext.cs --- namespace csDragons { namespace OpenGL { using Gdk; using System; using System.Diagnostics; using System.Runtime.InteropServices; public class GdkGLContext : csdGLXTokens { IntPtr xdisplay; // the Xlib Display used IntPtr glxcontext; // the Xlib GLXContext used [ DllImport( "X11" ) ] static extern void XFree( IntPtr reference ); [ DllImport( "GL" ) ] static extern IntPtr glXCreateContext( IntPtr display, IntPtr visualInfo, IntPtr shareList, bool direct ); [ DllImport( "GL" ) ] static extern IntPtr glXChooseVisual( IntPtr display, int screen, uint[] attribList ); [ DllImport( "gdk-x11-2.0" ) ] static extern IntPtr gdk_x11_get_default_xdisplay(); [ DllImport( "gdk-x11-2.0" ) ] static extern int gdk_x11_get_default_screen(); [ DllImport( "GL" ) ] public static extern IntPtr glXGetCurrentContext(); [ DllImport( "GL" ) ] public static extern void glXDestroyContext( IntPtr display, IntPtr context ); [ DllImport( "gdk-x11-2.0" ) ] static extern int gdk_x11_drawable_get_xid( IntPtr drawable ); [ DllImport( "GL" ) ] static extern bool glXMakeCurrent ( IntPtr display, int drawableID, IntPtr glxcontext ); [ DllImport( "GL" ) ] static extern void glXWaitGL (); [ DllImport( "GL" ) ] static extern void glXWaitX (); [ DllImport( "GL" ) ] static extern void glXSwapBuffers ( IntPtr display, int drawableID ); protected static uint[] stdInitializerOrig = { GLX_RGBA, GLX_RED_SIZE, 8, GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, GLX_DOUBLEBUFFER, 0 }; protected static uint[] stdInitializer = { GLX_RGBA, GLX_DEPTH_SIZE, 16, GLX_DOUBLEBUFFER, 0 }; public GdkGLContext() : this ( stdInitializer ) { Debug.Indent(); Debug.WriteLine( "Entering GdkGLContext()" ); Debug.WriteLine( "Exiting GdkGLContext()" ); Debug.Unindent(); } public GdkGLContext( uint[] attributeList ) { Debug.Indent(); Debug.WriteLine( "Entering GdkGLContext(uint[])" ); // choose the visual based on attribute list Debug.WriteLine( "gdk_x11_get_default_xdisplay" ); Debug.Write( "preX11get: " ); Debug.WriteLine( xdisplay.ToString() ); xdisplay = gdk_x11_get_default_xdisplay(); if (xdisplay==IntPtr.Zero) throw new NoXDisplayException(); Debug.Write( "postX11get: " ); Debug.WriteLine( xdisplay.ToString() ); Debug.WriteLine( "glXChooseVisual" ); IntPtr visualInfo = glXChooseVisual( xdisplay, gdk_x11_get_default_screen(), attributeList ); if (visualInfo==IntPtr.Zero) throw new NoGLContextException(); try { Debug.WriteLine( "glXCreateContext" ); Debug.Write( "preCreate: " ); Debug.WriteLine( glxcontext.ToString() ); glxcontext = glXCreateContext( xdisplay, visualInfo, IntPtr.Zero, true ); Debug.Write( "postCreate: " ); Debug.WriteLine( glxcontext.ToString() ); } catch (Exception e) { Debug.Write( "==> " ); Debug.WriteLine( e.ToString() ); } finally { Debug.WriteLine( "XFree" ); XFree( visualInfo ); } Debug.WriteLine( "Exiting GdkGLContext(uint[])" ); Debug.Unindent(); } ~GdkGLContext() { Debug.Indent(); Debug.WriteLine( "Entering ~GdkGLContext(uint[])" ); if (glxcontext==glXGetCurrentContext()) { Debug.WriteLine( "glXMakeCurrent" ); glXMakeCurrent( xdisplay, 0, IntPtr.Zero ); } Debug.WriteLine( "glXDestroyContext" ); glXDestroyContext( xdisplay, glxcontext ); Debug.WriteLine( "Exiting ~GdkGLContext()" ); Debug.Unindent(); } public bool MakeCurrent( Window window ) { Debug.Indent(); Debug.WriteLine( "Entering GdkGLContext.MakeCurrent(Window)" ); bool result = false; if (window==null) { Debug.WriteLine( "window not initialized" ); result = false; } else { Debug.WriteLine( "gdk_x11_drawable_get_xid" ); int id = gdk_x11_drawable_get_xid( window.Handle ); Debug.WriteLine( "glXMakeCurrent" ); result = glXMakeCurrent( xdisplay, id, glxcontext ); Debug.WriteLine( "Exiting GdkGLContext.MakeCurrent(Window)*" ); Debug.Indent(); } return result; } public void WaitGL(){ glXWaitGL(); } public void WaitX(){ glXWaitX(); } public void SwapBuffers( Window window ) { Debug.Indent(); Debug.WriteLine( "Entering GdkGLContext.SwapBuffers(Window)" ); if (window==null) { Debug.WriteLine( "window not initialized" ); } else { Debug.WriteLine( "gdk_x11_drawable_get_xid" ); int id = gdk_x11_drawable_get_xid( window.Handle ); Debug.WriteLine( "glXSwapBuffers" ); glXSwapBuffers( xdisplay, id ); } Debug.WriteLine( "Exiting GdkGLContext.SwapBuffers(Window)" ); Debug.Unindent(); } } } } --- NEW FILE: gtkArea.cs --- namespace csDragons { namespace OpenGL { using Gdk; using Gtk; using System; using System.Diagnostics; /** \brief OpenGL-widget * * This class is an OpenGL-widget for Gtk#. */ public class GtkGLArea : DrawingArea { /** \brief each widget must have a type */ static GLib.GType type = RegisterGType (typeof (GtkGLArea)); /** \brief OpenGL context*/ protected GdkGLContext context; /** \brief default constructor * * This constructor uses default settings for createn a GLX context */ public GtkGLArea() : base(type) { Debug.Indent(); Debug.WriteLine( "Entering GtkGLArea()" ); DoubleBuffered = false; Debug.WriteLine( "Init context" ); context = new GdkGLContext(); Debug.WriteLine( "Exiting GtkGLArea()" ); Debug.Unindent(); } /** * This constructor creates the GLX context with the specified parameters * @param attr GLX parameter list */ public GtkGLArea( uint[] attr) : base(type) { Debug.Indent(); Debug.WriteLine( "Entering GtkGLArea(uint[])" ); DoubleBuffered = false; Debug.WriteLine( "Init context" ); context = new GdkGLContext( attr ); Debug.WriteLine( "Entering GtkGLArea(uint[])" ); Debug.Unindent(); } /** \brief activate OpenGL context * * This method marks the associated GL context as active, so that * all following OpenGL statements will alter it. */ public bool MakeCurrent() { Debug.Indent(); Debug.WriteLine( "Entering GtkGLArea.MakeCurrent()" ); bool result = context.MakeCurrent( GdkWindow ); Debug.WriteLine( "Entering GtkGLArea.MakeCurrent()*" ); Debug.Unindent(); return result; } public void WaitGL(){ context.WaitGL(); } public void WaitX(){ context.WaitX(); } /** \brief OpenGL swapBuffers() * * This method causes OpenGL to swap buffers if possible, */ public void SwapBuffers() { Debug.Indent(); Debug.WriteLine( "Entering GtkGLArea.SwapBuffers()" ); context.SwapBuffers( GdkWindow ); Debug.WriteLine( "Entering GtkGLArea.SwapBuffers()" ); Debug.Unindent(); } } } } Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/tools/Makefile,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Makefile 16 Aug 2004 08:20:26 -0000 1.5 --- Makefile 17 Aug 2004 09:10:31 -0000 1.6 *************** *** 1,12 **** ! FILES=ByteTexture2D.cs AssemblyInfo.cs gtkAdvanced.cs CC=mcs DEBUG=/d:DEBUG DEBUG= ! OPTS=$(DEBUG) -lib:/usr/lib/mono/gtk-sharp -lib:/usr/lib/mono/csDragons ! LIBS=csdCg.dll csdGL_Gtk.dll csdGLtools.dll glib-sharp.dll gtk-sharp.dll gdk-sharp.dll LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! MCS=$(CC) $(OPTS) $(LIBOPTS) PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) all: csdGLtools.dll --- 1,15 ---- ! GTKLIBS=glib-sharp.dll gtk-sharp.dll gdk-sharp.dll ! GTKLIBOPTS=$(foreach lib,$(GTKLIBS),-r $(lib)) ! FILES=ByteTexture2D.cs AssemblyInfo.cs gtkContext.cs gtkArea.cs CC=mcs DEBUG=/d:DEBUG DEBUG= ! OPTS=$(DEBUG) -lib:/usr/lib/mono/gtk-sharp -lib:../GL ! LIBS=csdGL.dll LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! MCS=$(CC) $(OPTS) $(LIBOPTS) $(GTKLIBOPTS) PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) + all: csdGLtools.dll |
From: Tim R. <ti...@us...> - 2004-08-17 23:09:03
|
Update of /cvsroot/csdopenglnet/csdOpenGL/GL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9496 Modified Files: Makefile glut.xml glxtokens.xml Removed Files: AssemblyInfo_csdGL.cs AssemblyInfo_csdGLGtk.cs gtkArea.cs gtkContext.cs Log Message: removed Gtk-Widget --- gtkArea.cs DELETED --- Index: glut.xml =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/GL/glut.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** glut.xml 6 Aug 2004 06:07:24 -0000 1.3 --- glut.xml 17 Aug 2004 09:09:06 -0000 1.4 *************** *** 3,7 **** <linkLibrary>libcsdGL.so</linkLibrary> <className>csdGLUTBase</className> ! <upperClass>csdGLUBase</upperClass> <outputFile>csdGLUTBase.cs</outputFile> <writeFunctions>true</writeFunctions> --- 3,7 ---- <linkLibrary>libcsdGL.so</linkLibrary> <className>csdGLUTBase</className> ! <upperClass>csdGLXTokens</upperClass> <outputFile>csdGLUTBase.cs</outputFile> <writeFunctions>true</writeFunctions> --- gtkContext.cs DELETED --- Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/GL/Makefile,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Makefile 13 Aug 2004 12:27:05 -0000 1.4 --- Makefile 17 Aug 2004 09:09:06 -0000 1.5 *************** *** 1,5 **** ! FILES=csdGLBase.cs csdGL.cs csdGLUBase.cs csdGLUTBase.cs Exceptions.cs ! GTKLIBS=glib-sharp.dll gtk-sharp.dll gdk-sharp.dll ! GTKLIBOPTS=$(foreach lib,$(GTKLIBS),-r $(lib)) GEN=mono ../generator/csdGenerator.exe --- 1,3 ---- ! FILES=csdGLBase.cs csdGL.cs csdGLUBase.cs csdGLUTBase.cs Exceptions.cs csdGLXTokens.cs GEN=mono ../generator/csdGenerator.exe *************** *** 8,24 **** DEBUG=/d:DEBUG DEBUG= ! OPTS=$(DEBUG) -lib:/usr/lib/mono/gtk-sharp MCS=$(CC) $(OPTS) PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) ! all: csdGL.dll csdGL_Gtk.dll ! csdGL.dll: AssemblyInfo_csdGL.cs $(FILES) $(MCS) -target:library $^ -out:$@ - csdGL_Gtk.dll: gtkContext.cs csdGLXTokens.cs gtkArea.cs AssemblyInfo_csdGLGtk.cs $(FILES) - $(MCS) -target:library $(GTKLIBOPTS) $^ -out:$@ - csdGLXTokens.cs: glxtokens_8h.xml glxtokens.xml $(GEN) glxtokens.xml --- 6,19 ---- DEBUG=/d:DEBUG DEBUG= ! OPTS=$(DEBUG) MCS=$(CC) $(OPTS) PACKAGE=csDragons GAC=gacutil $(GACUTIL_FLAGS) ! all: csdGL.dll ! csdGL.dll: AssemblyInfo.cs $(FILES) $(MCS) -target:library $^ -out:$@ csdGLXTokens.cs: glxtokens_8h.xml glxtokens.xml $(GEN) glxtokens.xml *************** *** 41,45 **** install-gac: csdGL.dll csdGL_Gtk.dll $(GAC) /i csdGL.dll /f /package $(PACKAGE) - $(GAC) /i csdGL_Gtk.dll /f /package $(PACKAGE) uninstall: uninstall-gac --- 36,39 ---- *************** *** 47,51 **** uninstall-gac: $(GAC) /u csdGL - $(GAC) /u csdGL_Gtk clean: --- 41,44 ---- Index: glxtokens.xml =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/GL/glxtokens.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** glxtokens.xml 6 Aug 2004 06:07:24 -0000 1.2 --- glxtokens.xml 17 Aug 2004 09:09:06 -0000 1.3 *************** *** 3,7 **** <linkLibrary>libcsdGL.so</linkLibrary> <className>csdGLXTokens</className> ! <upperClass>System.Object</upperClass> <outputFile>csdGLXTokens.cs</outputFile> <writeFunctions>true</writeFunctions> --- 3,7 ---- <linkLibrary>libcsdGL.so</linkLibrary> <className>csdGLXTokens</className> ! <upperClass>csdGLUBase</upperClass> <outputFile>csdGLXTokens.cs</outputFile> <writeFunctions>true</writeFunctions> --- AssemblyInfo_csdGLGtk.cs DELETED --- --- AssemblyInfo_csdGL.cs DELETED --- |
From: Tim R. <ti...@us...> - 2004-08-17 22:52:56
|
Update of /cvsroot/csdopenglnet/csdOpenGL/GL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6681 Added Files: AssemblyInfo.cs Log Message: just forgot to add --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following // attributes. // // change them to the information which is associated with the assembly // you compile. [assembly: AssemblyTitle("csDragons.OpenGL")] [assembly: AssemblyDescription("Wrapper-Library for OpenGL")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("csDragons")] [assembly: AssemblyProduct("csDragons OpenGL.NET")] [assembly: AssemblyCopyright("(C)Copyright 2004 by Tim Rädisch & Kai Reichert")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // The assembly version has following format : // // Major.Minor.Build.Revision // // You can specify all values by your own or you can build default build and revision // numbers with the '*' character (the default): [assembly: AssemblyVersion("0.1.*")] // The following attributes specify the key for the sign of your assembly. See the // .NET Framework documentation for more information about signing. // This is not required, if you don't want signing let these attributes like they're. [assembly: AssemblyDelaySign(true)] [assembly: AssemblyKeyFile("PublicKeyFile.snk")] |
From: Tim R. <ti...@us...> - 2004-08-17 09:19:42
|
Update of /cvsroot/csdopenglnet/csdOpenGL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10439 Modified Files: ChangeLog Log Message: little description of modifications Index: ChangeLog =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/ChangeLog,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ChangeLog 6 Aug 2004 11:42:33 -0000 1.7 --- ChangeLog 17 Aug 2004 09:14:46 -0000 1.8 *************** *** 1,6 **** ! 0.1.3: added basic Cg support freeglut support is removed, because we focus on Gtk# and freeglut was not as easy as glut ! there was an error in the generator by converting (void*), so that not all possible type combinations were BERÜCKSICHTIGT 0.1.2: --- 1,11 ---- ! ******: added basic Cg support + relocated the Gtk# widgets in the tools assembly + corrected an array indexing failure in ByteTexture2D + + + 0.1.3: freeglut support is removed, because we focus on Gtk# and freeglut was not as easy as glut ! there was an error in the generator by converting (void*), so that not all possible type combinations were considered 0.1.2: |
From: Tim R. <ti...@us...> - 2004-08-17 09:17:45
|
Update of /cvsroot/csdopenglnet/csdOpenGL/samples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9942 Modified Files: Makefile Makefile.gtk Log Message: modified for using the new DLL structure Index: Makefile.gtk =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/Makefile.gtk,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Makefile.gtk 5 Aug 2004 13:09:16 -0000 1.5 --- Makefile.gtk 17 Aug 2004 09:11:33 -0000 1.6 *************** *** 3,22 **** DEBUG= OPTS=$(DEBUG) ! LIBS=csdGL_Gtk.dll csdMath.dll csdGLtools.dll ! MCS=$(CC) $(OPTS) -lib:/usr/lib/mono/gtk-sharp PACKAGE=csDragons LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) ! all: $(LIBS) gtkTriangle.exe gtkGears.exe gtkTexture.exe gtkFrame.exe gtkAdvanced.exe ! ! csdGL_Gtk.dll: libcsdGL.so ! ln -sf ../GL/csdGL_Gtk.dll . ! ! csdMath.dll: ! ln -sf ../math/csdMath.dll ! ! csdGLtools.dll: ! ln -sf ../tools/csdGLtools.dll libcsdGL.so: --- 3,13 ---- DEBUG= OPTS=$(DEBUG) ! LIBS=csdGL.dll csdMath.dll csdGLtools.dll glib-sharp.dll gdk-sharp.dll gtk-sharp.dll PACKAGE=csDragons LIBOPTS=$(foreach lib,$(LIBS),-r $(lib)) + MCS=$(CC) $(OPTS) $(LIBOPTS) -r:System.Drawing -lib:/usr/lib/mono/gtk-sharp -lib:../GL ! all: libcsdGL.so gtkTriangle.exe gtkGears.exe gtkTexture.exe gtkFrame.exe gtkAdvanced.exe libcsdGL.so: *************** *** 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 $@ --- 15,19 ---- %.exe:%.cs ! $(MCS) $^ -o $@ Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/samples/Makefile,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Makefile 5 Aug 2004 13:09:15 -0000 1.6 --- Makefile 17 Aug 2004 09:11:33 -0000 1.7 *************** *** 4,8 **** OPTS=$(DEBUG) LIBS=csdGL.dll csdMath.dll csdGLtools.dll ! MCS=$(CC) $(OPTS) -lib:/usr/lib/mono/gtk-sharp PACKAGE=csDragons --- 4,8 ---- OPTS=$(DEBUG) LIBS=csdGL.dll csdMath.dll csdGLtools.dll ! MCS=$(CC) $(OPTS) -lib:/usr/lib/mono/gtk-sharp -lib:/../tools -lib:/../GL PACKAGE=csDragons |
From: Tim R. <ti...@us...> - 2004-08-17 09:09:26
|
Update of /cvsroot/csdopenglnet/csdOpenGL/generator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8670 Modified Files: Makefile Log Message: generator was bind against gtk-sharp.dll Index: Makefile =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/generator/Makefile,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Makefile 5 Aug 2004 15:05:28 -0000 1.10 --- Makefile 17 Aug 2004 09:04:50 -0000 1.11 *************** *** 4,8 **** DEBUG=/d:DEBUG DEBUG= ! OPTS=$(DEBUG) -lib:/usr/lib/mono/gtk-sharp MCS=$(CC) $(OPTS) PACKAGE=csDragons --- 4,8 ---- DEBUG=/d:DEBUG DEBUG= ! OPTS=$(DEBUG) MCS=$(CC) $(OPTS) PACKAGE=csDragons |