projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed the overlay (freeglut_state.c:662) to return FALSE, as it's not imp
[freeglut]
/
freeglut-1.3
/
freeglut_callbacks.c
diff --git
a/freeglut-1.3/freeglut_callbacks.c
b/freeglut-1.3/freeglut_callbacks.c
index
129a4cd
..
b741a0c
100644
(file)
--- a/
freeglut-1.3/freeglut_callbacks.c
+++ b/
freeglut-1.3/freeglut_callbacks.c
@@
-32,7
+32,7
@@
#define G_LOG_DOMAIN "freeglut-callbacks"
#include "../include/GL/freeglut.h"
#define G_LOG_DOMAIN "freeglut-callbacks"
#include "../include/GL/freeglut.h"
-#include "../include/GL/freeglut_internal.h"
+#include "freeglut_internal.h"
/* -- INTERFACE FUNCTIONS -------------------------------------------------- */
/* -- INTERFACE FUNCTIONS -------------------------------------------------- */
@@
-231,6
+231,13
@@
void FGAPIENTRY glutWMCloseFunc( void (* callback)( void ) )
glutCloseFunc( callback );
}
glutCloseFunc( callback );
}
+/* A. Donev: Destruction callback for menus */
+void FGAPIENTRY glutMenuDestroyFunc( void (* callback)( void ) )
+{
+ if( fgStructure.Menu == NULL ) return;
+ fgStructure.Menu->Destroy = callback;
+}
+
/*
* Deprecated version of glutMenuStatusFunc callback setting method
*/
/*
* Deprecated version of glutMenuStatusFunc callback setting method
*/