Commit Graph

152 Commits

Author SHA1 Message Date
Cem Karan
fb11af9c6a Merge branch 'master' into fast_window_position_updates 2016-02-16 15:29:54 -05:00
Cem Karan
1e1def1d04 Bug fix to examples/CMakeLists.txt to add transparent to WINDOWS_BINARIES.
This fix is due to @thomthom on GitHub, who discovered the bug and suggested
the fix.  Basically, I forgot to add the 'transparent' app to the list of
Windows applications, which made a mess of the linker, etc.  This fix should
take care of it.
2016-02-16 13:53:32 -05: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
Cem Karan
c63da92547 Changed the location of one vertex so the triangle is more triangular (maybe?)
I haven't checked the math on this, but in playing with blending modes I noticed
that one of the rotated vertices appeared to be closer to the center of rotation
than the others.  This adjustment makes it so they are all the same distance from
the center of rotation.  If the center of rotation is conincident with the
triangle's center, then this will mean the triangle is equilateral, but I
haven't verified this, it just looked right from the rotations.
2015-12-18 14:46:56 -05:00
Cem Karan
a676f4d5d0 Bug fixes to filters.c: All windows now show same contents regardless of position.
The auxiliary windows now reflect what is happening in the primary window.
Unfortunately, there is still a bug in the primary window code that affects
the orthographic projection.  Basically, the object that is drawn is resized
along with the contents of the window instead of remaining a constant size
while the window is resized around it.
2015-12-18 13:41:34 -05:00
Cem Karan
3229ae91b2 Created examples/filters.c to demonstrate how to draw in one window based on
the position of a different window.

This illustrates the idea of filters; windows that draw their contents based
on the content of a different window (similar to what you'd see if you viewed
something through a colored filter).  This works on OS X.  Untested on other
platforms.
2015-12-17 15:49:28 -05:00
Cem Karan
69fca03d78 Renamed GLFW_ALPHA_MASK as GLFW_TRANSPARENT as per @elmindreda 2015-12-17 11:18:17 -05:00
Cem Karan
619c41692d Merged in @andsve changes with the latest in the master branch. Transparent windows now work! 2015-12-16 16:28:20 -05: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