Commit graph

5 commits

Author SHA1 Message Date
Antoine Martin a9fd726a0d library: document shape module 2020-03-23 12:44:17 +01:00
Bruno BELANYI 05fb6601b2 library: use enum_dispatch on Object related trait
This allows for easier testing (notable allowing for comparisons),
better performance (thanks to inlining instead of vtable indirection),
and should ease the deserialization of `Material`, `Shape`, and
`Texture` traits. This should allow `Object` to be deserialized easily.
2020-03-18 15:24:09 +01:00
Bruno BELANYI ccc9eaf423 library: shape: triangle: add deserialization 2020-03-18 14:46:30 +01:00
Bruno BELANYI 7112873715 library: replace super::super by crate import
Done with the following shell command:
`sed -e 's/super::super/crate/' -i $(git grep -l super::super)`.

Followed by a `cargo fmt --all`.
2020-03-17 20:49:30 +01:00
Bruno BELANYI 8d6d4cf7d7 library: shape: add Triangle implementation 2020-03-16 22:22:13 +01:00