<ClCompile Include="..\..\src\Common\freeglut_teapot.c" />\r
<ClCompile Include="..\..\src\Common\freeglut_videoresize.c" />\r
<ClCompile Include="..\..\src\Common\freeglut_window.c" />\r
+ <ClCompile Include="..\..\src\Common\xparsegeometry_repl.c" />\r
<ClCompile Include="..\..\src\mswin\freeglut_cursor_mswin.c" />\r
<ClCompile Include="..\..\src\mswin\freeglut_display_mswin.c" />\r
<ClCompile Include="..\..\src\mswin\freeglut_ext_mswin.c" />\r
<ClInclude Include="..\..\include\GL\freeglut_std.h" />\r
<ClInclude Include="..\..\src\Common\freeglut_teapot_data.h" />\r
<ClInclude Include="..\..\include\GL\glut.h" />\r
+ <ClInclude Include="..\..\src\Common\xparsegeometry_repl.h" />\r
<ClInclude Include="..\..\src\mswin\freeglut_internal_mswin.h" />\r
</ItemGroup>\r
<ItemGroup>\r
<ClCompile Include="..\..\src\mswin\freeglut_window_mswin.c">\r
<Filter>Source Files\mswin</Filter>\r
</ClCompile>\r
+ <ClCompile Include="..\..\src\Common\xparsegeometry_repl.c">\r
+ <Filter>Source Files</Filter>\r
+ </ClCompile>\r
</ItemGroup>\r
<ItemGroup>\r
<None Include="..\..\src\Common\freeglutdll.def">\r
<ClInclude Include="..\..\src\mswin\freeglut_internal_mswin.h">\r
<Filter>Header Files</Filter>\r
</ClInclude>\r
+ <ClInclude Include="..\..\src\Common\xparsegeometry_repl.h">\r
+ <Filter>Header Files</Filter>\r
+ </ClInclude>\r
</ItemGroup>\r
<ItemGroup>\r
<ResourceCompile Include="..\..\freeglut.rc">\r
/* -- INTERFACE FUNCTIONS -------------------------------------------------- */
-
#if !TARGET_HOST_POSIX_X11
-#include "Common/xparsegeometry_repl.h"
+# include "../Common/xparsegeometry_repl.h"
#endif
/*
configuration is conformant or not */
break ;
- case 6 : /* "depth": Number of bits of precsion in the depth buffer */
+ case 6 : /* "depth": Number of bits of precision in the depth buffer */
glut_state_flag |= GLUT_DEPTH ; /* Somebody fix this for me! */
break ;
break ;
case 35 : /* "borderless": windows should not have borders */
-#if TARGET_HOST_POSIX_X11
-#endif
+ glut_state_flag |= GLUT_BORDERLESS;
break ;
case 36 : /* "aux": some number of aux buffers */
void FGAPIENTRY glutInitContextVersion( int majorVersion, int minorVersion )
{
- /* We will make use of these valuse when creating a new OpenGL context... */
+ /* We will make use of these value when creating a new OpenGL context... */
fgState.MajorVersion = majorVersion;
fgState.MinorVersion = minorVersion;
}
fgState.WarningFunc = vfgWarning;
}
-/*** END OF FILE ***/
+/*** END OF FILE ***/
\ No newline at end of file
#define ATTRIB(a) attributes[where++]=(a)
#define ATTRIB_VAL(a,v) {ATTRIB(a); ATTRIB(v);}
-extern int fghIsLegacyContextVersionRequested( void );
-extern int fghMapBit( int mask, int from, int to );
-extern int fghIsLegacyContextRequested( void );
-extern void fghContextCreationError( void );
-extern int fghNumberOfAuxBuffersRequested( void );
+int fghIsLegacyContextVersionRequested( void );
+int fghMapBit( int mask, int from, int to );
+int fghIsLegacyContextRequested( void );
+void fghContextCreationError( void );
+int fghNumberOfAuxBuffersRequested( void );
#endif /* FREEGLUT_INTERNAL_H */
* glutCreateSubWindow() -- Check when default position and size is {-1,-1}
* glutDestroyWindow() -- check the Win32 version
* glutSetWindow() -- check the Win32 version
- * glutGetWindow() -- OK
* glutSetWindowTitle() -- check the Win32 version
* glutSetIconTitle() -- check the Win32 version
* glutShowWindow() -- check the Win32 version
* glutHideWindow() -- check the Win32 version
* glutIconifyWindow() -- check the Win32 version
- * glutReshapeWindow() -- check the Win32 version
- * glutPositionWindow() -- check the Win32 version
* glutPushWindow() -- check the Win32 version
* glutPopWindow() -- check the Win32 version
*/
}
/*
- * This function selects the current window
+ * This function selects the specified window as the current window
*/
void FGAPIENTRY glutSetWindow( int ID )
{
*/
-#include "Common/xparsegeometry_repl.h"
+#include "../Common/xparsegeometry_repl.h"
/*
- * XParseGeometry parses strings of the form
+ * XParseGeometry parses strings of the form
* "=<width>x<height>{+-}<xoffset>{+-}<yoffset>", where
* width, height, xoffset, and yoffset are unsigned integers.
* Example: "=80x24+300-49"
#define XNegative 0x0010
#define YNegative 0x0020
-extern int XParseGeometry (
- const char *string,
- int *x,
- int *y,
- unsigned int *width, /* RETURN */
- unsigned int *height); /* RETURN */
+extern int XParseGeometry (const char *string, /* INPUT */
+ int *x, int *y, /* RETURN */
+ unsigned int *width, unsigned int *height); /* RETURN */
+
#endif
fgState.Initialised = GL_TRUE;
- /* Avoid registering atexit callback on Win32 as it results in an access
- * violation due to calling into a module which has been unloaded.
- * Any cleanup isn't needed on Windows anyway, the OS takes care of it.c
+ /* Avoid registering atexit callback on Win32 as it can result in an
+ * access violation due to calling into a module which has been
+ * unloaded.
+ * Any cleanup isn't needed on Windows anyway, the OS takes care of it.
* see: http://blogs.msdn.com/b/oldnewthing/archive/2012/01/05/10253268.aspx
*/
/* atexit(fgDeinitialize); */
typedef struct tagSFG_PlatformDisplay SFG_PlatformDisplay;
struct tagSFG_PlatformDisplay
{
- HINSTANCE Instance; /* The application's instance */
- DEVMODE DisplayMode; /* Desktop's display settings */
+ HINSTANCE Instance; /* The application's instance */
+ DEVMODE DisplayMode; /* Desktop's display settings */
char *DisplayName; /* Display name for multi display support*/
};
typedef struct tagSFG_PlatformContext SFG_PlatformContext;
struct tagSFG_PlatformContext
{
- HDC Device; /* The window's device context */
+ HDC Device; /* The window's device context */
};
typedef struct tagSFG_PlatformWindowState SFG_PlatformWindowState;
struct tagSFG_PlatformWindowState
{
- RECT OldRect; /* window rect - stored before the window is made fullscreen */
+ RECT OldRect; /* window rect - stored before the window is made fullscreen */
DWORD OldStyle; /* window style - stored before the window is made fullscreen */
};
-/* For "freeglut_init.c", some definitions of symbols and a prototype to emulate the X11 functionality */
-#define NoValue 0x0000
-#define XValue 0x0001
-#define YValue 0x0002
-#define WidthValue 0x0004
-#define HeightValue 0x0008
-#define AllValues 0x000F
-#define XNegative 0x0010
-#define YNegative 0x0020
-
-extern int XParseGeometry (
- const char *string,
- int *x,
- int *y,
- unsigned int *width, /* RETURN */
- unsigned int *height); /* RETURN */
-
-
-
/* Joystick-Specific Definitions */
#if !defined(_WIN32_WCE)
# define _JS_MAX_AXES 8
/*
* Win32 is assumed a keyboard, and this cannot be queried,
* except for WindowsCE.
- *
- * X11 has a core keyboard by definition, although it can
- * be present as a virtual/dummy keyboard. For now, there
- * is no reliable way to tell if a real keyboard is present.
*/
#if defined(_WIN32_CE)
return ( GetKeyboardStatus() & KBDI_KEYBOARD_PRESENT ) ? 1 : 0;