* Wayland implementation restructuration
* Moved previous X11 code into own module
* Moved some data into a common struct between wayland and x11
* Added glue
* Moved common unix functions into module
* Revert commits
* Update x11.rs
* Update x11.rs
* Cargo fmt
* Cargo fmt
* Deprecated update_with_buffer and added a temporary (update_with_buffer_size) for now. This will later be removed and the update_with_buffer is requiring the size to bu suplied
* Reparation for 0.14 release
* Missed one case
* Minor cleanup
* Switch to C scalar for Unix + rename
Reason is so we can always use optimized scalar even in debug.
Also removed _size so only update_with_buffer(..) takes width, height of the input buffer
* Implemented AspectRatio aware scale on nix
* Implemented image center
* Added UpperLeft center mode for unix
* Moving macOS over to sized update
* Fixed resize not working on macOS
* WIP on macOS
* More WIP on macOS version
* Bunch of macOS updates and fixes
* Fixed broken bg color on macOS
* Windows fixes WIP
* Remove some spamming
* More windows fixes
* Windows fixes for cursor and warnings
* Some cleanup
* rustfmt pass
* Fixed typo
* Added support for limiting update rate
* Added update rate to Windows
* Added update rate to macOS
* Misc fixes
* Fixed resources and maintance badge
* Updated readme
* Updated changelog
* Added rate limit
* Deprecated update_with_buffer and added a temporary (update_with_buffer_size) for now. This will later be removed and the update_with_buffer is requiring the size to bu suplied
* Reparation for 0.14 release
* Missed one case
* Added support for raw-window-handle
Ref #104
* Fixed some typos
* Fixed more typos
* windows fix
* Another windows fix
* Another typo
* More typos
* More windwos fixes
* Yet anonther Windows fix
Currently we interned WM_DELETE_WINDOW but does not call
XSetWMProtocols to listen to it, causing a fatal error when
closing the window by clicking "X". This patch fixes the issue.
* x11-rs : don't build libminifb_native.a
* x11-rs : commented out all calls to the mfb_xxx functions.
* x11-rs : added handle field to Window, type is xlib::Window.
Also implemented the get_window_handle() method.
* x11-rs : created a DisplayInfo struct with a setup() method.
* x11-rs : fleshed out DisplayInfo::setup() method some more.
* x11-rs : updated Cargo.toml to require x11_dl "2.16".
That is because we need the XContext type, which seems to be
unavailable in the 2.14 version.
* x11-rs : code to call the XCreateWindow() function.
* x11-rs : call XMapRaise() and XFlush() on our window.
* x11-rs : more work on Window::new() -- ported more stuff from mfb_open().
* x11-rs : create the 'ximage' field in Window::new().
* x11-rs : removed SharedData struct, moved fields into Window.
* x11-rs : ported the set_window_title() method.
* x11-rs : ported creating a "draw_buffer" and the 1:1 scaling code.
* x11-rs : ported the scale_2x() function.
* x11-rs : ported the scale_4x() function.
* x11-rs : ported the set_position() method.
* x11-rs : ported the mfb_close() code, i.e. Drop trait on a Window.
* x11-rs : tidied up code computing "scale" value for a new window.
* x11-rs : implemented Drop trait for DisplayInfo.
* x11-rs : updated the get_scroll_wheel() method.
* x11-rs : tidy up update_with_buffer() and check buffer size.
* x11-rs : ported the check_formats() code.
* x11-rs : ported the init_cursors() code.
* x11-rs : ported the set_cursor_style() code.
* x11-rs : ported the raw_get_mouse_pos() code.
* x11-rs : moved the code implementing Drop trait for Window.
* x11-rs : ported the basic event loop (i.e. raw_process_events).
* x11-rs : ported code handling the WM_DELETE_WINDOW client message.
* x11-rs : added code file "src/os/unix/key_mapping.rs"
This file contains code to map an X keysym to a Unicode char,
which is done via a binary search on a large table. I ported
the code to Rust and rewrote the binary search as a recursive
function.
* x11-rs : ported the XkbQueryExtension() code.
* x11-rs : fleshed out the process_key() code.
* x11-rs : added test code for keysym_to_unicode(), fixed a table entry.
* x11-rs : another test value for the key_mapping test code.
* x11-rs : ported the update_key_state() code.
* x11-rs : ported the char_callback() code.
* x11-rs : ported the mouse button handling code.
* x11-rs : ported code handling the XConfigureNotify event.
* x11-rs : code tidying, silence most compiler warnings.
* x11-rs : removed the native C code: X11MiniFB.c
* x11-rs : fixed bug in the button handling code.
* x11-rs : made the scale_2x() and scale_4x() code faster.
* merge error
* whitespace
* fix cursors: bad string handling
* upgrade x11-dl
* merge scaling implementations
* multi-window example
* Remove duplicate windows dependencies in favor of cfg attribute
* Replace user32 with winuser from winapi
* More replacements from winapi-rs
* Fix remaining type imports
* Remove user32, kernel32 and gdi32 sys crates
Everything comes from winapi-rs now.
* Specify only the features of winapi-rs we need
* Remove star glob imports
This helps the check_buffer_size run against the actual
window size, which stops us from segfaulting if the
window size has changed unexpectedly, e.g. because a
window manager is evil.
commit 2d8e0c1692120e9997bd8d376be8a7cc2536429d
Author: Daniel Collin <daniel@collin.com>
Date: Tue Oct 23 20:51:09 2018 +0200
Bump to 0.11 and added info about macOS Metal
commit 0f77968317194f2f72b86da287c04484aeee762a
Author: Daniel Collin <daniel@collin.com>
Date: Sun Oct 21 17:44:26 2018 +0200
Tripple buffer textures
commit d268c10576c7e9063bd4605aed4a939d956eeb6b
Author: Daniel Collin <daniel@collin.com>
Date: Sun Oct 21 16:59:20 2018 +0200
Some cleanup
commit 5544773e62afec6f69d0c3b6309e60a543905fef
Author: Daniel Collin <daniel@collin.com>
Date: Sun Oct 21 16:24:45 2018 +0200
Working but no proper sync yet
commit 843a6625cfddac5a6e2d8e61170f796e763e4002
Author: Daniel Collin <daniel@collin.com>
Date: Sun Oct 21 15:26:45 2018 +0200
Working texture
commit 1d4446f1f10c497dde07e0d20c92eb8bb6f836ec
Author: Daniel Collin <daniel@collin.com>
Date: Sun Oct 21 14:45:52 2018 +0200
Removed vertex data
We construct this in the shader instead
commit 2e8027d73a1635e26e412dbda6494193fd04a060
Author: Daniel Collin <daniel@collin.com>
Date: Sun Oct 21 14:42:36 2018 +0200
Fullscreen triangle setup
commit 5efd974704c11577944ffdeff9eb9dd4fa40bde0
Author: Daniel Collin <daniel@collin.com>
Date: Sun Oct 21 14:16:23 2018 +0200
Triangle on screen
commit d9cf4eb7557f73adfbe1764f3da94a837a4ef8d3
Author: Daniel Collin <daniel@collin.com>
Date: Sun Oct 21 12:17:04 2018 +0200
Some hacky metal with clear screen
* Add missing `Debug` impls to public types
In one case, a missing Clone and Copy impl was added, too.
* Remove several `doc(hidden)` & make some modules private
I'm not quite sure why it was done the way it was. This change makes
items that were used in the public API visible in the documentation. It
also makes modules not used in the public API private.
* Add `#![deny(missing_debug_implementations)]` to crate root
This is so when typing input on the keyboard characters may not match the layout in non-english for example. Currently Mac has been implemented to support this.
commit 53e9cd45567a1308fdbd2e46763e15b2a3fa3d4c
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 18:31:38 2016 +0100
Correct header for v0.4.0
commit fcf64d5dfad0796fee16ce8985e66d1b3e82c5a4
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 18:30:12 2016 +0100
More cleanup
commit b7f4b187569a753656f19a74b78d8ada3fd95b70
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 18:29:23 2016 +0100
Minor cleanup
commit 7392cd4a5aaad7f0d8332082c75d6cbc41d50ca6
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 18:28:06 2016 +0100
Updated example added Changelog link
commit 236a82883a68e576ceb1e38a54b0a18fdc2e4465
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 18:24:58 2016 +0100
Updated readme
commit e6bc68721513ca66c5566a19e6bfad33875b3280
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 18:20:42 2016 +0100
Doc fixes
commit edfd688f045764b66c944d4aa616c6d48246816d
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 18:20:35 2016 +0100
Updated with 0.4.0 release info
commit 784628fa9a1de93280592e634b522fd916a7588a
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 15:45:37 2016 +0100
Fixed bad comment
commit 2c6d8730b566193b573afb5dc95a82987d1c4ce4
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 15:37:52 2016 +0100
Linux support for WindowOptions
commit cbf7c17c3a92d676f5707095781071016e8b90e1
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 15:05:10 2016 +0100
Updated Windows version with WindowOptions
commit ed1254245384e3e64c082a8368cbbe4a9f679efa
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 14:32:04 2016 +0100
Added get_window_handle
commit e4a15f98c70facda7e7b2f30ba95a42091fa078c
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 14:30:34 2016 +0100
Cleanup + links
commit 7dadb090d1037eade525093e2a541c99940e6a3a
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 14:25:41 2016 +0100
And again
commit 70bdb0f88812e12bf9ca9adc55c1e52cc36c3ef9
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 14:24:44 2016 +0100
Try link again
commit b4b7b3c4cda1d958e8f9cf6a2418db68ac32bcc5
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 14:21:54 2016 +0100
Some cleanup
commit fb9845bae37f6ce9ba309b8a57128ce8c426fbca
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 13:16:23 2016 +0100
Renamed resizeable to resize
commit 89c5af826612dbd887855dca3937e99856c9fcf2
Author: Daniel Collin <daniel@collin.com>
Date: Sun Jan 31 12:59:57 2016 +0100
Working on making Windows a bit more generic
* Added WindowOptions that can configure how the Window should look and behave better (resize, title, borderless)
* Renamed update -> update_with_buffer
* Added update which doesn't take a buffer (used to updated the window without buffers)
On some system it seems that the stack is quite small so now we heap
allocate the buffer instead. Also updated the docs and examples using
that instead of being on the stack. Bumped version to 0.2.4
Closes#8
* Removed resizing of window as that isn't supported
* Fixed issue that content view would be too small and top of window wouldn't be visible
* Removed some code that isn't needed
Bump lib version to 0.2.3