Commit Graph

72 Commits

Author SHA1 Message Date
Camilla Löwy
5c3ebfb9cc Remove OSMesa specific code from offscreen example
The OSMesa specific path is more appropriate for a test than an example.
2022-05-06 19:06:13 +02:00
Camilla Löwy
8e23579842 Add OpenGL ES 2.0 triangle example 2021-08-26 16:03:58 +02:00
Camilla Löwy
62074f3dea Update glad2 and switch to header-only version
This updates to a newer version of glad2 and switches to the header-only
variant.

This also (finally) switches to the newer glad2 loader signature that
allows us to pass in glfwGetInstanceProcAddress directly.
2021-08-26 16:03:40 +02:00
Camilla Löwy
061a0263a9 Win32: Fix compilation with standalone LLVM
The /clang: suffix passed to Clang-CL was accidentally also passed to
the regular standalone Clang, which caused compilation to fail.  We now
pass /W3 to Clang-CL, which it interprets as -Wall.

The _CRT_SECURE_NO_WARNINGS macro is now defined for both Clang and
Clang-CL.

The /entry: flag passed to link.exe is now also passed to lld-link,
letting the windows subsystem tests and examples link.

Fixes #1807.
Closes #1824.
Closes #1874.
2021-04-22 22:37:37 +02:00
Camilla Löwy
5c92cd9f52 Make windows test a tolerable example 2020-07-15 19:22:30 +02:00
Camilla Löwy
8369880b56 Only look for OSMesa module if building examples
GLFW itself doesn't need the OSMesa headers to build.
2020-06-08 01:07:34 +02:00
Camilla Löwy
49c5d837b4 Replace CMake threads variable with modern target 2019-12-15 18:37:56 +01:00
Camilla Löwy
59055d585f Update minimum required CMake version to 3.1 2019-12-09 23:48:26 +01:00
Camilla Löwy
5f4a6f689a Gather all macOS specific CMake properties 2019-12-09 23:48:26 +01:00
Camilla Löwy
db76abb63c Make target-specific define target-specific 2019-12-09 23:48:26 +01:00
Camilla Löwy
c81def70be Remove unneccessary example target property
Bundle icon file copying is performed by MACOSX_PACKAGE_LOCATION.
2019-12-09 23:35:51 +01:00
Camilla Löwy
2fb336268f Shorten name of Info.plist template file
Our template file is not simply a copy of the file included in CMake and
so should not be named as if it was.
2019-12-09 23:35:50 +01:00
Camilla Löwy
d74c18117d Remove dependency on platform header paths
The tests and examples should not need these paths.
2019-12-09 23:33:37 +01:00
Camilla Löwy
92c70b2a83 Rename CMake variable for GUI-only programs
Hopefully this is less ambiguous.
2019-12-09 23:33:37 +01:00
Camilla Löwy
953a1c3f8b Cleanup 2019-11-11 22:37:18 +01:00
Guillaume Racicot
70a3104c49 Set C standard at 99 for all example targets
Closes #1593.
2019-11-11 22:37:18 +01:00
Camilla Löwy
a639d6e635 Rename OpenGL triangle example to triangle-opengl 2019-05-24 14:43:39 +02:00
Camilla Löwy
a255e7ace6 Move to the modern CMake project version option
This replaces the manual ad-hoc version variables we have used since
CMake 2.x (and GLFW 2.x lite).
2019-05-17 16:12:52 +02:00
Camilla Löwy
d7e30b1c74 Replace glad and the Vulkan SDK with glad2
This removes all dependencies from the GLFW test programs on the Vulkan
SDK.

It also removes support for linking the GLFW shared library (dynamic
library, DLL) against the Vulkan loader static library.
2019-04-15 02:45:48 +02:00
Camilla Löwy
546c99a3a3 Made sharing an example 2017-11-10 02:58:18 +01:00
Camilla Löwy
c873327fe3 Fix NOTFOUND paths being added as dependencies
Fixes #930.
2017-01-20 01:29:46 +01:00
Camilla Löwy
11376a2dd0 Cleanup 2016-12-03 20:06:24 +01:00
Camilla Berglund
20735bf840 Add offscreen example to IDE folder 2016-11-16 17:04:23 +01:00
Denis
cce430fbfa Cocoa: Fix typo
Closes #897.
2016-11-16 04:07:16 +01:00
Camilla Berglund
b8c71e7f2d Add offscreen rendering example 2016-11-09 01:36: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
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
1b1ef31228 Make tests and examples use glad 2015-10-14 12:38:18 +02:00
Camilla Berglund
dd01dd7bef Replace GLU with linmath.h in examples 2015-08-09 16:54:19 +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
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
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
452e95d02a CMake path quoting fixes. 2014-08-15 15:16:45 +02:00
Camilla Berglund
6e0ea02f17 Quoted all CMake paths with substitution.
Fixes #258.
2014-08-11 20:26:37 +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
6e0015f022 Replaced ad-hoc extension loading with glad. 2014-01-12 01:59:06 +01:00
Camilla Berglund
457403586d Replaced ad-hoc argument processing with getopt. 2014-01-11 20:39:53 +01:00
Camilla Berglund
d9f53c78a0 Plain port of particles example to GLFW 3. 2014-01-11 19:40:44 +01:00
Camilla Berglund
10017b27bb Cleanup. 2013-06-17 12:46:51 +02:00