Formatting.

master
Camilla Berglund ago%!(EXTRA string=15 years)
parent 0e5dec5ce9
commit 0641a6ec9a
  1. 7
      src/cocoa/cocoa_enable.m
  2. 6
      src/cocoa/cocoa_fullscreen.m
  3. 7
      src/cocoa/cocoa_glext.m
  4. 6
      src/cocoa/cocoa_init.m
  5. 7
      src/cocoa/cocoa_joystick.m
  6. 11
      src/cocoa/cocoa_time.m
  7. 7
      src/cocoa/cocoa_window.m

@ -29,9 +29,10 @@
#include "internal.h"
//************************************************************************
//**** Platform implementation functions ****
//************************************************************************
//////////////////////////////////////////////////////////////////////////
////// GLFW platform API //////
//////////////////////////////////////////////////////////////////////////
//========================================================================
// Enable and disable system keys

@ -66,9 +66,9 @@ static GLFWvidmode vidmodeFromCGDisplayMode(NSDictionary* mode)
}
//************************************************************************
//**** Platform implementation functions ****
//************************************************************************
//////////////////////////////////////////////////////////////////////////
////// GLFW platform API //////
//////////////////////////////////////////////////////////////////////////
//========================================================================
// Get a list of available video modes

@ -29,9 +29,10 @@
#include "internal.h"
//************************************************************************
//**** Platform implementation functions ****
//************************************************************************
//////////////////////////////////////////////////////////////////////////
////// GLFW platform API //////
//////////////////////////////////////////////////////////////////////////
//========================================================================
// Check if an OpenGL extension is available at runtime

@ -188,9 +188,9 @@ static void glfw_atexit(void)
}
//************************************************************************
//**** Platform implementation functions ****
//************************************************************************
//////////////////////////////////////////////////////////////////////////
////// GLFW platform API //////
//////////////////////////////////////////////////////////////////////////
//========================================================================
// Initialize the GLFW library

@ -29,9 +29,10 @@
#include "internal.h"
//************************************************************************
//**** Platform implementation functions ****
//************************************************************************
//////////////////////////////////////////////////////////////////////////
////// GLFW platform API //////
//////////////////////////////////////////////////////////////////////////
//========================================================================
// Determine joystick capabilities

@ -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;

@ -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

Loading…
Cancel
Save