Commit Graph

199 Commits

Author SHA1 Message Date
Camilla Berglund 757eea2779 Update email address 2016-06-01 21:25:20 +02:00
Camilla Berglund 9f1474c1d0 Add Unix full screen key chord for no reason 2016-03-29 14:10:24 +02:00
Camilla Berglund 6570d0c4b7 Add glfwSetWindowMonitor
This adds the ability to switch between windowed and full screen modes,
move a full screen window between monitors and update its desired
resolution and refresh rate.

Fixes #43.
2016-03-18 11:13:24 +01:00
Camilla Berglund fc3acdacf6 Remove pointless window hint from Boing example 2016-03-18 10:33:23 +01:00
Camilla Berglund 9b75bffc88 Add basic Vulkan support
Added GLFW_INCLUDE_VULKAN.  Added glfwVulkanSupported,
glfwGetRequiredInstanceExtensions, glfwGetInstanceProcAddress,
glfwGetPhysicalDevicePresentationSupport and glfwCreateWindowSurface.
Added port of LunarG SDK tri example.
2016-02-16 14:58:58 +01:00
Marcus Geelnard 075140aefe Add public header path to target interface
Closes #697.
2016-02-02 06:00:18 +01:00
Nicholas Vitovitch 453631773e Export transitive dependencies for static library 2016-02-02 06:00:18 +01:00
Zbigniew Mandziejewicz 8637612908 Add GLFW_DLL to target interface 2016-02-02 06:00:18 +01:00
Camilla Berglund 37c93ba031 Compiler flag cleanup 2015-12-15 22:37:23 +01:00
Camilla Berglund d9e43ea120 Fix example build errors on legacy MinGW 2015-11-10 14:08:28 +01:00
Camilla Berglund dc1b9ce7f0 Move simple example to GL2 2015-11-07 21:08:25 +01:00
Роман Донченко ec7f4d3232 Use fprintf in error callback of simple example
Besides improving consistency, this also ensures that error messages end
with newlines.

Closes #628.
2015-10-28 23:25:23 +01:00
Camilla Berglund d84772d620 Add size limits and aspect ratio functions
Fixes #555.
2015-10-18 17:18:29 +02:00
Camilla Berglund 219e697dd9 Fix splitview bundle name 2015-10-15 18:04:26 +02:00
Camilla Berglund a3985c3406 Add icon to examples 2015-10-15 18:04:02 +02:00
Camilla Berglund b3509fd3de Fix heightmap example viewport 2015-10-14 13:43:06 +02:00
Camilla Berglund 1b1ef31228 Make tests and examples use glad 2015-10-14 12:38:18 +02:00
Camilla Berglund 0eccf75f65 Replace GL booleans with public macros 2015-10-13 00:46:02 +02:00
Camilla Berglund 65f3bb01be Remove options from gears example 2015-08-09 18:16:58 +02:00
Camilla Berglund dd01dd7bef Replace GLU with linmath.h in examples 2015-08-09 16:54:19 +02:00
Camilla Berglund d2113dc9f5 Remove ad-hoc M_PIs and enable VC++ macro
Fixes #564.
2015-08-09 13:57:04 +02:00
Camilla Berglund 24e4e674a5 Enabled MSAA for splitview example. 2015-07-27 12:42:16 +02:00
Camilla Berglund 460e5d792d Fixed splitview example on Retina displays. 2015-07-21 21:58:24 +02:00
Camilla Berglund 7935a366f4 Fixed particles example on Retina displays. 2015-06-12 03:13:36 +02:00
Camilla Berglund 47592fbf42 Cleaned up example build file. 2015-05-13 16:01:42 +02:00
Camilla Berglund 80a38c1e45 Updated Info.plist template file. 2015-05-13 15:59:09 +02:00
Camilla Berglund 821f3e674a Enabled High DPI support with custom Info.plist.
Fixes #422.
2015-03-17 16:54:59 +01:00
Camilla Berglund cb11b7ca6f Added live resizing to splitview example.
Fixes #424.
2015-03-15 15:47:39 +01:00
Camilla Berglund 023f337735 Fixed IDE folder issues for VC++.
Fixes #328.
2015-01-07 00:58:54 +01:00
Camilla Berglund 0e3cb945e8 Fixed heightmap example for OS X. 2015-01-06 19:03:19 +01:00
Camilla Berglund 40d1a491ca Removed unused bits of heightmap example. 2015-01-06 19:02:56 +01:00
Camilla Berglund 5f6aa9c34c Added IDE folders to CMake files.
Fixes #328.
2015-01-05 01:19:02 +01:00
Camilla Berglund 3833a70b8d Cleaned up wave example rotation control. 2015-01-04 15:54:08 +01:00
Camilla Berglund 1021948313 Fixed SplitView CMake target name.
Spaces are not allowed in CMake 3.0 target names according to policy
CMP0037.

