mirror of
				https://github.com/glfw/glfw.git
				synced 2025-11-04 14:16:42 +00:00 
			
		
		
		
	Formatting
This commit is contained in:
		
							parent
							
								
									aaccfd8201
								
							
						
					
					
						commit
						9a781cef53
					
				@ -82,7 +82,6 @@ typedef struct _GLFWwindowNS
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWwindowNS;
 | 
					} _GLFWwindowNS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Cocoa-specific global data
 | 
					// Cocoa-specific global data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWlibraryNS
 | 
					typedef struct _GLFWlibraryNS
 | 
				
			||||||
@ -115,7 +114,6 @@ typedef struct _GLFWlibraryNS
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWlibraryNS;
 | 
					} _GLFWlibraryNS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Cocoa-specific per-monitor data
 | 
					// Cocoa-specific per-monitor data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWmonitorNS
 | 
					typedef struct _GLFWmonitorNS
 | 
				
			||||||
@ -126,7 +124,6 @@ typedef struct _GLFWmonitorNS
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWmonitorNS;
 | 
					} _GLFWmonitorNS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Cocoa-specific per-cursor data
 | 
					// Cocoa-specific per-cursor data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWcursorNS
 | 
					typedef struct _GLFWcursorNS
 | 
				
			||||||
@ -135,7 +132,6 @@ typedef struct _GLFWcursorNS
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWcursorNS;
 | 
					} _GLFWcursorNS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Cocoa-specific global timer data
 | 
					// Cocoa-specific global timer data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWtimeNS
 | 
					typedef struct _GLFWtimeNS
 | 
				
			||||||
 | 
				
			|||||||
@ -165,7 +165,6 @@ typedef struct _GLFWcontextEGL
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWcontextEGL;
 | 
					} _GLFWcontextEGL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// EGL-specific global data
 | 
					// EGL-specific global data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWlibraryEGL
 | 
					typedef struct _GLFWlibraryEGL
 | 
				
			||||||
 | 
				
			|||||||
@ -121,7 +121,6 @@ typedef struct _GLFWcontextGLX
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWcontextGLX;
 | 
					} _GLFWcontextGLX;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// GLX-specific global data
 | 
					// GLX-specific global data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWlibraryGLX
 | 
					typedef struct _GLFWlibraryGLX
 | 
				
			||||||
 | 
				
			|||||||
