Commit Graph
23 Commits
Author SHA1 Message Date
Wez Furlong 41e392fc79 we can now init opengl but not render it 2019-10-10 08:15:00 -07:00
Wez Furlong 89a0046f5a window: A basic opengl capability 2019-10-07 07:17:57 -07:00
Wez Furlong 91e6bb4a5a rustfmt 2019-09-29 12:29:34 -07:00
Wez Furlong 99579bfca2 make it possible to build async example on stable rust
This should make the CI a bit happier
2019-09-28 22:00:07 -07:00
Wez Furlong 950a7d2b22 cargo fix dyn 2019-09-28 20:29:48 -07:00
Wez Furlong b0dd3a3803 fixup basic example for Point changes 2019-09-23 08:01:27 -07:00
Wez Furlong 6d902d8a39 introduce a Rect type 2019-09-21 00:19:31 -07:00
Wez Furlong bdc634276d plumbing for polling std::future::futures on macos 2019-09-15 19:09:08 -07:00
Wez Furlong e98b29aec6 add apply function to safely access inner data 2019-09-15 19:09:08 -07:00
Wez Furlong 0b7556893d bunch of plumbing to allow using new window layer as software rendered frontend 2019-09-15 19:09:08 -07:00
Wez Furlong c54d3b55be prove that spawning additional windows works 2019-09-15 19:09:08 -07:00
Wez Furlong dff8e1e652 introduce WindowContext for manipulating the window in a callback 2019-09-15 19:09:08 -07:00
Wez Furlong e6265c93a4 add arbitrary line drawing with anti-aliasing 2019-09-15 19:09:08 -07:00
Wez Furlong e371e0385d x11: mouse cursors 2019-09-15 19:09:08 -07:00
Wez Furlong f8f470ab1d add mouse event processing for windows 2019-09-15 19:09:08 -07:00
Wez Furlong 05a60e6e8b plumb keyboard events for x11 2019-09-15 19:09:08 -07:00
Wez Furlong b9b94aa516 add resize callback 2019-09-15 19:09:08 -07:00
Wez Furlong 56dc24a1ee hook up paint method for x11 2019-09-15 19:09:08 -07:00
Wez Furlong ee203b0b76 improve lifecycle management on macos
I'm not totally convinced that the refcounting is right
because I've not seen `dealloc` get triggered, but the
important thing is that closing the window does cause the
rust level objects to be dropped.
2019-09-15 19:09:08 -07:00
Wez Furlong dc6ef6c55d basic xcb windows too 2019-09-15 19:09:08 -07:00
Wez Furlong ddd323464b refactor traits to top level 2019-09-15 19:09:08 -07:00
Wez Furlong 3b572cb35e add window callback trait 2019-09-15 19:09:08 -07:00
Wez Furlong 276041a1db add very basic win32 window creation 2019-09-15 19:09:08 -07:00