summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9486b7d)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1015
7f0cb862-5218-0410-a997-
914c9d46530a
\r
SFG_Proc fghGetProcAddress( const char *procName );\r
\r
\r
SFG_Proc fghGetProcAddress( const char *procName );\r
\r
-#if TARGET_HOST_MS_WINDOWS\r
-extern void (__cdecl *__glutExitFunc)( int return_value );\r
-#endif\r
-\r
#endif /* FREEGLUT_INTERNAL_H */\r
\r
/*** END OF FILE ***/\r
#endif /* FREEGLUT_INTERNAL_H */\r
\r
/*** END OF FILE ***/\r
GL_FALSE, GL_FALSE )->ID;\r
}\r
\r
GL_FALSE, GL_FALSE )->ID;\r
}\r
\r
-#if TARGET_HOST_MS_WINDOWS\r
-int FGAPIENTRY __glutCreateWindowWithExit( const char *title, void (__cdecl *exit_function)(int) )\r
-{\r
- __glutExitFunc = exit_function;\r
- return glutCreateWindow( title );\r
-}\r
-#endif\r
-\r
/*\r
* This function creates a sub window.\r
*/\r
/*\r
* This function creates a sub window.\r
*/\r
+/* Function to be called on exit */\r
+extern void (__cdecl *__glutExitFunc)( int return_value );\r
\r
\r
#endif /* FREEGLUT_INTERNAL_MSWIN_H */
\ No newline at end of file
\r
\r
#endif /* FREEGLUT_INTERNAL_MSWIN_H */
\ No newline at end of file
+/* -- PLATFORM-SPECIFIC INTERFACE FUNCTION -------------------------------------------------- */\r
+\r
+\r
+int FGAPIENTRY __glutCreateWindowWithExit( const char *title, void (__cdecl *exit_function)(int) )\r
+{\r
+ __glutExitFunc = exit_function;\r
+ return glutCreateWindow( title );\r
+}\r
+\r