Open kyoobey opened 1 year ago
Just to make sure. Are you trying to do this for Web or are you trying to run it on macOS, Linux, Windows or similar?
linux wayland
Sigh, So many issues with Wayland :( but this is a new one. I will in the near future have a look at all the Wayland issues. I haven't implemented the Wayland support myself, but I think i will need to "take ownership" and fix the issues. I will put this on the list when I do.
If you have the possibility to test on another target and see if it behaves the same that would be much appreciated.
yesterday i was trying to fix https://github.com/wasmerio/wasmer/pull/3591 which depends on minifb, after implementing the missing async traits wasmer compiles and everything seems working on the terminal but there's no window
today i'm having a similar issue with
rhai
, here's what i've written so far:`main.rs`
```rs // logging #[macro_use] extern crate log; use fbtest::{ init_logger, timestamp, create_window, update_window, generate_frame, pixel::{Pixel, DARK_GREY, WHITE} }; use rhai::{ Engine, EvalAltResult, Locked, AST }; use std::time::Duration; const WIDTH: usize = 600; const HEIGHT: usize = 600; fn main () { init_logger(); let fps = Duration::from_millis(1000/60); let mut window = create_window(WIDTH, HEIGHT, fps, "fbtest1") .unwrap_or_else(|| unimplemented!()); let rhai = Engine::new(); let script = "40 + 2"; debug!("rhai output: {}", rhai.eval::`lib.rs`
```rs // unstable #![allow(incomplete_features)] #![feature(generic_const_exprs)] #![feature(result_option_inspect)] // logging #[macro_use] extern crate log; use rhai::{Engine, AST}; use simple_logger::SimpleLogger; // imports // use minifb::{ Window, WindowOptions }; use minifb::WindowOptions; use std::time::{ Duration, Instant }; pub fn init_logger () { SimpleLogger::new() .with_level(log::LevelFilter::Trace) .init() .expect("Couldn't initialize logger"); } pub fn timestamp () -> Instant { Instant::now() } pub fn create_window ( width: usize, height: usize, fps: Duration, name: &str ) -> Optioneven using the macros from
log
crate results in the same issue, window is not visible