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.) |