daxpedda
c91402efb9
Correctly detect that we don't support Emscripten ( #2971 )
2023-07-22 18:31:40 +02:00
Kirill Chibisov
2496098890
Update wayland-rs to 0.30.0
...
This update rewrites the winit's Wayland backend using new wayland-rs
0.30 API. This fixes long standing issue with the forward compatibility
of the wayland backend, meaning that future updates to the wayland
protocol won't break rust code anymore. like it was before when adding
new shm/enum variants into the protocol.
Fixes #2560 .
Fixes #2164 .
Fixes #2128 .
Fixes #1760 .
Fixes #725 .
2023-04-19 00:56:29 +03:00
daxpedda
f0fcb346b0
On Web, use target_family = "wasm"
2023-03-16 22:49:59 +03:00
Kirill Chibisov
8f8da0f8bb
Fix rerun-if-changed emmiting from build.rs
...
The docs state that it accepts `PATH`, but not like the env variable.
So to make it work each `PATH` should be emmited from each `println!`.
Fixes #2657 .
2023-01-29 14:23:45 +03:00
Kirill Chibisov
de782504ab
On Wayland, add support for fractional scaling
...
This adds support for the fractional scaling on Wayland via the
wp-fractional-scale protocol.
Co-authored-by: Julian Orth <ju.orth@gmail.com>
2023-01-20 00:02:16 +03:00
Jeremy Soller
66ca445caa
Redox OS support ( #2588 )
...
* Add Redox OS support
* Simplify control flow usage
* Apply more recommendations
* Update naming to indicate that Orbital is a platform
* Adjust import order
2023-01-05 06:58:08 -07:00
Amr Bashir
5e77d70245
Use cfg aliases throught the code base
...
Co-authored-by: Mads Marquart <mads@marquart.dk>
2022-12-25 10:57:27 +03:00
Mads Marquart
51bb6b751e
Remove WINIT_LINK_COLORSYNC (no longer needed) ( #2136 )
...
Since https://github.com/rust-windowing/winit/pull/2078 we link to `ApplicationServices`, which contains the `CGDisplayCreateUUIDFromDisplayID` symbol in all versions.
2022-01-23 20:38:08 +01:00
Imberflur
b9307a9967
Change linking of CGDisplayCreateUUIDFromDisplayID on macos ( #1626 )
...
* Link CGDisplayCreateUUIDFromDisplayID through ColorSync instead of CoreGraphics
* Conditionally link through ColorSync only if WINIT_LINK_COLORSYNC is set
to true
* Document new macos env var in README
2021-02-05 08:58:55 +01:00
Waridley
8aa1be8336
On Unix, fix cross-compiling to wasm32
...
Aborting compilation by using 'compile_error!' macro in build.rs was resulting in failing cross
compilation, thus this commit removes build.rs. The compilation will now be aborted on existing 'compile_error!' macros in corresponding platform sources.
2020-10-22 07:14:33 +03:00
Olivier Goffart
c1ea0dde92
On Unix, add option to pick backends
...
Add features 'x11' and 'wayland' to pick backends on Linux/BSD, with
both enabled by default.
Fixes #774 .
2020-06-15 10:15:27 +03:00
Pierre Krieger
10bb03c5f0
Remove most OpenGL stuff and make it compile on win32
2016-02-23 12:56:23 +01:00
Pierre Krieger
61bca52217
Fix compilation on linux
2015-12-19 15:00:32 +01:00
Pierre Krieger
6b3a3a4577
Update GLX to use glXChooseFBConfig
2015-12-19 13:56:13 +01:00
Pierre Krieger
95a60ee329
Switch WGL to ChoosePixelFormat
2015-12-19 13:06:50 +01:00
Pierre Krieger
29a59d7999
Use the new build scripts dependencies system
2015-12-05 20:13:46 +01:00
Pierre Krieger
326ea3555b
Fix the triangle in the examples
2015-08-30 18:48:26 +02:00
Michael Neumann
b707959c2c
Make it work on DragonFly/FreeBSD
...
Tested on DragonFly BSD. Should work similarily on FreeBSD.
2015-08-30 13:52:09 +02:00
tomaka
e90f377b9f
Merge pull request #565 from tomaka/correct-example
...
Use modern GL code for the examples
2015-08-07 22:55:54 +02:00
Pierre Krieger
587dedaa9e
Correctly handle eglGetDisplay
2015-08-07 16:22:31 +02:00
Pierre Krieger
9261408cc8
Use modern GL code for the examples
2015-08-05 22:31:34 +02:00
tomaka
836e53e55a
Merge pull request #477 from rozaliev/feature/ios
...
[WIP] ios support
2015-06-29 09:29:46 +02:00
Pierre Krieger
bff79c02ce
Add support for the EGL_KHR_create_context_no_error extension
2015-06-25 09:35:58 +02:00
Pierre Krieger
dbaca24cde
Add with_robustness and handle robustness on all implementations
2015-06-22 19:42:03 +02:00
Evgeny Rozaliev
84703027d6
[add] ios support
2015-06-05 16:38:35 +03:00
Pierre Krieger
01ecd24fe2
Allow creating EGL contexts on win32 with the AMD DLLs
2015-05-21 18:59:30 +02:00
Pierre Krieger
b3044809c2
Fixes in EGL context creation
2015-05-12 21:28:56 +02:00
Pierre Krieger
2414f87ceb
Make x11 dynamic
2015-05-07 13:14:09 +02:00
tomaka
4882a94080
Merge pull request #409 from kvark/core
...
GL core profile flag
2015-05-01 14:07:10 +02:00
Pierre Krieger
0eaa8fd9eb
Use the EGL API with Android
2015-05-01 09:44:35 +02:00
Dzmitry Malyshau
a42f1f5833
Implemented gl_core flag
2015-04-30 22:50:15 -04:00
Pierre Krieger
0417f7003f
Allow using EGL with X11
2015-04-25 22:28:43 +02:00
Dzmitry Malyshau
ac23d3114c
Implemented get_pixel_format for X11
2015-04-12 13:45:41 -04:00
Pierre Krieger
65f4809280
Add support for sRGB attribute and fix creation on windows
2015-04-08 09:44:19 +02:00
tomaka
424cc5ea49
Merge pull request #347 from tomaka/win32-pixel-format-details
...
Fix missing parameter for pixel formats infos on win32
2015-04-03 13:54:20 +02:00
Steven Sheldon
9c21758bb7
Removed unused features from build and examples.
2015-04-03 02:31:15 -07:00
Pierre Krieger
4d81cc2df1
Fix missing parameter for pixel formats infos on win32
2015-04-02 13:53:15 +02:00
Pierre Krieger
eabfa9e624
Add support for GLES on Win32
2015-04-02 11:17:14 +02:00
Pierre Krieger
cedc85c550
Rustup
2015-03-25 20:27:18 +01:00
Pierre Krieger
63f69d6f2f
Rustup
2015-03-21 13:43:14 +01:00
Pierre Krieger
896c8b11af
Switch to new I/O in build.rs
2015-03-13 10:21:27 +01:00
Corey Farwell
6bafd4108d
Stop using deprecated os::getenv function
2015-03-11 23:21:02 -04:00
tomaka
6cb0d0b1f2
Update for gl_generator
2015-02-26 20:29:04 +01:00
Corey Farwell
7fa19ab0df
Remove deprecated 'allow' lint
2015-02-21 18:19:03 -05:00
Corey Farwell
f4c9bd81bb
Opt into features to silence warnings
2015-02-21 18:18:47 -05:00
Pierre Krieger
950fd58b77
Implement enumerate_arb_pixel_formats
2015-02-16 15:55:26 +01:00
Andrew Kelley
6a27fa9d26
fix for rust nightly
2015-01-28 12:43:44 -07:00
tomaka
f8c66ff2a9
Merge pull request #220 from tomaka/x11-vsync
...
Implement vsync for x11 and add vsync example
2015-01-25 12:56:15 +01:00
Pierre Krieger
b05ef16d81
Implement vsync for x11 and add vsync example
2015-01-23 09:33:22 +01:00
Bryan Bell
6ea483dc78
Disable compiler unstable warnings
...
To cleanup the compiler output when building, disable
warnings about using unstable crates/features.
2015-01-22 23:40:17 -08:00