projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moving X11-specific code from "freeglut_display.c" into its own file
[freeglut]
/
src
/
Common
/
freeglut_display.c
diff --git
a/src/Common/freeglut_display.c
b/src/Common/freeglut_display.c
index
fadd3b3
..
8264949
100644
(file)
--- a/
src/Common/freeglut_display.c
+++ b/
src/Common/freeglut_display.c
@@
-28,6
+28,11
@@
#include <GL/freeglut.h>
\r
#include "freeglut_internal.h"
\r
\r
#include <GL/freeglut.h>
\r
#include "freeglut_internal.h"
\r
\r
+
\r
+/* Function prototypes */
\r
+extern void fgPlatformGlutSwapBuffers( SFG_PlatformDisplay *pDisplayPtr, SFG_Window* CurrentWindow );
\r
+
\r
+
\r
/* -- INTERFACE FUNCTIONS -------------------------------------------------- */
\r
\r
/*
\r
/* -- INTERFACE FUNCTIONS -------------------------------------------------- */
\r
\r
/*
\r
@@
-61,11
+66,7
@@
void FGAPIENTRY glutSwapBuffers( void )
if( ! fgStructure.CurrentWindow->Window.DoubleBuffered )
\r
return;
\r
\r
if( ! fgStructure.CurrentWindow->Window.DoubleBuffered )
\r
return;
\r
\r
-#if TARGET_HOST_POSIX_X11
\r
- glXSwapBuffers( fgDisplay.Display, fgStructure.CurrentWindow->Window.Handle );
\r
-#elif TARGET_HOST_MS_WINDOWS
\r
- SwapBuffers( fgStructure.CurrentWindow->Window.Device );
\r
-#endif
\r
+ fgPlatformGlutSwapBuffers( &fgDisplay.pDisplay, fgStructure.CurrentWindow );
\r
\r
/* GLUT_FPS env var support */
\r
if( fgState.FPSInterval )
\r
\r
/* GLUT_FPS env var support */
\r
if( fgState.FPSInterval )
\r