projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed superfluous #includes.
[freeglut]
/
src
/
freeglut_internal.h
diff --git
a/src/freeglut_internal.h
b/src/freeglut_internal.h
index
f6c31ed
..
90d1a37
100644
(file)
--- a/
src/freeglut_internal.h
+++ b/
src/freeglut_internal.h
@@
-105,8
+105,6
@@
#endif
/* These files should be available on every platform. */
#endif
/* These files should be available on every platform. */
-#include <GL/gl.h>
-#include <GL/glu.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
@@
-302,6
+300,9
@@
struct tagSFG_State
char *ProgramName; /* Name of the invoking program */
GLboolean JoysticksInitialised; /* Only initialize if application calls for them */
GLboolean InputDevsInitialised; /* Only initialize if application calls for them */
char *ProgramName; /* Name of the invoking program */
GLboolean JoysticksInitialised; /* Only initialize if application calls for them */
GLboolean InputDevsInitialised; /* Only initialize if application calls for them */
+
+ int AuxiliaryBufferNumber; /* Number of auxiliary buffers */
+ int SampleNumber; /* Number of samples per pixel */
};
/* The structure used by display initialization in freeglut_init.c */
};
/* The structure used by display initialization in freeglut_init.c */
@@
-314,6
+315,8
@@
struct tagSFG_Display
Window RootWindow; /* The screen's root window. */
int Connection; /* The display's connection number */
Atom DeleteWindow; /* The window deletion atom */
Window RootWindow; /* The screen's root window. */
int Connection; /* The display's connection number */
Atom DeleteWindow; /* The window deletion atom */
+ Atom State; /* The state atom */
+ Atom StateFullScreen; /* The full screen atom */
#ifdef X_XF86VidModeGetModeLine
/*
#ifdef X_XF86VidModeGetModeLine
/*
@@
-380,7
+383,7
@@
struct tagSFG_Context
SFG_WindowContextType Context; /* The window's OpenGL/WGL context */
#if TARGET_HOST_POSIX_X11
SFG_WindowContextType Context; /* The window's OpenGL/WGL context */
#if TARGET_HOST_POSIX_X11
- XVisualInfo* VisualInfo; /* The window's visual information */
+ GLXFBConfig* FBConfig; /* The window's FBConfig */
#elif TARGET_HOST_MS_WINDOWS
HDC Device; /* The window's device context */
#endif
#elif TARGET_HOST_MS_WINDOWS
HDC Device; /* The window's device context */
#endif
@@
-556,10
+559,6
@@
enum
typedef struct tagSFG_MenuContext SFG_MenuContext;
struct tagSFG_MenuContext
{
typedef struct tagSFG_MenuContext SFG_MenuContext;
struct tagSFG_MenuContext
{
-#if TARGET_HOST_POSIX_X11
- XVisualInfo* MVisualInfo; /* The window's visual information */
-#endif
-
SFG_WindowContextType MContext; /* The menu window's WGL context */
};
SFG_WindowContextType MContext; /* The menu window's WGL context */
};
@@
-786,7
+785,7
@@
void fgDestroyStructure( void );
/* A helper function to check if a display mode is possible to use */
#if TARGET_HOST_POSIX_X11
/* A helper function to check if a display mode is possible to use */
#if TARGET_HOST_POSIX_X11
-XVisualInfo* fgChooseVisual( void );
+GLXFBConfig* fgChooseFBConfig( void );
#endif
/* The window procedure for Win32 events handling */
#endif
/* The window procedure for Win32 events handling */
@@
-903,6
+902,13
@@
void fgListInsert(SFG_List *list, SFG_Node *next, SFG_Node *node);
void fgError( const char *fmt, ... );
void fgWarning( const char *fmt, ... );
void fgError( const char *fmt, ... );
void fgWarning( const char *fmt, ... );
+/*
+ * Check if "hint" is present in "property" for "window". See freeglut_init.c
+ */
+#if TARGET_HOST_POSIX_X11
+int fgHintPresent(Window window, Atom property, Atom hint);
+#endif
+
#endif /* FREEGLUT_INTERNAL_H */
/*** END OF FILE ***/
#endif /* FREEGLUT_INTERNAL_H */
/*** END OF FILE ***/