Fixes #388.
2014-12-01 22:10:13 +01:00
Camilla Berglund 4591ad2d64 Documentation work. 2014-09-22 11:08:33 +02:00
Camilla Berglund 452e95d02a CMake path quoting fixes. 2014-08-15 15:16:45 +02:00
Camilla Berglund 839721b926 Fixed VC++ warnings. 2014-08-15 13:03:06 +02:00
Camilla Berglund 6e0ea02f17 Quoted all CMake paths with substitution.
Fixes #258.
2014-08-11 20:26:37 +02:00
Jonas Ådahl 819e148510 examples/boing: Add ball-follow-cursor functionality
Make it so that in the boing example, when the user clicks, the ball
follows the mouse cursor.
2014-06-29 23:18:40 +02:00
Camilla Berglund f2813633b0 Fixed link flags for threaded example. 2014-03-07 00:18:54 +01:00
Camilla Berglund eb460c30ce Added missing link flags for threaded example. 2014-03-06 20:42:47 +01:00
Camilla Berglund 54fac457bf Removed unused -s option. 2014-02-13 13:30:15 +01:00
Camilla Berglund 6e0015f022 Replaced ad-hoc extension loading with glad. 2014-01-12 01:59:06 +01:00
Camilla Berglund fe05515f43 Fixed uses of relative time for cnd_timedwait. 2014-01-11 22:13:03 +01:00
Camilla Berglund 89627e4cd0 Cleaned up particles example. 2014-01-11 21:29:58 +01:00
Camilla Berglund 457403586d Replaced ad-hoc argument processing with getopt. 2014-01-11 20:39:53 +01:00
Camilla Berglund 3f9117ef85 Formatted particles example. 2014-01-11 20:33:20 +01:00
Camilla Berglund d9f53c78a0 Plain port of particles example to GLFW 3. 2014-01-11 19:40:44 +01:00
Camilla Berglund e38740d6ef Added GLFW 2 particles example. 2014-01-11 19:37:01 +01:00
Camilla Berglund 45368f410a Fixed warnings from Clang static analysis. 2013-11-14 13:42:29 +01:00
Camilla Berglund 10017b27bb Cleanup. 2013-06-17 12:46:51 +02:00
Camilla Berglund 3df0b4478b Fixed VC++ warnings. 2013-06-12 20:37:04 +02:00
Camilla Berglund ee91dea741 Added key input to quick tutorial. 2013-06-05 23:46:16 +02:00
Camilla Berglund 11615fcaf2 Added scancode to key callback. 2013-06-05 23:46:09 +02:00
Camilla Berglund 3498163da1 Separated window and framebuffer sizes. 2013-06-04 01:51:54 +02:00
Camilla Berglund 15ed715f4e Moved public headers to the GLFW directory. 2013-05-22 22:46:34 +02:00
Camilla Berglund 6df692b61e Renamed CURSOR_CAPTURED to CURSOR_DISABLED. 2013-05-22 21:56:14 +02:00
Camilla Berglund 9264b5da0e Removed double mode for cursor mode. 2013-05-22 21:56:14 +02:00
Camilla Berglund 2d1b835711 Added a conservative set of key modifiers. 2013-05-22 21:56:14 +02:00
Camilla Berglund f06a700307 Renamed support directory to deps. 2013-04-17 15:42:21 +02:00
Camilla Berglund 129e94da2e Changed cursor pos to double. 2013-04-04 16:29:40 +02:00
Camilla Berglund 3897a174b5 Fixed VC++ warnings. 2013-03-08 14:19:40 +01:00
Camilla Berglund 6fadf37bda Replaced window close parameter with mutable flag.
Replaced the GLFW_SHOULD_CLOSE window parameter with the
glfwWindowShouldClose and glfwSetWindowShouldClose functions, allowing
the setting of the close flag from any point in the program.
2013-03-01 14:13:45 +01:00
Camilla Berglund f8f81e5754 Documentation work. 2013-02-28 21:49:24 +01:00
Camilla Berglund f0f4af4287 Fixed warnings on VC++. 2013-01-06 21:02:57 +01:00
Camilla Berglund 9af960e2dd Made the pointer-ness of object handles explicit. 2013-01-05 21:13:28 +01:00
Camilla Berglund 835f00eb10 Merge branch 'master' into multi-monitor
Conflicts:
	include/GL/glfw3.h
	readme.html
	src/fullscreen.c
	src/internal.h
	src/window.c
	src/x11_fullscreen.c
