Skip to content

Commit 223283d

Browse files
committed
Merge remote-tracking branch 'upstream/master' into 0.22maj
Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
2 parents 6851fc3 + a085d7c commit 223283d

File tree

6 files changed

+23
-15
lines changed

6 files changed

+23
-15
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Unreleased
22

33
- Update winit dependency to 0.20.0-alpha4. See [winit's CHANGELOG](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md#0200-alpha-4) for more info.
4+
# Version 0.22.0-alpha4 (2019-11-10)
5+
6+
- Update winit dependency to 0.20.0-alpha4. See [winit's CHANGELOG](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md#0200-alpha-4) for more info.
7+
- Added an xcode example for building for iOS.
8+
- Made using sRGB the default.
9+
- MacOSX's raw_handle trait method now returns the CGLContext object.
10+
11+
# Version 0.22.0-alpha3 (2019-8-15)
12+
13+
- Switched from needing a `EventLoop` to a `EventLoopWindowTarget`
414

515
# Version 0.22.0-alpha2 (2019-08-15)
616

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A low-level library for OpenGL context creation, written in pure Rust.
88

99
```toml
1010
[dependencies]
11-
glutin = "0.22.0-alpha3"
11+
glutin = "0.22.0-alpha4"
1212
```
1313

1414
## [Documentation](https://docs.rs/glutin)
@@ -60,10 +60,6 @@ The plan is that glutin tries to dynamically link-to and use wayland if possible
6060

6161
Due to an issue with how mesa and Wayland play together, all shared contexts must use the same events pool as each other.
6262

63-
### iOS
64-
65-
In order to build in XCode, you must link both `UIKit.framework` and `OpenGLES.framework`. In order for your app to not crash while attempting to obtain a context, you must also link `CoreFoundation.framework` and `GLKit.framework`.
66-
6763
## Common issues
6864

6965
Help! I'm receiving `NoAvailablePixelFormat`!

glutin/Cargo.toml

+9-6
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ winit = "0.20.0-alpha4"
2323

2424
[target.'cfg(target_os = "android")'.dependencies]
2525
android_glue = "0.2"
26-
glutin_egl_sys = { version = "0.1.3", path = "../glutin_egl_sys" }
27-
parking_lot = "0.8"
26+
glutin_egl_sys = { version = "0.1.4", path = "../glutin_egl_sys" }
27+
parking_lot = "0.9"
28+
29+
[target.'cfg(target_os = "emscripten")'.dependencies]
30+
glutin_emscripten_sys = { version = "0.1.0", path = "../glutin_emscripten_sys" }
2831

2932
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies]
3033
objc = "0.2.6"
@@ -48,15 +51,15 @@ features = [
4851
[target.'cfg(target_os = "windows")'.dependencies]
4952
libloading = "0.5"
5053
glutin_wgl_sys = { version = "0.1.3", path = "../glutin_wgl_sys" }
51-
glutin_egl_sys = { version = "0.1.3", path = "../glutin_egl_sys" }
52-
parking_lot = "0.8"
54+
glutin_egl_sys = { version = "0.1.4", path = "../glutin_egl_sys" }
55+
parking_lot = "0.9"
5356

5457
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
5558
osmesa-sys = "0.1"
5659
wayland-client = { version = "0.23", features = ["egl", "dlopen"] }
5760
libloading = "0.5"
58-
glutin_egl_sys = { version = "0.1.3", path = "../glutin_egl_sys" }
61+
glutin_egl_sys = { version = "0.1.4", path = "../glutin_egl_sys" }
5962
glutin_glx_sys = { version = "0.1.5", path = "../glutin_glx_sys" }
6063
derivative = "1.0"
61-
parking_lot = "0.8"
64+
parking_lot = "0.9"
6265
log = "0.4"

glutin_egl_sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "glutin_egl_sys"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
authors = ["The glutin contributors", "Hal Gentz <zegentzy@protonmail.com>"]
55
description = "The egl bindings for glutin"
66
repository = "https://github.com/rust-windowing/glutin"

glutin_gles2_sys/build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ fn main() {
1010
println!("cargo:rerun-if-changed=build.rs");
1111

1212
if target.contains("ios") {
13+
println!("cargo:rustc-link-lib=framework=GLKit");
14+
println!("cargo:rustc-link-lib=framework=OpenGLES");
1315
let mut file = File::create(&dest.join("gles2_bindings.rs")).unwrap();
1416
Registry::new(Api::Gles2, (2, 0), Profile::Core, Fallbacks::None, [])
1517
.write_bindings(gl_generator::StaticStructGenerator, &mut file)

glutin_gles2_sys/src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ pub const kEAGLRenderingAPIOpenGLES1: NSUInteger = 1;
7979
pub const kEAGLRenderingAPIOpenGLES2: NSUInteger = 2;
8080
pub const kEAGLRenderingAPIOpenGLES3: NSUInteger = 3;
8181

82-
#[link(name = "UIKit", kind = "framework")]
83-
#[link(name = "CoreFoundation", kind = "framework")]
84-
#[link(name = "GlKit", kind = "framework")]
8582
extern "C" {
8683
pub static kEAGLColorFormatRGB565: id;
8784
// pub static kEAGLColorFormatRGBA8: id;

0 commit comments

Comments
 (0)