Commit graph

27 commits

Author SHA1 Message Date
Tobias Hunger
2f6be7b31f Mass-add copyright headers into Cargo.toml files 2022-01-19 11:25:21 +01:00
Tobias Hunger
2d2c560220 janitor: Remove unnecessary return statements
Some of these actually seem to make some stylistc sense
2022-01-09 13:46:33 +01:00
Tobias Hunger
3e448f75eb
janitor: Remove some unnecessary references
These are immediently dereferenced by the compiler according to clippy.

Remove some now unnecessary muts to make things build again.
2022-01-04 18:22:15 +01:00
Tobias Hunger
c89fa46b2c
janitor: Remove some redundent clone() calls 2022-01-04 18:20:24 +01:00
Simon Hausmann
7a61d22c59 Make debug_log! work on the pico by using defmt::println!
This works like the other implementations, so it will allocate on the heap, format with core::fmt
, have no compile-time switch and not print the location.

It would be nicer to forward to defmt directly, but that means the regular
formatting wouldn't work and defmt needs to be a dependency at the call site.

For more fine-grained debugging it's easier to introduce local defmt usage.
2022-01-04 16:06:00 +01:00
Olivier Goffart
cc2a06dc07 Create an EmptyDisplay of a decent size
(The mock display is just 16x16 and nt representative of screen we want to draw on)
2022-01-04 16:06:00 +01:00
Olivier Goffart
d7911f1443 MCU: handle the scale factor 2022-01-04 16:06:00 +01:00
Simon Hausmann
93a0c5bc60 Make the mcu backend compile for the pico with the st7789 driven screen
This bundles all the board specific code in the mcu crate. There's much
to do though, so this is just a rough start and when it's all done we
should probably squash this.

Since the mcu crate dependencies require nightly and our CI builds with
stable, this removes the mcu backend from the default build and the ci.
2022-01-04 16:06:00 +01:00
Simon Hausmann
8858bf8794 Change the dummy backend in the mcu backend to render into a given DrawTarget
* This requires passing the target through a thread-local (hence the corelib export
* Also fetch the background color and resize the item to match the draw target size
* The draw target is a generic and it just needs to support convertion from rgb888
2022-01-04 16:06:00 +01:00
Olivier Goffart
0f2b9f7b78 Add a dummy "device" renderer for the MCU backend
This intends to render just one frame.
2022-01-04 16:06:00 +01:00
Tobias Hunger
bfca0e3573 Mass update copyright messages to be more REUSE compliant 2021-12-22 10:06:12 +01:00
Simon Hausmann
215cf68152 Add a simple frames per second counter to the GL and Qt backend
It can be activated using the `SIXTYFPS_DEBUG_PERFORMANCE` environment
variable, which takes a comma separated list of options.

This could be extended in the future with different locations for the
overlay (corner_top_left, corner_top_right, etc.) - but this is a simple
start.

cc #728
2021-12-20 15:32:20 +01:00
Simon Hausmann
e0a942dc1c Avoid the use of symlinks for source files
On Windows 10, the creation of symlinks by normal users requires
enabling the developer mode, which may or may not be acceptable in
corporate environments with restricted IT setups.

We introduced the symlinks for the shared special key codes mapping,
which instead this patch places into a shared sixtyfps-common crate.
2021-12-13 15:51:10 +01:00
Olivier Goffart
733d4ed365 Handle more non printable key
Share the code that defines the key with a macro over all the backends using
a symlink.

This is a symlink rather than exposing the macro directly since we add this
module in every backend, and each backend re-declares the macro to handle
the part that it needs. This needs to be a symlink because it will also be shared
with the compiler that does not depends on sixtyfps-corelib
2021-12-10 11:28:09 +01:00
Lukas Jung
939b280804 Add set_mouse_cursor dummy function to mcu SimulatorWindow 2021-12-07 22:41:24 +01:00
Olivier Goffart
c964696e24 Bump winit version 2021-12-07 14:28:31 +01:00
Olivier Goffart
691d43d416 MCU backend: build with no_std 2021-11-30 21:33:32 +01:00
Olivier Goffart
6004c4ee2f Make the std feature optional in sixtyfps-rs
And tweak the MCU backend dependencie
2021-11-30 15:48:05 +01:00
ogoffart
3278b39549 Bump version number to 0.1.6 2021-11-24 14:19:09 +00:00
Olivier Goffart
3e3e98725f Fix build
apparently there was Some issue while rebasing
2021-11-22 17:57:08 +01:00
Olivier Goffart
20f41a681b MCU: Render line by line in a line buffer 2021-11-22 17:15:28 +01:00
Simon Hausmann
2753186f3a Fix CI build
Comment out unused z field in the MCU renderer
2021-11-22 14:36:12 +01:00
Olivier Goffart
6a17ae3328 MCU: Dasic support for image drawing 2021-11-22 13:51:22 +01:00
Olivier Goffart
5c9c5c2748 WIP: work on the MCU rendering engine 2021-11-22 13:51:22 +01:00
Olivier Goffart
a40885b39e MCI: small changes required to run an (empty) windows for the compiled printerdemo 2021-11-19 16:03:38 +01:00
Simon Hausmann
d539d4be79 Naive implementation of the window background item for the simulator 2021-11-19 15:02:52 +01:00
Simon Hausmann
abb423ed33 Initial commit for a new software rendering backend for use in MCUs
This adds the skeleton, including a winit driven simulator window
and a dummy ItemRenderer implementation.
2021-11-19 15:02:52 +01:00