2012-12-31 21:13:10 +01:00
Camilla Berglund 21f41a2bb7 Renamed GLFW_SAMPLES and GLFW_SHOULD_CLOSE. 2012-12-31 19:55:41 +01:00
Camilla Berglund 23c6def880 Merge branch 'master' into multi-monitor
Conflicts:
	src/cocoa_window.m
	src/init.c
	tests/iconify.c
	tests/reopen.c
2012-12-30 22:18:15 +01:00
Camilla Berglund 9cc8fc0d0a Removed glfwGetError and glfwErrorString.
The cached error code cannot be made per-thread unless it required
glfwInit (due to lack of __thread on OS X), which would be confusing and
partially defeats the purpose of it.

Beginners would use the generic error string facility instead of the
error callback and then be confused by its nondescript messages.

Storing the provided error code from within the error callback, whether
globally or per-thread, requires just a few lines of code and hands
control to the user without compromising thread safety.
2012-12-30 01:50:03 +01:00
Camilla Berglund f558563621 Merge branch 'master' into multi-monitor 2012-12-27 18:22:45 +01:00
Camilla Berglund cdcdf5763a Temporary fix for OPENGL_INCLUDE_DIR being NOTFOUND on OS X 10.8. 2012-12-27 18:04:24 +01:00
Camilla Berglund 7be7da16af Merge branch 'master' into multi-monitor
Conflicts:
	include/GL/glfw3.h
2012-12-13 02:23:38 +01:00
Camilla Berglund 3f5843f500 Renamed tokens used for other client APIs. 2012-12-13 02:22:39 +01:00
Camilla Berglund 41bc0d18f4 Merge branch 'master' into multi-monitor
Conflicts:
	include/GL/glfw3.h
	readme.html
	src/CMakeLists.txt
	src/win32_window.c
	src/window.c
	src/x11_window.c
	tests/clipboard.c
	tests/defaults.c
	tests/events.c
	tests/fsfocus.c
	tests/glfwinfo.c
	tests/joysticks.c
	tests/peter.c
	tests/sharing.c
	tests/tearing.c
	tests/title.c
	tests/windows.c
