From: Tim R. <ti...@us...> - 2004-08-01 10:55:55
|
Update of /cvsroot/csdopenglnet/csdOpenGL/generator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31045/generator Modified Files: csdGL.cs Log Message: removed manual dllimport-calls Index: csdGL.cs =================================================================== RCS file: /cvsroot/csdopenglnet/csdOpenGL/generator/csdGL.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** csdGL.cs 12 Jul 2004 17:17:56 -0000 1.1.1.1 --- csdGL.cs 1 Aug 2004 10:55:47 -0000 1.2 *************** *** 6,47 **** namespace OpenGL { - public delegate void cbDisplayFunc(); - public delegate void cbKeyboardFunc( byte key, int x, int y ); - public delegate void cbTimerFunc( int value ); - public delegate void cbReshapeFunc( int width, int height ); - public class csdGL : csdGLUTBase { - const string lib = "libcsdGL.so"; - - [ DllImport(lib) ] - public static extern void csdReshapeFunc( cbReshapeFunc func ); - - [ DllImport(lib) ] - public static extern void csdTimerFunc( uint millis, cbTimerFunc func, int value ); - - [ DllImport(lib) ] - public static extern void csdSwapBuffers(); - - [ DllImport(lib) ] - public static extern void csdInitDisplayMode( uint mode ); - - [ DllImport(lib) ] - public static extern void csdInitWindowSize( int width, int height ); - - [ DllImport(lib) ] - public static extern void csdMainLoop(); - - [ DllImport(lib) ] - public static extern int csdCreateWindow( string title ); - - [ DllImport(lib) ] - public static extern void csdDisplayFunc( cbDisplayFunc func ); - - [ DllImport(lib) ] - public static extern void csdKeyboardFunc( cbKeyboardFunc func ); - - [ DllImport(lib) ] - public static extern void csdPostRedisplay(); } --- 6,11 ---- |