X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_init.c;h=752439e38ddf442a068e7efd12caef6f2da0d1f9;hb=99d53f15a4216240088132f6af9cb194b519b1cc;hp=1e7193146ab778bc2fb18b88c7adedfcb64166f2;hpb=0e653a9d94fec583f7a4172b721c1c599e06cbc8;p=freeglut diff --git a/src/fg_init.c b/src/fg_init.c index 1e71931..752439e 100644 --- a/src/fg_init.c +++ b/src/fg_init.c @@ -28,7 +28,6 @@ #define FREEGLUT_BUILDING_LIB #include #include "fg_internal.h" -#include "fg_gl2.h" /* * TODO BEFORE THE STABLE RELEASE: @@ -342,9 +341,6 @@ void FGAPIENTRY glutInit( int* pargc, char** argv ) fgCreateStructure( ); - /* Get start time */ - fgState.Time = fgSystemTime(); - fghParseCommandLineArguments ( pargc, argv, &displayName, &geometry ); /* @@ -381,8 +377,6 @@ void FGAPIENTRY glutInit( int* pargc, char** argv ) if( (mask & (XValue|YValue)) == (XValue|YValue) ) fgState.Position.Use = GL_TRUE; } - - fgInitGL2(); } /* @@ -671,19 +665,19 @@ void FGAPIENTRY glutInitContextProfile( int profile ) /* * Sets the user error handler (note the use of va_list for the args to the fmt) */ -void FGAPIENTRY glutInitErrorFunc( void (* vfgError) ( const char *fmt, va_list ap ) ) +void FGAPIENTRY glutInitErrorFunc( FGError callback ) { /* This allows user programs to handle freeglut errors */ - fgState.ErrorFunc = vfgError; + fgState.ErrorFunc = callback; } /* * Sets the user warning handler (note the use of va_list for the args to the fmt) */ -void FGAPIENTRY glutInitWarningFunc( void (* vfgWarning) ( const char *fmt, va_list ap ) ) +void FGAPIENTRY glutInitWarningFunc( FGWarning callback ) { /* This allows user programs to handle freeglut warnings */ - fgState.WarningFunc = vfgWarning; + fgState.WarningFunc = callback; } /*** END OF FILE ***/