Expand description
Crate root.
Contains modifyable global variables (inside unsafe blocks) to choose Default behaviours. These variables start with D_
.
Everything further in this crate is reexported to this level.
Don’t
DO NOT modify/read these global variables simutaneously on different threads.
Most likely, don’t bother creating several threads at all. The Vera core crate will do the performance job.
In case you really want multithreading: some function modify/read these variables, but aren’t unsafe
to simplify scripting. Check the docs of the functions you use to know which ones you should be careful with.
Structs
- Data for the transformation of a single vertex or shape. You can have several transformations happening simultaneously, but the order of the transformations is likely important.
- The input of the Vera core. This is what you send when calling functions like
create()
orreset()
. It contains everything that will be drawn and updated. - A model (a model is a shape). 1 model = 1 entity.
This is whatfn new()
of specific models return. - A projection (a projection defines the frustrum inside which objects are seen).
- Data for the transformation of a single vertex or shape. You can have several transformations happening simultaneously, but the order of the transformations is likely important.
- A triangle model
- A vertex with:
- A view (a view represents the position, direction and angle of a camera).
Enums
- The available transformations Their doc is prefixed with their general use case: Vertex/Model, View, Projection.
- The evolution of a transformation or colorization.
- The available transformations Their doc is prefixed with their general use case: Vertex/Model, View, Projection.
Statics
- Default behaviour: Colorization end time.
- Default behaviour: Colorization speed evolution.
- Default behaviour: Colorization start time.
- Default behaviour: whether or not to choose random colors for each vertex. Overrides
D_VERTEX_COLOR
, but notD_VERTEX_ALPHA
. - Default behaviour: Transformation end time.
- Default behaviour: Transformation speed evolution.
- Default behaviour: Transformation start time.
- Default behaviour: What transparency value to give vertices.
- Default behaviour: which color to give vertices.
- Default behaviour: which position to give vertices.
- Default view matrix