projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moving the platform-specific FBConfig and device context variables into platform...
[freeglut]
/
src
/
Common
/
freeglut_internal.h
diff --git
a/src/Common/freeglut_internal.h
b/src/Common/freeglut_internal.h
index
815d13e
..
f4fc756
100644
(file)
--- a/
src/Common/freeglut_internal.h
+++ b/
src/Common/freeglut_internal.h
@@
-255,6
+255,12
@@
struct tagSFG_PlatformDisplay
*/
\r
typedef Window SFG_WindowHandleType ;
\r
typedef GLXContext SFG_WindowContextType ;
\r
*/
\r
typedef Window SFG_WindowHandleType ;
\r
typedef GLXContext SFG_WindowContextType ;
\r
+typedef struct tagSFG_PlatformContext SFG_PlatformContext;
\r
+struct tagSFG_PlatformContext
\r
+{
\r
+ GLXFBConfig* FBConfig; /* The window's FBConfig */
\r
+};
\r
+
\r
\r
\r
#endif
\r
\r
\r
#endif
\r
@@
-438,11
+444,7
@@
struct tagSFG_Context
SFG_WindowHandleType Handle; /* The window's handle */
\r
SFG_WindowContextType Context; /* The window's OpenGL/WGL context */
\r
\r
SFG_WindowHandleType Handle; /* The window's handle */
\r
SFG_WindowContextType Context; /* The window's OpenGL/WGL context */
\r
\r
-#if TARGET_HOST_POSIX_X11
\r
- GLXFBConfig* FBConfig; /* The window's FBConfig */
\r
-#elif TARGET_HOST_MS_WINDOWS
\r
- HDC Device; /* The window's device context */
\r
-#endif
\r
+ SFG_PlatformContext pContext; /* The window's FBConfig (X11) or device context (Windows) */
\r
\r
int DoubleBuffered; /* Treat the window as double-buffered */
\r
};
\r
\r
int DoubleBuffered; /* Treat the window as double-buffered */
\r
};
\r