@ -256,7 +256,6 @@ struct _GLFWwndconfig
 | 
				
			|||||||
    GLFWbool      maximized;
 | 
					    GLFWbool      maximized;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*! @brief Context configuration.
 | 
					/*! @brief Context configuration.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  Parameters relating to the creation of the context but not directly related
 | 
					 *  Parameters relating to the creation of the context but not directly related
 | 
				
			||||||
@ -278,7 +277,6 @@ struct _GLFWctxconfig
 | 
				
			|||||||
    _GLFWwindow*  share;
 | 
					    _GLFWwindow*  share;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*! @brief Framebuffer configuration.
 | 
					/*! @brief Framebuffer configuration.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *  This describes buffers and their sizes.  It also contains
 | 
					 *  This describes buffers and their sizes.  It also contains
 | 
				
			||||||
@ -307,7 +305,6 @@ struct _GLFWfbconfig
 | 
				
			|||||||
    uintptr_t   handle;
 | 
					    uintptr_t   handle;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*! @brief Context structure.
 | 
					/*! @brief Context structure.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
struct _GLFWcontext
 | 
					struct _GLFWcontext
 | 
				
			||||||
@ -337,7 +334,6 @@ struct _GLFWcontext
 | 
				
			|||||||
    _GLFW_EGL_CONTEXT_STATE;
 | 
					    _GLFW_EGL_CONTEXT_STATE;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*! @brief Window and context structure.
 | 
					/*! @brief Window and context structure.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
struct _GLFWwindow
 | 
					struct _GLFWwindow
 | 
				
			||||||
@ -391,7 +387,6 @@ struct _GLFWwindow
 | 
				
			|||||||
    _GLFW_PLATFORM_WINDOW_STATE;
 | 
					    _GLFW_PLATFORM_WINDOW_STATE;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*! @brief Monitor structure.
 | 
					/*! @brief Monitor structure.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
struct _GLFWmonitor
 | 
					struct _GLFWmonitor
 | 
				
			||||||
@ -415,7 +410,6 @@ struct _GLFWmonitor
 | 
				
			|||||||
    _GLFW_PLATFORM_MONITOR_STATE;
 | 
					    _GLFW_PLATFORM_MONITOR_STATE;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*! @brief Cursor structure
 | 
					/*! @brief Cursor structure
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
struct _GLFWcursor
 | 
					struct _GLFWcursor
 | 
				
			||||||
 | 
				
			|||||||
@ -46,7 +46,6 @@ typedef struct _GLFWjoystickLinux
 | 
				
			|||||||
    char*           path;
 | 
					    char*           path;
 | 
				
			||||||
} _GLFWjoystickLinux;
 | 
					} _GLFWjoystickLinux;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Linux-specific joystick API data
 | 
					// Linux-specific joystick API data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWjoylistLinux
 | 
					typedef struct _GLFWjoylistLinux
 | 
				
			||||||
 | 
				
			|||||||
@ -87,7 +87,6 @@ typedef struct _GLFWwindowMir
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWwindowMir;
 | 
					} _GLFWwindowMir;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Mir-specific per-monitor data
 | 
					// Mir-specific per-monitor data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWmonitorMir
 | 
					typedef struct _GLFWmonitorMir
 | 
				
			||||||
@ -99,7 +98,6 @@ typedef struct _GLFWmonitorMir
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWmonitorMir;
 | 
					} _GLFWmonitorMir;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Mir-specific global data
 | 
					// Mir-specific global data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWlibraryMir
 | 
					typedef struct _GLFWlibraryMir
 | 
				
			||||||
@ -116,7 +114,6 @@ typedef struct _GLFWlibraryMir
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWlibraryMir;
 | 
					} _GLFWlibraryMir;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Mir-specific per-cursor data
 | 
					// Mir-specific per-cursor data
 | 
				
			||||||
// TODO: Only system cursors are implemented in Mir atm. Need to wait for support.
 | 
					// TODO: Only system cursors are implemented in Mir atm. Need to wait for support.
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
 | 
				
			|||||||
@ -40,7 +40,6 @@ typedef struct _GLFWcontextNSGL
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWcontextNSGL;
 | 
					} _GLFWcontextNSGL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// NSGL-specific global data
 | 
					// NSGL-specific global data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWlibraryNSGL
 | 
					typedef struct _GLFWlibraryNSGL
 | 
				
			||||||
 | 
				
			|||||||
@ -110,7 +110,6 @@ typedef struct _GLFWcontextWGL
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWcontextWGL;
 | 
					} _GLFWcontextWGL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// WGL-specific global data
 | 
					// WGL-specific global data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWlibraryWGL
 | 
					typedef struct _GLFWlibraryWGL
 | 
				
			||||||
 | 
				
			|||||||
@ -241,7 +241,6 @@ typedef struct _GLFWwindowWin32
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWwindowWin32;
 | 
					} _GLFWwindowWin32;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Win32-specific global data
 | 
					// Win32-specific global data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWlibraryWin32
 | 
					typedef struct _GLFWlibraryWin32
 | 
				
			||||||
@ -293,7 +292,6 @@ typedef struct _GLFWlibraryWin32
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWlibraryWin32;
 | 
					} _GLFWlibraryWin32;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Win32-specific per-monitor data
 | 
					// Win32-specific per-monitor data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWmonitorWin32
 | 
					typedef struct _GLFWmonitorWin32
 | 
				
			||||||
@ -308,7 +306,6 @@ typedef struct _GLFWmonitorWin32
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWmonitorWin32;
 | 
					} _GLFWmonitorWin32;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Win32-specific per-cursor data
 | 
					// Win32-specific per-cursor data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWcursorWin32
 | 
					typedef struct _GLFWcursorWin32
 | 
				
			||||||
@ -317,7 +314,6 @@ typedef struct _GLFWcursorWin32
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWcursorWin32;
 | 
					} _GLFWcursorWin32;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Win32-specific global timer data
 | 
					// Win32-specific global timer data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWtimeWin32
 | 
					typedef struct _GLFWtimeWin32
 | 
				
			||||||
@ -327,7 +323,6 @@ typedef struct _GLFWtimeWin32
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWtimeWin32;
 | 
					} _GLFWtimeWin32;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Win32-specific global TLS data
 | 
					// Win32-specific global TLS data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWtlsWin32
 | 
					typedef struct _GLFWtlsWin32
 | 
				
			||||||
 | 
				
			|||||||
@ -74,7 +74,6 @@ typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR
 | 
				
			|||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWvidmodeWayland _GLFWvidmodeWayland;
 | 
					typedef struct _GLFWvidmodeWayland _GLFWvidmodeWayland;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Wayland-specific per-window data
 | 
					// Wayland-specific per-window data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWwindowWayland
 | 
					typedef struct _GLFWwindowWayland
 | 
				
			||||||
@ -105,7 +104,6 @@ typedef struct _GLFWwindowWayland
 | 
				
			|||||||
    } pointerLock;
 | 
					    } pointerLock;
 | 
				
			||||||
} _GLFWwindowWayland;
 | 
					} _GLFWwindowWayland;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Wayland-specific global data
 | 
					// Wayland-specific global data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWlibraryWayland
 | 
					typedef struct _GLFWlibraryWayland
 | 
				
			||||||
@ -149,7 +147,6 @@ typedef struct _GLFWlibraryWayland
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWlibraryWayland;
 | 
					} _GLFWlibraryWayland;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Wayland-specific per-monitor data
 | 
					// Wayland-specific per-monitor data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWmonitorWayland
 | 
					typedef struct _GLFWmonitorWayland
 | 
				
			||||||
@ -166,7 +163,6 @@ typedef struct _GLFWmonitorWayland
 | 
				
			|||||||
    int                         scale;
 | 
					    int                         scale;
 | 
				
			||||||
} _GLFWmonitorWayland;
 | 
					} _GLFWmonitorWayland;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Wayland-specific per-cursor data
 | 
					// Wayland-specific per-cursor data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWcursorWayland
 | 
					typedef struct _GLFWcursorWayland
 | 
				
			||||||
 | 
				
			|||||||
@ -130,7 +130,6 @@ typedef struct _GLFWwindowX11
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWwindowX11;
 | 
					} _GLFWwindowX11;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// X11-specific global data
 | 
					// X11-specific global data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWlibraryX11
 | 
					typedef struct _GLFWlibraryX11
 | 
				
			||||||
@ -259,7 +258,6 @@ typedef struct _GLFWlibraryX11
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWlibraryX11;
 | 
					} _GLFWlibraryX11;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// X11-specific per-monitor data
 | 
					// X11-specific per-monitor data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWmonitorX11
 | 
					typedef struct _GLFWmonitorX11
 | 
				
			||||||
@ -274,7 +272,6 @@ typedef struct _GLFWmonitorX11
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} _GLFWmonitorX11;
 | 
					} _GLFWmonitorX11;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// X11-specific per-cursor data
 | 
					// X11-specific per-cursor data
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
typedef struct _GLFWcursorX11
 | 
					typedef struct _GLFWcursorX11
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user