From 0641a6ec9a287a3a201818ca58b50fcced2d7833 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 16 Sep 2010 03:25:36 +0200 Subject: [PATCH] Formatting. --- src/cocoa/cocoa_enable.m | 7 ++++--- src/cocoa/cocoa_fullscreen.m | 6 +++--- src/cocoa/cocoa_glext.m | 7 ++++--- src/cocoa/cocoa_init.m | 6 +++--- src/cocoa/cocoa_joystick.m | 7 ++++--- src/cocoa/cocoa_time.m | 11 ++++++----- src/cocoa/cocoa_window.m | 7 ++++--- 7 files changed, 28 insertions(+), 23 deletions(-) diff --git a/src/cocoa/cocoa_enable.m b/src/cocoa/cocoa_enable.m index 1dfd7e5e..2fdeaa93 100644 --- a/src/cocoa/cocoa_enable.m +++ b/src/cocoa/cocoa_enable.m @@ -29,9 +29,10 @@ #include "internal.h" -//************************************************************************ -//**** Platform implementation functions **** -//************************************************************************ + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// //======================================================================== // Enable and disable system keys diff --git a/src/cocoa/cocoa_fullscreen.m b/src/cocoa/cocoa_fullscreen.m index 3ef8071a..524e968f 100644 --- a/src/cocoa/cocoa_fullscreen.m +++ b/src/cocoa/cocoa_fullscreen.m @@ -66,9 +66,9 @@ static GLFWvidmode vidmodeFromCGDisplayMode(NSDictionary* mode) } -//************************************************************************ -//**** Platform implementation functions **** -//************************************************************************ +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// //======================================================================== // Get a list of available video modes diff --git a/src/cocoa/cocoa_glext.m b/src/cocoa/cocoa_glext.m index ca11272d..f96f3e66 100644 --- a/src/cocoa/cocoa_glext.m +++ b/src/cocoa/cocoa_glext.m @@ -29,9 +29,10 @@ #include "internal.h" -//************************************************************************ -//**** Platform implementation functions **** -//************************************************************************ + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// //======================================================================== // Check if an OpenGL extension is available at runtime diff --git a/src/cocoa/cocoa_init.m b/src/cocoa/cocoa_init.m index 4ea3ec2f..dff9d498 100644 --- a/src/cocoa/cocoa_init.m +++ b/src/cocoa/cocoa_init.m @@ -188,9 +188,9 @@ static void glfw_atexit(void) } -//************************************************************************ -//**** Platform implementation functions **** -//************************************************************************ +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// //======================================================================== // Initialize the GLFW library diff --git a/src/cocoa/cocoa_joystick.m b/src/cocoa/cocoa_joystick.m index d266768d..63950988 100644 --- a/src/cocoa/cocoa_joystick.m +++ b/src/cocoa/cocoa_joystick.m @@ -29,9 +29,10 @@ #include "internal.h" -//************************************************************************ -//**** Platform implementation functions **** -//************************************************************************ + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// //======================================================================== // Determine joystick capabilities diff --git a/src/cocoa/cocoa_time.m b/src/cocoa/cocoa_time.m index fd613224..74d05ba9 100644 --- a/src/cocoa/cocoa_time.m +++ b/src/cocoa/cocoa_time.m @@ -29,15 +29,16 @@ #include "internal.h" -//************************************************************************ -//**** Platform implementation functions **** -//************************************************************************ + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// //======================================================================== // Return timer value in seconds //======================================================================== -double _glfwPlatformGetTime( void ) +double _glfwPlatformGetTime(void) { return [NSDate timeIntervalSinceReferenceDate] - _glfwLibrary.NS.timer.t0; @@ -47,7 +48,7 @@ double _glfwPlatformGetTime( void ) // Set timer value in seconds //======================================================================== -void _glfwPlatformSetTime( double time ) +void _glfwPlatformSetTime(double time) { _glfwLibrary.NS.timer.t0 = [NSDate timeIntervalSinceReferenceDate] - time; diff --git a/src/cocoa/cocoa_window.m b/src/cocoa/cocoa_window.m index 9cda5f11..7de351e6 100644 --- a/src/cocoa/cocoa_window.m +++ b/src/cocoa/cocoa_window.m @@ -435,9 +435,10 @@ static int convertMacKeyCode(unsigned int macKeyCode) @end -//************************************************************************ -//**** Platform implementation functions **** -//************************************************************************ + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// //======================================================================== // Here is where the window is created, and the OpenGL rendering context is