Commit Graph

107 Commits

Author SHA1 Message Date
Drakulix a527456ba6 Fixup drm backends for egl hardware-acceleration
- Decouple DrmBackend and DrmDevice through Weak references
- Move EGL-WlBuffer related functionality into it's own trait
- Impl new trait by every struct that can theoretically bind the display although it is no rendering target (no EGLGraphicsBackend), e.g. DrmDevice
- Move texture binding into own struct `EGLDisplay` created by `bind_wl_display` that can be passed around freely
- Add device num to DrmDevice for HashMap storage
- Fixup and enable acceleration on drm and udev examples made possible by the previous changes.
2018-01-05 20:04:46 +01:00
Drakulix 6c6d54064d Get it to work... 2017-12-28 15:30:53 +01:00
Drakulix 5d7e96103d Rework EGL module 2017-12-24 14:29:45 +01:00
Drakulix 5c846d550c Start EGL wl_buffer image retrieval 2017-12-24 14:12:51 +01:00
Drakulix 943b59a107 Spawn weston-terminal in udev example on keycode 2017-12-21 17:56:16 +01:00
Drakulix 5f59ded3f0 Fix udev example 2017-12-07 15:20:33 +01:00
Drakulix ae5df5039d Fix drm example and tests 2017-12-03 22:33:21 +01:00
Drakulix 0350dca972 Automatically add udev backend to the event loop store 2017-11-29 22:28:14 +01:00
Drakulix ed04f2d293 Clarify comment 2017-11-29 22:28:14 +01:00
Drakulix 606efebe1b Remove unnecessary mutexes 2017-11-29 22:28:14 +01:00
Drakulix cd27436470 Use xkb for a nice shutdown command 2017-11-29 22:28:14 +01:00
Drakulix 96bb3570ba Get input working 2017-11-29 22:28:14 +01:00
Drakulix c7682e77de Udev backend 2017-11-29 22:28:13 +01:00
Victor Berger c31d966fd4 Upgrade wayland-server to 0.12 2017-11-03 17:31:51 +01:00
William W Wold 291ba17a5c added scroll events to pointer and winit demo 2017-10-15 16:29:29 +02:00
Victor Berger 8934bf19dc examples: add output to winit example 2017-10-01 22:47:30 +02:00
Drakulix 51886fbf00 Update to stable drm-rs version 2017-10-01 22:25:52 +02:00
Victor Berger 2fbb45273f cargo fmt 2017-09-30 12:05:28 +02:00
Victor Berger 15ce7134fc Move wayland utilities to their own module. 2017-09-29 17:24:20 +02:00
Victor Berger 5a0713feb9 Fix winit backend on wayland
We were trying to swap_buffers while the xdg_surface had not been
configured yet, which is a protocol error.
2017-09-29 17:22:19 +02:00
Victor Berger da3983856b fix examples 2017-09-22 18:49:58 +02:00
Victor Berger cfb388561f examples: reduce warnings 2017-09-22 15:00:29 +02:00
Victor Berger 4b4097d56d examples: input for winit 2017-09-22 14:58:20 +02:00
Victor Berger e6eb03c184 examples: introduce window_map 2017-09-22 14:56:59 +02:00
Drakulix 7f45283759 cargo fmt 2017-09-21 20:50:10 +02:00
Drakulix 74b56e6de2 Fix examples 2017-09-21 20:31:51 +02:00
Drakulix d2617becbf Fix drm doc test and Deref impl 2017-09-21 19:05:59 +02:00
Drakulix 518f7dbdfc Store DrmBackend in EventLoop state 2017-09-20 19:48:58 +02:00
Drakulix 0758ec98ba Fix the drm backend for wayland-rs 0.10 2017-09-20 17:09:37 +02:00
Drakulix d3fca34475 Do a better job at finding a crtc in the example 2017-09-20 15:52:47 +02:00
Drakulix 660080c45d drm: Refine drm example commentary 2017-09-20 15:51:39 +02:00
Drakulix 73d262e292 drm: reformat 2017-09-20 15:51:39 +02:00
Drakulix 0698775153 drm: Introduce the Drm Backend
- new backend rendering via egl via gbm directly on a drm device
- refine EGLContext and EGLSurface dependencies through lifetimes
- fixup the old winit backend to work with these changes
- add new example using the drm backend instead
- change GliumDrawer to be static for the drm example
2017-09-20 15:50:14 +02:00
Victor Berger 0de5694a18 Update example to new API 2017-09-20 15:03:58 +02:00
Victor Berger 33272a2275 Update example to have weston-terminal not crashing 2017-09-08 17:25:36 +02:00
Victor Berger eeb6373ded Silence example warnings. 2017-09-06 16:33:35 +02:00
Victor Berger 30c0628959 examples: randomise window location in simple.rs 2017-09-05 21:23:40 +02:00
Victor Berger aab56047f0 Update example to use shell global 2017-09-05 21:09:50 +02:00
Victor Berger 88773cf1b3 cargo fmt 2017-09-05 19:51:05 +02:00
Victor Berger 5c46ba73e9 compositor: rework roles 2017-09-04 13:15:20 +02:00
Victor Berger 4f6a852652 cargo fmt 2017-06-23 15:40:28 +02:00
Victor Berger 9d2f03943e replace unsafe impls from wayland-server with declare_handler macro 2017-06-23 15:24:23 +02:00
Victor Berger c2c5716524 example: use Texture2d to have correct gamma correction
This mimicks what weston does.
2017-06-23 15:24:23 +02:00
Victor Berger d475435fcb cargo fmt 2017-06-23 15:24:23 +02:00
Victor Berger a487c5963a compositor: TraversalAction for tree traversal 2017-06-23 15:20:09 +02:00
Victor Berger 19634f30ed example: actually draw some windows! 2017-06-23 15:20:09 +02:00
Victor Berger bf9ee9a395 cargo fmt 2017-06-23 15:20:09 +02:00
Victor Berger 712fc5b8b8 examples: improve simple.rs 2017-06-23 15:20:09 +02:00
Drakulix 206007f5a5 rustfmt 0.9 update 2017-06-20 11:31:18 +02:00
Drakulix e28b237c16 Fix example formatting 2017-06-02 16:21:29 +02:00
Drakulix ca5076a453 Provide a little more fleshed out and working example 2017-06-02 15:32:20 +02:00
Drakulix b2f7d6fbfc rustfmt example 2017-05-21 22:51:38 +02:00
Drakulix 5bc641852f Bugfixes 2017-05-21 22:40:15 +02:00
Drakulix a0b8f53e03 Fix example formatting 2017-03-20 15:53:45 +01:00
Drakulix ae375624ac Fix formatting 2017-03-20 14:33:27 +01:00
Drakulix 369c8a980e Updated example 2017-03-19 21:56:10 +01:00
Drakulix ec8149b084 Initial glutin backend implementation 2017-03-14 19:34:48 +01:00