FGAPI void FGAPIENTRY glutSetVertexAttribNormal(GLint attrib);
/* Mobile platforms lifecycle */
-FGAPI void FGAPIENTRY glutFixMyNameInitContextFunc(void (* callback)());
-FGAPI void FGAPIENTRY glutFixMyNamePauseFunc(void (* callback)());
-FGAPI void FGAPIENTRY glutFixMyNameResumeFunc(void (* callback)());
+FGAPI void FGAPIENTRY glutInitContextFunc(void (* callback)());
+FGAPI void FGAPIENTRY glutPauseFunc(void (* callback)());
+FGAPI void FGAPIENTRY glutResumeFunc(void (* callback)());
/*
* GLUT API macro definitions -- the display mode definitions
glutSpecialFunc(special);
glutIdleFunc(idle);
glutMouseFunc(onMouseClick);
- glutFixMyNameInitContextFunc(init_context);
+ glutInitContextFunc(init_context);
glutSetOption ( GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION ) ;
/* The application is being hidden, but may be restored */
LOGI("handle_cmd: APP_CMD_TERM_WINDOW");
fghPlatformCloseWindowEGL(window);
- window->State.NeedToFixMyNameInitContext = GL_TRUE;
+ window->State.NeedToInitContext = GL_TRUE;
fgDisplay.pDisplay.single_native_window = NULL;
break;
case APP_CMD_STOP:
fgPlatformOpenWindow(window, "", GL_FALSE, 0, 0, GL_FALSE, 0, 0, GL_FALSE, GL_FALSE);
/* TODO: INVOKE_WCB(*window, Pause?); */
/* TODO: INVOKE_WCB(*window, Resume?); */
- if (!FETCH_WCB(*window, FixMyNameInitContext)
- fgWarning("Resuming application, but no callback to reload context resources (glutFixMyNameInitContextFunc)");
+ if (!FETCH_WCB(*window, InitContext))
+ fgWarning("Resuming application, but no callback to reload context resources (glutInitContextFunc)");
}
}
}
/*
* Sets the context reload callback for the current window
*/
-void FGAPIENTRY glutFixMyNameInitContextFunc( void (* callback)() )
+void FGAPIENTRY glutInitContextFunc( void (* callback)() )
{
- FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutFixMyNameInitContextFunc" );
- SET_CALLBACK( FixMyNameInitContext );
+ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutInitContextFunc" );
+ SET_CALLBACK( InitContext );
}
/*
* Sets the pause callback for the current window
*/
-void FGAPIENTRY glutFixMyNamePauseFunc( void (* callback)() )
+void FGAPIENTRY glutPauseFunc( void (* callback)() )
{
- FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutFixMyNamePauseFunc" );
- SET_CALLBACK( FixMyNamePause );
+ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutPauseFunc" );
+ SET_CALLBACK( Pause );
}
/*
* Sets the resume callback for the current window
*/
-void FGAPIENTRY glutFixMyNameResumeFunc( void (* callback)() )
+void FGAPIENTRY glutResumeFunc( void (* callback)() )
{
- FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutFixMyNameResumeFunc" );
- SET_CALLBACK( FixMyNameResume );
+ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutResumeFunc" );
+ SET_CALLBACK( Resume );
}
/*** END OF FILE ***/
CHECK_NAME(glutInitContextProfile);
CHECK_NAME(glutInitErrorFunc);
CHECK_NAME(glutInitWarningFunc);
- CHECK_NAME(glutFixMyNameInitContextFunc)
- CHECK_NAME(glutFixMyNamePauseFunc)
- CHECK_NAME(glutFixMyNameResumeFunc)
+ CHECK_NAME(glutInitContextFunc)
+ CHECK_NAME(glutPauseFunc)
+ CHECK_NAME(glutResumeFunc)
#undef CHECK_NAME
return NULL;
typedef void (* FGCBMultiMotion )( int, int, int );
typedef void (* FGCBMultiPassive )( int, int, int );
-typedef void (* FGCBFixMyNameInitContext)();
-typedef void (* FGCBFixMyNamePause)();
-typedef void (* FGCBFixMyNameResume)();
+typedef void (* FGCBInitContext)();
+typedef void (* FGCBPause)();
+typedef void (* FGCBResume)();
/* The global callbacks type definitions */
typedef void (* FGCBIdle )( void );
GLboolean IsFullscreen; /* is the window fullscreen? */
- GLboolean NeedToFixMyNameInitContext; /* are OpenGL context/resources loaded? */
+ GLboolean NeedToInitContext; /* are OpenGL context/resources loaded? */
};
CB_MultiPassive,
/* Mobile platforms LifeCycle */
- CB_FixMyNameInitContext,
- CB_FixMyNamePause,
- CB_FixMyNameResume,
+ CB_InitContext,
+ CB_Pause,
+ CB_Resume,
/* Presently ignored */
CB_Select,
freeglut_return_if_fail( window );
- if( window->State.NeedToFixMyNameInitContext ) {
- INVOKE_WCB( *window, FixMyNameInitContext, ());
- window->State.NeedToFixMyNameInitContext = GL_FALSE;
+ if( window->State.NeedToInitContext ) {
+ INVOKE_WCB( *window, InitContext, ());
+ window->State.NeedToInitContext = GL_FALSE;
}
freeglut_return_if_fail( FETCH_WCB ( *window, Display ) );
fgInitGL2();
- window->State.NeedToFixMyNameInitContext = GL_TRUE;
+ window->State.NeedToInitContext = GL_TRUE;
}
/*
glutMultiEntryFunc
glutMultiMotionFunc
glutMultiPassiveFunc
+ glutInitContextFunc
+ glutPauseFunc
+ glutResumeFunc