2012-11-27 16:55:04 +01:00
Camilla Berglund c479124e69 Removed key repeat. 2012-11-22 17:14:50 +01:00
Camilla Berglund 7c426d1c92 Merge branch 'master' into multi-monitor
Conflicts:
	examples/wave.c
	src/init.c
	src/internal.h
	src/window.c
	tests/accuracy.c
	tests/events.c
	tests/reopen.c
2012-11-01 00:07:01 +01:00
Camilla Berglund 18d71c2b6d Made window-related callbacks per-window.
This makes polymorphic behaviour easier to implement and avoids the problem of
events being triggered before the GLFW window object is fully usable.
2012-10-29 13:36:01 +01:00
Camilla Berglund d68acb78bf Removed registering glfwTerminate with atexit.
Functions registered with atexit are called from the thread calling exit.
glfwTerminate should only be called from the main thread.  Mistakes should be
explicit.
2012-10-22 03:20:16 +02:00
Camilla Berglund 1be1636326 Begun integrating monitor and window. 2012-09-27 21:38:35 +02:00
Camilla Berglund 9a183090e0 Merge branch 'master' into showwindow
Conflicts:
	src/window.c
2012-09-06 15:11:50 +02:00
Camilla Berglund 74f5cd6fa7 Removed unused example files. 2012-08-29 16:12:44 +02:00
Camilla Berglund a2ca095b86 Renamed GLFW_WINDOW_RESIZABLE to GLFW_RESIZABLE.
This matches GLFW_ACTIVE and GLFW_ICONIFIED.
2012-08-21 20:28:36 +02:00
Lambert Clara c2729181a2 Fix various warnings reported by gcc
Shadowed variables, const warnings
2012-08-12 14:02:38 +02:00
Camilla Berglund 5bbac6fe69 Moved Free Getopt files to support directory. 2012-08-12 12:44:23 +02:00
Camilla Berglund 2f095cc9e3 Removed implicit glfwMakeCurrentContext.
Implicitly making the context current makes sense in a
single-window API but less sense in a multi-window one.
2012-08-10 15:29:45 +02:00
Camilla Berglund 2410e2aaf4 Replaced automatic closing with window parameter. 2012-08-10 13:31:15 +02:00
Camilla Berglund 8ed66ea4d5 Removed calling of callbacks from setters. 2012-08-07 12:45:55 +02:00
Camilla Berglund 585a840329 Added window parameter to glfwSwapBuffers. 2012-08-06 18:13:37 +02:00
Camilla Berglund aff30d0baa Renamed window creation/destruction functions.
Renamed glfwOpenWindow to glfwCreateWindow.
Renamed glfwCloseWindow to glfwDestroyWindow.
Renamed glfwOpenWindowHint to glfwWindowHint.
2012-08-06 17:59:34 +02:00
Camilla Berglund 6b46225e33 Declared all window close callbacks as static. 2012-08-03 19:53:42 +02:00
Camilla Berglund 2972cdfeb1 Removed glfwIsWindow. 2012-08-03 16:20:52 +02:00
Camilla Berglund cef9dea1d2 Unified nomenclature for cursor positions. 2012-06-22 13:57:25 +02:00
Camilla Berglund 9871b5dc79 Removed deprecated macro. 2012-06-11 14:14:00 +02:00
Camilla Berglund 0c49e9ec87 Fixed function pointer casting. 2012-06-11 14:13:05 +02:00
Camilla Berglund 2213450840 Renamed GLFW_NO_GLU to GLFW_INCLUDE_GLU. 2012-06-05 23:55:10 +02:00
Camilla Berglund 141b56afc0 Added libm as direct dependency for tests and examples. 2012-04-19 16:57:44 +02:00
Camilla Berglund 4ef9aec7e0 Made scrolling deltas floating point. 2012-03-28 21:54:09 +02:00
Camilla Berglund 1eb24ff261 Executable dependency list fixes. 2012-03-25 17:07:43 +02:00
Camilla Berglund 23776f67e3 Formatting. 2012-03-25 13:58:07 +02:00