fschutt/azul

How to use the calculator.rs?

kw-andy opened this issue · 3 comments

I'm trying to use the calculator.rs but there is nothing explicitly written in the file. Is there something like a README.md on how to use it?

Thank you.

I believe rust default would be cargo run --example calculator.

But i am not able to run it - it crashes.

────────────────Unexpected fatal error───────────────────┐
│ An unexpected panic ocurred, the program has to exit.   │
│ Please report this error and attach the log file found  │
│ in the directory of the executable.                     │
│                                                         │
│ The error ocurred in:                                   │
│ cargo/azul/../../examples/calculator/calculator.rs at   │
│ line 400 in thread main
│                                                         │
│ Error information:                                      │
│ called on an value: NoAvailablePixelFormat              │
│                                                         │
│ Backtrace:                                              │
│                                                         │
│ azul::logging::set_up_panic_hooks::panic_fn @           │

It would be:

cd examples && cargo run --release --bin calculator

@genofire This is likely a problem with your graphics drivers. Right now software rendering is not possible, so rendering will fail if the graphics drivers are too old.

Ty for the answers.