Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

macos: Map our user generated event to Event::Awakened #122

Closed
wants to merge 368 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
368 commits
Select commit Hold shift + click to select a range
898a411
Don't run headless test on linux
FredrikNoren Jan 8, 2016
3d2f71e
Bigger headless window size in test
FredrikNoren Jan 8, 2016
c344f36
Trigger build
FredrikNoren Jan 9, 2016
a5de084
Only run headless test on osx for now
FredrikNoren Jan 9, 2016
8a7edc4
Prefer double buffer on wgl if unspecified
dten Jan 14, 2016
9ba16e3
Merge pull request #705 from dten/patch-2
tomaka Jan 14, 2016
4d72916
x11: Poll the window until it is really visible
emilio Jan 16, 2016
3e0f6ad
Merge pull request #706 from ecoal95/xinputfocus-error
tomaka Jan 16, 2016
20d2632
Merge glutin upstream
emilio Jan 16, 2016
dd2f2d6
Bump version in order for it to be published
emilio Jan 16, 2016
7ef1cb7
Merge pull request #62 from ecoal95/servo-merge
SimonSapin Jan 16, 2016
c71b14a
Adding os::macos.
rhoot Jan 16, 2016
0297efb
Merge pull request #707 from rhoot/nswindow
tomaka Jan 17, 2016
c923b27
support utf8 window titles via _NET_WM_NAME standard
gdamjan Jan 17, 2016
e9fc0ee
call set_title() in new()
gdamjan Jan 17, 2016
db074dc
Use GLES
FredrikNoren Jan 18, 2016
2a66d1c
Construct cocoa headless context based on args
FredrikNoren Jan 18, 2016
1113fa1
Merge pull request #703 from FredrikNoren/master
tomaka Jan 18, 2016
0a43f8f
Allow it to work under Xvfb.
notriddle Jan 19, 2016
1ab6677
Merge pull request #710 from notriddle/master
tomaka Jan 22, 2016
bccbbaa
Fix the usage example in the README
jshrake Jan 23, 2016
3d30365
Merge branch 'master' of https://github.com/tomaka/glutin into servo
notriddle Jan 23, 2016
0faaa59
Merge pull request #713 from jshrake/fix-readme-usage
tomaka Jan 23, 2016
9a39d9c
Auto merge of #64 - notriddle:servo, r=mbrubeck
Jan 25, 2016
11bbca7
Replace `i8` with `libc::c_char`
mmatyas Jan 26, 2016
50c7c91
Merge pull request #714 from mmatyas/i8_to_char
tomaka Jan 26, 2016
c67e43d
Use double buffering by default on GLX
mbrubeck Jan 28, 2016
5cdf6c1
Merge pull request #715 from mbrubeck/glx-double-buffer
tomaka Jan 28, 2016
8f1151c
Publish 0.4.6
tomaka Jan 28, 2016
e3b2333
Merge remote-tracking branch 'origin/master' into servo
mbrubeck Jan 28, 2016
9136b0b
Auto merge of #65 - mbrubeck:servo-glx-double-buffer, r=glennw
Jan 28, 2016
5cce3f9
Publish 0.4.7
tomaka Jan 29, 2016
4c7460a
Typo fix in package description
mmatyas Feb 1, 2016
4222812
Merge pull request #716 from mmatyas/typofix
tomaka Feb 1, 2016
abdfa91
Update Cargo.toml
petevine Feb 1, 2016
5288b7d
Merge pull request #717 from petevine/patch-1
tomaka Feb 1, 2016
99073ee
osx: scroll delta should take hidpi factor into account
paulrouget Feb 2, 2016
b63070d
Merge pull request #718 from paulrouget/hidpiwheel
tomaka Feb 2, 2016
165a197
Merge branch 'master' (https://github.com/tomaka/glutin) into servo
paulrouget Feb 3, 2016
eb07d54
Auto merge of #66 - paulrouget:servo, r=glennw
Feb 3, 2016
9a0ae3f
Publish Servo fork on crates.io
paulrouget Feb 3, 2016
d78affc
Auto merge of #67 - paulrouget:servo-glutin-0.4.9, r=KiChjang
Feb 3, 2016
3246613
Merge pull request #709 from gdamjan/support-utf8-window-title
tomaka Feb 3, 2016
5731ad2
Stop using `NSFullSizeContentViewWindowMask` to get borderless windows,
pcwalton Feb 3, 2016
202f8c5
allow non ascii character in ReceivedCharacter
paulrouget Feb 8, 2016
03ca5d5
Merge pull request #722 from paulrouget/azerty
tomaka Feb 9, 2016
982279b
Update the emscripten port of glutin
tomaka Dec 5, 2015
75a940d
Merge pull request #668 from tomaka/emscripten
tomaka Feb 9, 2016
9238a48
Merge branch 'master' of http://github.com/tomaka/gl-init-rs
tomaka Feb 9, 2016
86dd75f
Publish 0.4.8
tomaka Feb 9, 2016
ec76d99
Unlocks platform-specific attributes
tomaka Jan 7, 2016
c6c9ef4
Merge pull request #702 from tomaka/platform-specific
tomaka Feb 10, 2016
e4bf0a2
Update Cargo.toml
petevine Feb 14, 2016
bd60547
Merge pull request #723 from petevine/master
tomaka Feb 14, 2016
6881875
TouchpadPressure event
paulrouget Feb 19, 2016
6a6d7a2
Merge pull request #725 from paulrouget/forceTouch
tomaka Feb 26, 2016
565e8a1
Auto merge of #68 - pcwalton:decontentview-servo, r=pcwalton
Feb 26, 2016
b8fa972
cocoa: Post Awakened events at the end of the queue to avoid floods.
pcwalton Feb 29, 2016
bcd7999
cocoa: Post Awakened events at the end of the queue to avoid floods.
pcwalton Feb 29, 2016
99febe6
Auto merge of #72 - pcwalton:event-deflooding-servo, r=glennw
Feb 29, 2016
366608d
Merge pull request #731 from pcwalton/event-deflooding-tomaka
paulrouget Feb 29, 2016
74a28ad
Fix this_platform_is_not_supported on OpenBSD.
zkirill Mar 2, 2016
2638db6
Merge pull request #732 from zkirill/master
tomaka Mar 2, 2016
08c3118
Fix memory leak while creating NSEvent and swapping buffers (Fixes #514)
fkaa Mar 2, 2016
7886ff9
Add phases to wheel events.
pcwalton Mar 3, 2016
e843206
Merge pull request #735 from metajack/overscroll-tomaka
paulrouget Mar 4, 2016
b0fd6ee
Merge branch 'master' into servo
paulrouget Mar 4, 2016
985733d
version bump
paulrouget Mar 4, 2016
0ae49fe
Auto merge of #70 - paulrouget:glutinUpdate, r=mbrubeck
Mar 4, 2016
7473d99
Implement `min/max_dimensions` for x11 windows.
BonsaiDen Mar 6, 2016
717d018
Pin core-graphics to 0.2 since cocoa 0.2.4 does
metajack Mar 9, 2016
140fd1f
Merge pull request #736 from metajack/fix-core-graphics
tomaka Mar 9, 2016
7249529
Make Mac borderless windows resizable and draggable.
pcwalton Mar 14, 2016
c0adb8d
Fix Mac build by bumping core-graphics.
frewsxcv Mar 15, 2016
141f610
Merge pull request #741 from tomaka/fix-mac-build
paulrouget Mar 15, 2016
3e9a5e7
Merge pull request #740 from pcwalton/mac-resize-drag-borderless-tomaka
paulrouget Mar 16, 2016
7fe2d07
Merge branch 'master' into servo
paulrouget Mar 16, 2016
cc306fe
version bump
paulrouget Mar 16, 2016
3630ced
Auto merge of #78 - paulrouget:glutinUpdate, r=glennw
Mar 16, 2016
fc9d230
Downgrade our `core-graphics-rs` version so that we don't pull in serde
pcwalton Mar 16, 2016
404538b
Auto merge of #79 - pcwalton:downgrade-core-graphics, r=frewsxcv
Mar 16, 2016
a3543b7
Merge pull request #733 from fkaa/cocoa-memleak
paulrouget Mar 17, 2016
1de66e4
Add support for navigation keys
Manishearth Feb 27, 2016
45d2547
Merge pull request #730 from Manishearth/nav
tomaka Mar 17, 2016
28599a5
Uncomment more keys on win32
UK992 Mar 18, 2016
9643d26
Merge pull request #743 from UK992/win32-vk
tomaka Mar 18, 2016
9e2a179
Enable more Windows keys
adamncasey Mar 19, 2016
c526830
Update objc to 0.2.
SSheldon Mar 20, 2016
9a8ca6e
Merge pull request #745 from SSheldon/objc2
tomaka Mar 21, 2016
267221a
Implement CursorState::Hide for x11
Thinkofname Mar 21, 2016
5c4bfe1
Remove a debug print added in 1de66e4ef
Thinkofname Mar 21, 2016
5acd63d
Merge pull request #747 from Thinkofname/remove-debug-print
tomaka Mar 21, 2016
1150368
Auto merge of #80 - tomaka:master, r=Ms2ger
Mar 22, 2016
da86ae9
Bump version.
Ms2ger Mar 22, 2016
e8b3570
Update gl_generator to v0.5
brendanzab Mar 24, 2016
261a3ef
Merge pull request #749 from bjz/update-gl_generator
tomaka Mar 24, 2016
0cf1f01
Merge pull request #746 from Thinkofname/hide-cursor-state-x11
tomaka Mar 24, 2016
8ae2df6
Merge pull request #744 from adamncasey/patch-1
tomaka Mar 24, 2016
7a5e47c
Merge branch 'master' into x11_window_size_constraints
BonsaiDen Mar 25, 2016
1b7a3cd
Correctly apply initial size constraints for x11 windows.
BonsaiDen Mar 25, 2016
117069e
Changed MouseMoved((i32, i32)) to MouseMoved(i32, i32), breaking change
RichardlL Mar 27, 2016
89dd63b
Merge pull request #752 from RichardlL/master
tomaka Mar 27, 2016
0e9fad5
Merge branch 'master' of github.com:tomaka/glutin into x11_window_siz…
BonsaiDen Mar 30, 2016
1b313df
glx: Support non-conformant multisampling fbconfigs.
BonsaiDen Mar 30, 2016
9a129aa
Merge pull request #750 from BonsaiDen/x11_window_size_constraints
tomaka Mar 30, 2016
2ef5dee
Merge remote-tracking branch 'remotes/upstream/master' into servo
jdm Apr 6, 2016
0912a07
Auto merge of #81 - jdm:upstream_merge, r=emilio
Apr 6, 2016
e68dd1c
Bump the version.
jdm Apr 6, 2016
e0f593c
Auto merge of #82 - jdm:versionbump, r=emilio
Apr 6, 2016
d234310
Merge pull request #755 from BonsaiDen/glx_multisampling_conformance
tomaka Apr 6, 2016
136d3be
Publish 0.5.0
tomaka Apr 6, 2016
ce03ade
Merge pull request #759 from tomaka/tomaka-patch-1
tomaka Apr 11, 2016
c68c0d9
Fix pixel format support detection in glx. #748
pierrechevalier83 Apr 13, 2016
ce3d6db
Merge pull request #761 from pierrechevalier83/master
tomaka Apr 13, 2016
18c065a
Publish 0.5.1
pierrechevalier83 Apr 13, 2016
ff3dcf2
Merge pull request #762 from pierrechevalier83/master
tomaka Apr 13, 2016
b9065f5
glx: Always set CONFIG_CAVEAT to DONT_CARE
Bobo1239 Apr 13, 2016
648e831
Merge pull request #763 from Bobo1239/glx-caveat
tomaka Apr 13, 2016
7fb6450
Improve X11 cursor symbols handling
est31 Apr 16, 2016
558eead
Merge pull request #766 from est31/master
tomaka Apr 17, 2016
51aeb27
x11: Add cursor hiding
emilio Apr 17, 2016
0918fe4
x11: Refactor NoneCursor logic so it applies to CursorState::Hide too
emilio Apr 17, 2016
e467819
Merge pull request #767 from emilio/x11-cursor-hide
tomaka Apr 17, 2016
b5866f6
glutin: Merge from upstream
emilio Apr 18, 2016
8dd0b53
Auto merge of #83 - emilio:upstream-update, r=nox
Apr 18, 2016
dc49156
Allow OSX WindowBuilder to specify 'activation behavior'.
frewsxcv Apr 28, 2016
2e2feba
Merge pull request #769 from frewsxcv/activation-policy
tomaka Apr 29, 2016
758962c
Merge remote-tracking branch 'origin/master' into merge-upstream
frewsxcv Apr 29, 2016
b6a9f8c
Auto merge of #84 - servo:merge-upstream, r=jdm
Apr 29, 2016
523140e
Use cfg syntax for target-specific dependencies
mbrubeck May 2, 2016
386db74
Update lazy_static, osmesa-sys, and x11-dl
mbrubeck May 2, 2016
93c88ee
Merge pull request #770 from mbrubeck/deps
tomaka May 3, 2016
18f8464
Updated to android_glue 0.2
ozkriff May 5, 2016
54f442e
Generalize WindowBuilder::with_title
IvanUkhov May 8, 2016
547161a
Merge pull request #773 from IvanUkhov/title
tomaka May 8, 2016
bac84fc
window: Add support for setting the app icon on the Mac.
pcwalton May 11, 2016
5a9ff10
Auto merge of #86 - pcwalton:icons, r=paulrouget
May 13, 2016
f3d781c
cocoa: Reuse a single thread-local `NSEvent` instance instead of
pcwalton May 12, 2016
fc2356d
Auto merge of #87 - pcwalton:reuse-events, r=paulrouget
May 14, 2016
90ecf95
x11: Allow setting the window icon on x11
emilio May 12, 2016
4af7777
Add setting icon example
emilio May 12, 2016
6676aae
Bump to 0.4.17
nox May 16, 2016
7056759
Auto merge of #90 - nox:bump, r=jdm
May 16, 2016
c2f97d6
Update cocoa to 0.4.0
nox May 16, 2016
e44f8ad
Auto merge of #91 - nox:cocoa, r=larsbergstrom
May 16, 2016
5a9cfa8
api/cocoa: Allow Cocoa to cull occluded window regions to improve
pcwalton May 7, 2016
5a9a4de
Auto merge of #85 - pcwalton:cocoa-faster-resizes, r=pcwalton
May 16, 2016
75936e3
cocoa: Allow the app name to be set on the Mac.
pcwalton May 12, 2016
5787230
cocoa: Add some bare-bones menus on the Mac to conform better to the
pcwalton May 12, 2016
f2d3728
x11: Make the `image` dependency optional
emilio May 16, 2016
7986b37
Auto merge of #89 - emilio:icons, r=pcwalton
May 16, 2016
eded2f7
Auto merge of #88 - pcwalton:menus, r=paulrouget
May 17, 2016
d559be7
0.4.20
pcwalton May 17, 2016
cb29980
Properly depend on core-foundation-rs 0.2.2 and cocoa 0.4.1
nox May 17, 2016
6082e18
Auto merge of #92 - servo:foundation, r=pcwalton
May 17, 2016
cf02e7f
Publish 0.5.2
tomaka May 19, 2016
91ed9ef
Update gdi32-sys and user32-sys to 0.2
nox May 20, 2016
ac40d01
Auto merge of #93 - nox:gdi32, r=metajack
May 20, 2016
e0f36b8
Make `WindowBuilder` and `HeadlessRendererBuilder` derive `Clone`.
jansegre May 23, 2016
e796a2e
Merge pull request #780 from jansegre/impl-clone-builders
tomaka May 23, 2016
11faace
Merge pull request #772 from ozkriff/master
tomaka May 25, 2016
49573e7
cocoa: Add a new platform-specific API that allows library consumers to
pcwalton May 27, 2016
b181d27
Auto merge of #94 - pcwalton:mac-transparent-border-radius-servo, r=m…
Jun 2, 2016
ffd4dfe
0.4.23
pcwalton Jun 2, 2016
91683d0
Use the private `CGSSetSurfaceShape` API to make the OpenGL view inside
pcwalton Jun 3, 2016
6fa59a3
Auto merge of #95 - pcwalton:mac-rounded-opengl-surfaces, r=metajack
Jun 4, 2016
56a9c63
cocoa: Activate the `NSApplication` instance after the event loop is set
pcwalton Jun 11, 2016
a8f834a
Auto merge of #96 - pcwalton:mac-proper-activation, r=metajack
Jun 11, 2016
5c48b18
return coordinates in MouseInput events
mrmiywj Jun 11, 2016
3958cd7
Publish 0.6.0
tomaka Jun 13, 2016
0f385e9
Merge pull request #786 from tomaka/tomaka-patch-1
tomaka Jun 14, 2016
8708616
fix modification of X11 and Win32
mrmiywj Jun 11, 2016
51ec6bb
Auto merge of #97 - mrmiywj:return-coordinates-in-MouseInput, r=nox
Jun 16, 2016
7a8429e
android: Fixed Window::get_pixel_format
ozkriff Jun 19, 2016
fa96db1
Merge pull request #788 from ozkriff/android_fix_get_pixel_format
tomaka Jun 19, 2016
50b2b4d
Publish 0.6.1
tomaka Jun 19, 2016
e18ff88
Merge pull request #789 from tomaka/tomaka-patch-1
tomaka Jun 19, 2016
7988345
Bump version
Manishearth Jun 20, 2016
1d3a6fc
Auto merge of #98 - servo:bump, r=Ms2ger
Jun 20, 2016
5613496
Addresses several warnings emitted on OS X by removing unused imports…
mitchmindtree Jun 22, 2016
c2537d8
Remove unused private fields from cocoa HeadlessContext struct.
mitchmindtree Jun 22, 2016
9a6b6b3
Remove imports of enum variants in favour of using the type name paths.
mitchmindtree Jun 22, 2016
87a9cc6
Merge pull request #793 from mitchmindtree/remove_variant_imports
tomaka Jun 22, 2016
572af95
Merge pull request #791 from mitchmindtree/remove_unused_private_fields
tomaka Jun 22, 2016
0c4cf71
Merge pull request #790 from mitchmindtree/remove_unused_imports
tomaka Jun 22, 2016
cbb734b
Remove unnecessary global imports in favour of explicitly importing t…
mitchmindtree Jun 22, 2016
c69b298
Merge pull request #792 from mitchmindtree/remove_glob_imports
tomaka Jun 22, 2016
a4e687a
fix return coordinates in MouseInput
mrmiywj Jun 21, 2016
c570007
Auto merge of #99 - mrmiywj:fix-return-coordinates-in-MouseInput, r=p…
Jun 25, 2016
8076255
Make sure the window does not set itself to autorelease upon closing.
mitchmindtree Jun 26, 2016
7a7eeef
Merge pull request #797 from mitchmindtree/fix_window_close
tomaka Jun 27, 2016
f6ead48
owner_events is now true when grabbing the pointer
mraof Jun 30, 2016
1a3f2e0
Merge pull request #798 from mraof/patch-1
tomaka Jun 30, 2016
54ac019
Fix Windows fallout from 51ec6bb29a1d967b2ba5abc79927ed52effe3885.
pcwalton Jun 30, 2016
3db4ed9
Auto merge of #100 - pcwalton:windows-fix-servo, r=jdm
Jun 30, 2016
95837b1
0.4.25
pcwalton Jun 30, 2016
014f692
x11: handle X11's multi-key, a.k.a compose key.
emilio Jul 4, 2016
952ca7c
x11: handle X11's multi-key, a.k.a compose key.
emilio Jul 4, 2016
9a26f29
Merge pull request #800 from emilio/compose-upstream
tomaka Jul 5, 2016
4ee7a42
Auto merge of #101 - emilio:compose, r=tomaka
Jul 5, 2016
36961b3
Update crates.io version
emilio Jul 7, 2016
bfb8076
Auto merge of #102 - servo:bump, r=glennw
Jul 7, 2016
2aa563d
Update core-graphics to 0.4
nox Aug 2, 2016
47aa7d6
Auto merge of #103 - nox:core-graphics, r=Ms2ger
Aug 2, 2016
76dd6ef
Merge upstream.
Ms2ger Aug 12, 2016
47322a1
Auto merge of #104 - servo:merge-upstream, r=emilio
Aug 12, 2016
5ce4852
Added a couple more PartialEq's
VictorKoenders Aug 17, 2016
91dc80b
Merge pull request #804 from VictorKoenders/master
tomaka Aug 18, 2016
1eb2052
Add support to Linux headless implementation for specifying OpenGL ve…
gw3583 Aug 17, 2016
bb91df4
Merge pull request #806 from glennw/osmesa
tomaka Aug 22, 2016
0d9866d
Merge remote-tracking branch 'tomaka/master' into update-osmesa
gw3583 Aug 22, 2016
af2e7cf
Auto merge of #105 - glennw:update-osmesa, r=emilio
Aug 23, 2016
f81b3e8
Bump version
gw3583 Aug 23, 2016
40f6ee2
Auto merge of #106 - glennw:bump-version, r=KiChjang
Aug 23, 2016
6089fa8
docs.rs
ozkriff Sep 5, 2016
4bfa798
Merge pull request #809 from ozkriff/docs_rs
tomaka Sep 5, 2016
74d5ae3
README.rst: docs.io -> docs.rs
ozkriff Sep 6, 2016
2c0ba47
travis: Enabled deps cache
ozkriff Sep 6, 2016
39e9502
Merge pull request #811 from tomaka/travis_cargo_cache
tomaka Sep 6, 2016
95434ea
Merge pull request #810 from tomaka/docs_io_to_rs
tomaka Sep 6, 2016
1aeb48a
Properly create a wide string for use in the call to CreateWindowExW
larsbergstrom Oct 6, 2016
0dd337c
Merge pull request #815 from larsbergstrom/fix_wgl_CreateWindow
tomaka Oct 6, 2016
fdf5713
Merge remote-tracking branch 'tomaka/master' into servo
larsbergstrom Oct 6, 2016
5e9bef3
Bump Cargo version for publish
larsbergstrom Oct 6, 2016
66a16ad
Auto merge of #107 - larsbergstrom:update_from_upstream, r=emilio
Oct 6, 2016
78cba06
linux: Disable Wayland backend because it's unusable for Servo.
emilio Oct 13, 2016
ac8b2c1
Bump version.
emilio Oct 13, 2016
01c528f
Auto merge of #108 - emilio:wayland-not-yet, r=larsbergstrom
Oct 13, 2016
f06cff7
Update image to 0.12
nox Jan 7, 2017
f6218a2
Auto merge of #110 - nox:image, r=emilio
Jan 7, 2017
7809dfb
Update core-graphics to 0.5; update minor version.
jdm Jan 19, 2017
7b0b99c
Auto merge of #111 - servo:bump-cg, r=emilio
Jan 19, 2017
0d05d22
Check for libEGL.dll
kvark Jan 19, 2017
cb653ad
Version bump to 0.6.6
kvark Jan 19, 2017
b6c63b4
Auto merge of #112 - kvark:angle_servo, r=glennw
Jan 19, 2017
58cca0d
Update cocoa dependency.
jdm Jan 20, 2017
eeb2778
Auto merge of #113 - servo:version, r=nox
Jan 20, 2017
ace7e62
return coordinates in MouseWheel events
gterzian Jan 22, 2017
943507f
Auto merge of #109 - gterzian:return_mouse_coords_in_wheel_events, r=…
Jan 22, 2017
6a138ca
Update cocoa to 0.7
nox Feb 1, 2017
326e7b8
Auto merge of #114 - nox:cocoa, r=jdm
Feb 1, 2017
cc7b2ad
Remove wayland support
mbrubeck Feb 1, 2017
3633564
Auto merge of #115 - mbrubeck:servo-no-wayland, r=glennw
Feb 2, 2017
7e057c6
Update core-graphics to 0.7
nox Feb 18, 2017
a0613a9
Auto merge of #116 - nox:core-graphics, r=larsbergstrom
Feb 18, 2017
3243a42
Android life cycle improvements
MortimerGoro Feb 28, 2017
cecec54
Auto merge of #117 - MortimerGoro:android_life_cycle, r=fabricedesre,…
Mar 6, 2017
a5b2264
Update cgl to v0.2 and README
sotaroikeda Mar 10, 2017
3cdfd7e
Auto merge of #120 - sotaroikeda:upgleam, r=kvark
Mar 14, 2017
1c9f128
macos: Map our user generated event to Event::Awakened
jrmuizel Mar 29, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ rust:
- nightly
- stable

cache: cargo

addons:
apt:
packages:
Expand All @@ -12,7 +14,6 @@ addons:

env:
global:
- secure: "FfubMXYXu2e7chvdfKBkc+aKPkvoBOb5Idg0KCYuD++qPFIBYg6pUE8H8WvU+V7RsEBu5vshhn3dzjkKs+LXIdo5PQUMZutAgy83g5SGxRn8Ra79GjBVBs6+XOEhFun/+7fGj2Ly/AK6BTDpqyYAhAUS7jIaF6/+JWNwPwEYfdQ="
- secure: "kVjHgK+6ivT5tUleNH/m6+69tPf8gkPNSPLsnXrkMJaIeXSnnKKQegP1O0UCThYAUbbwrUGlrKJUngDxkD8jSANhzAULX9t1iXho41InzYBEErTanXBYF8WO1rK1keKjLwiYw4KuvbiBoSeKabzQRwv0kMttxY57+hKVROr5dSg="

script:
Expand All @@ -24,15 +25,10 @@ os:
- osx

after_success:
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo '<meta http-equiv=refresh content=0;url=glutin/index.html>' > target/doc/index.html &&
sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo publish --token ${CRATESIO_TOKEN}

notifications:
webhooks: http://build.servo.org:54856/travis
137 changes: 33 additions & 104 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,123 +1,52 @@
[package]
name = "glutin"
version = "0.4.0"
authors = ["tomaka <pierre.krieger1708@gmail.com>"]
description = "Cross-plaform OpenGL context provider."
name = "servo-glutin"
version = "0.10.0"
authors = ["The glutin contributors, Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "Cross-platform OpenGL context provider."
keywords = ["windowing", "opengl"]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/tomaka/glutin"
documentation = "https://tomaka.github.io/glutin/"
documentation = "https://docs.rs/glutin"
build = "build.rs"

[lib]
name = "glutin"

[features]
default = ["image"]
headless = []

[dependencies]
gl_common = "0.1.0"
lazy_static = "0.1.10"
libc = "0.1"
lazy_static = "0.2.0"
libc = "0.2"
shared_library = "0.1.0"

[build-dependencies]
gl_generator = "0.1.0"
khronos_api = "0.0.8"

[dev-dependencies]
clock_ticks = "0.0.5"

[target.arm-linux-androideabi.dependencies.android_glue]
version = "0.1"

[target.i386-apple-ios.dependencies]
objc = "0.1"
gl_generator = "0.5"

[target.x86_64-apple-ios.dependencies]
objc = "0.1"

[target.aarch64-apple-ios.dependencies]
objc = "0.1"

[target.armv7s-apple-ios.dependencies]
objc = "0.1"

[target.armv7-apple-ios.dependencies]
objc = "0.1"

[target.x86_64-apple-darwin.dependencies]
objc = "0.1"
cgl = "0"
cocoa = "0.1.4"
core-foundation = "0"
core-graphics = "0"

[target.i686-pc-windows-gnu.dependencies]
winapi = "0.2"
shell32-sys = "0.1"
gdi32-sys = "0.1"
user32-sys = "~0.1.2"
kernel32-sys = "0.1"
dwmapi-sys = "0.1"
[target.'cfg(target_os = "android")'.dependencies.android_glue]
version = "0.2"

[target.i686-pc-windows-msvc.dependencies]
winapi = "0.2"
shell32-sys = "0.1"
gdi32-sys = "0.1"
user32-sys = "~0.1.2"
kernel32-sys = "0.1"
dwmapi-sys = "0.1"
[target.'cfg(target_os = "ios")'.dependencies]
objc = "0.2"

[target.x86_64-pc-windows-gnu.dependencies]
winapi = "0.2"
shell32-sys = "0.1"
gdi32-sys = "0.1"
user32-sys = "~0.1.2"
kernel32-sys = "0.1"
dwmapi-sys = "0.1"
[target.'cfg(target_os = "macos")'.dependencies]
objc = "0.2"
cgl = "0.2"
cocoa = "0.8"
core-foundation = "0.3"
core-graphics = "0.7"

[target.x86_64-pc-windows-msvc.dependencies]
[target.'cfg(target_os = "windows")'.dependencies]
winapi = "0.2"
shell32-sys = "0.1"
gdi32-sys = "0.1"
user32-sys = "~0.1.2"
kernel32-sys = "0.1"
gdi32-sys = "0.2"
user32-sys = "0.2"
kernel32-sys = "0.2"
dwmapi-sys = "0.1"

[target.i686-unknown-linux-gnu.dependencies]
osmesa-sys = "0.0.5"
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
wayland-kbd = "0.2.0"
wayland-window = "0.1.0"
x11-dl = "~2.0"

[target.x86_64-unknown-linux-gnu.dependencies]
osmesa-sys = "0.0.5"
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
wayland-kbd = "0.2.0"
wayland-window = "0.1.0"
x11-dl = "~2.0"

[target.arm-unknown-linux-gnueabihf.dependencies]
osmesa-sys = "0.0.5"
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
wayland-kbd = "0.2.0"
wayland-window = "0.1.0"
x11-dl = "~2.0"

[target.aarch64-unknown-linux-gnu.dependencies]
osmesa-sys = "0.0.5"
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
wayland-kbd = "0.2.0"
wayland-window = "0.1.0"
x11-dl = "~2.0"

[target.x86_64-unknown-dragonfly.dependencies]
osmesa-sys = "0.0.5"
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
wayland-kbd = "0.2.0"
wayland-window = "0.1.0"
x11-dl = "~2.0"

[target.x86_64-unknown-freebsd.dependencies]
osmesa-sys = "0.0.5"
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
wayland-kbd = "0.2.0"
wayland-window = "0.1.0"
x11-dl = "~2.0"
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os="dragonfly", target_os="openbsd"))'.dependencies]
osmesa-sys = "0.1.0"
x11-dl = "2.4"
image = { version = "0.12", optional = true }
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

[![](http://meritbadge.herokuapp.com/glutin)](https://crates.io/crates/glutin)

[![Docs.rs](https://docs.rs/glutin/badge.svg)](https://docs.rs/glutin)

Alternative to GLFW in pure Rust.

[![Build Status](https://travis-ci.org/tomaka/glutin.png?branch=master)](https://travis-ci.org/tomaka/glutin)
Expand All @@ -13,7 +15,7 @@ Alternative to GLFW in pure Rust.
glutin = "*"
```

## [Documentation](http://tomaka.github.io/glutin/)
## [Documentation](https://docs.rs/glutin)

## Try it!

Expand Down Expand Up @@ -43,14 +45,15 @@ fn main() {

unsafe { window.make_current() };

unsafe {
gl::load_with(|symbol| window.get_proc_address(symbol));
let gl_ = match api_type {
gl::GlType::Gl => unsafe { gl::GlFns::load_with(|s| Self::get_proc_address(s) as *const _) },
gl::GlType::Gles => unsafe { gl::GlesFns::load_with(|s| Self::get_proc_address(s) as *const _) },
};

gl::ClearColor(0.0, 1.0, 0.0, 1.0);
}
gl_.clear_color(0.0, 1.0, 0.0, 1.0);

for event in window.wait_events() {
unsafe { gl::Clear(gl::COLOR_BUFFER_BIT) };
gl_.clear(gl::COLOR_BUFFER_BIT);
window.swap_buffers();

match event {
Expand All @@ -68,7 +71,3 @@ Note that glutin aims at being a low-level brick in your rendering infrastructur
### Android

- To compile the examples for android, initialize the submodules, go to `deps/apk-builder/apk-builder` and run `cargo build`, then go back to `glutin` and call `ANDROID_HOME=/path/to/sdk NDK_HOME=/path/to/ndk NDK_STANDALONE=/path/to/standalone cargo test --no-run --target=arm-linux-androideabi`

### X11

- The plan is that glutin tries to dynamically link-to and use wayland if possible. If it doesn't work, it will try xlib instead. If it doesn't work, it will try libcaca. This is work-in-progress.
Loading