Graphic utility library based on wgpu.
This crate is independent from other truck crates except
It provides an API that allows users to handle drawing elements in a unified manner.
By implementing the
Rendered trait, developers can define
their own rendering elements and have them rendered in
in the same way as other rendering elements provided by truck.
This documentation is intended to be read by two kinds of people: users and developers. Users, those who just want to draw the shape of an existing mesh or boundary representation, will only use:
If you are a developer, who wants to try out new
visual representations, you can implement Rendered in your own structure and standardize it in
a form that can be used by users in
The sample code in this crate is for developers.
Users may wish to refer to the one in
safe handler of GPU buffer
The unique ID for
the kinds of light sources: point or uniform
the projection type of camera
Rendered objects in the scene.