Comments (20)
wayland-rs seems to be pretty good
from rust_minifb.
Are there currently API changes planned? Because Id like to restructure the code a bit to prepare for Wayland support.
from rust_minifb.
Created issue #133 for that.
from rust_minifb.
from rust_minifb.
Yeah that would be nice to add. Currently I don't have time to do it but can perhaps look into it in a month or so. How is Rust support (crates and such) for wayland in general?
from rust_minifb.
No API changes are planned right now.
from rust_minifb.
As I started writing a bit code for Wayland I wondered why minifb uses 0RGB and not ARGB - do some platforms not support the alpha channel?
from rust_minifb.
What you are showing in minifb is the "final result" so what would would the alpha channel be blended against?
from rust_minifb.
Against the colors which are behind the window as most transparent windows do it but I think this should only be the case when the window is borderless.
from rust_minifb.
I guess it can be implemented but should be off by default then. I also have no idea if all OSes support this.
from rust_minifb.
How is this to be interpreted?
https://docs.rs/minifb/0.14.0/minifb/struct.WindowOptions.html#structfield.resize
Does true mean resizing is allowed and false resizing is disallowed?
Because the default is false but I am able to resize on X11.
from rust_minifb.
That is correct. The "problem" on X11 is that it's just a hint and the OS can ignore it. What otherwise happens (on macOS and Windows) is when you hover the mouse over the lower right corner is that you can't drag and resize the window (or press some button in the window bar)
from rust_minifb.
Ok so far I got some stuff now. I mainly need to handle all input and window events now(update() and update_with_buffer() )
from rust_minifb.
cool!
from rust_minifb.
What should update_with_buffer do when the width and height are unequal to the windows size? Resize the window?
from rust_minifb.
I think the scaling code will handle that the buffer is too big but I haven't tested. Resizing will not work in some cases (like i3 for example may refuse the resize)
from rust_minifb.
Would be nice if people could test my code at this point(and maybe review the code), if there are any issues you can find.
from rust_minifb.
It would make it easier to review/comment on/etc. if it were an actual PR to this repo 😉. Good work so far!
ETA: It would also be nice to have what works and what doesn't work in the PR body so reviewers don't point out the obvious (to you).
from rust_minifb.
I saw, thank you! I'm not the most knowledgeable about Rust or Wayland, but I'll try to make some time to chime in this weekend.
from rust_minifb.
@emoon You better close this one.
from rust_minifb.
Related Issues (20)
- Fails to compile on Raspberry Pi HOT 2
- Font / text support? HOT 1
- window.set_position() has a weird behavior HOT 6
- Document features HOT 2
- X11 unsoundness when using minifb with threads HOT 2
- F10 does not work on windows HOT 12
- wasm
- 5 button mouse support and more HOT 5
- Cursor not appearing HOT 5
- Is it possible to update the window while resizing it? HOT 2
- invisible window HOT 3
- Is it possible to completely remove the title bar? HOT 1
- Upgrade wayland-client version HOT 2
- Mouse coordinates are off in fullscreen, MacOS HOT 2
- Cursor style doesn't change on MacOS HOT 2
- Window::set_title no longer works on Linux since minifb 0.24 HOT 6
- How to show image subsequently like video? HOT 6
- Support raw_window_handle HOT 3
- Window is borderless even though borderless is set to false on WSL2 HOT 1
- Windows 11 cant make window transperant. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust_minifb.