Giter VIP home page Giter VIP logo

Comments (20)

emersion avatar emersion commented on May 18, 2024 4

wayland-rs seems to be pretty good

from rust_minifb.

nifker avatar nifker commented on May 18, 2024 1

Are there currently API changes planned? Because Id like to restructure the code a bit to prepare for Wayland support.

from rust_minifb.

nifker avatar nifker commented on May 18, 2024 1

Created issue #133 for that.

from rust_minifb.

nifker avatar nifker commented on May 18, 2024 1

@cole-h Just created it. #141

from rust_minifb.

emoon avatar emoon commented on May 18, 2024

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.

emoon avatar emoon commented on May 18, 2024

No API changes are planned right now.

from rust_minifb.

nifker avatar nifker commented on May 18, 2024

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.

emoon avatar emoon commented on May 18, 2024

What you are showing in minifb is the "final result" so what would would the alpha channel be blended against?

from rust_minifb.

nifker avatar nifker commented on May 18, 2024

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.

emoon avatar emoon commented on May 18, 2024

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.

nifker avatar nifker commented on May 18, 2024

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.

emoon avatar emoon commented on May 18, 2024

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.

nifker avatar nifker commented on May 18, 2024

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.

emoon avatar emoon commented on May 18, 2024

cool!

from rust_minifb.

nifker avatar nifker commented on May 18, 2024

What should update_with_buffer do when the width and height are unequal to the windows size? Resize the window?

from rust_minifb.

emoon avatar emoon commented on May 18, 2024

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.

nifker avatar nifker commented on May 18, 2024

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.

cole-h avatar cole-h commented on May 18, 2024

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.

cole-h avatar cole-h commented on May 18, 2024

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.

nifker avatar nifker commented on May 18, 2024

@emoon You better close this one.

from rust_minifb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.