Crate vera

Source
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§

Cl
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.
Input
The input of the Vera core. This is what you send when calling functions like create() or reset(). It contains everything that will be drawn and updated.
MetaInput
Model
A model (a model is a shape). 1 model = 1 entity.
This is what fn new() of specific models return.
Projection
A projection (a projection defines the frustrum inside which objects are seen).
Tf
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.
Triangle
A triangle model
Vertex
A vertex with:
View
A view (a view represents the position, direction and angle of a camera).

Enums§

Colorization
The available transformations Their doc is prefixed with their general use case: Vertex/Model, View, Projection.
Evolution
The evolution of a transformation or colorization.
Transformation
The available transformations Their doc is prefixed with their general use case: Vertex/Model, View, Projection.

Statics§

D_COLORIZATION_END_TIME
Default behaviour: Colorization end time.
D_COLORIZATION_SPEED_EVOLUTION
Default behaviour: Colorization speed evolution.
D_COLORIZATION_START_TIME
Default behaviour: Colorization start time.
D_RANDOM_VERTEX_COLOR
Default behaviour: whether or not to choose random colors for each vertex. Overrides D_VERTEX_COLOR, but not D_VERTEX_ALPHA.
D_TRANSFORMATION_END_TIME
Default behaviour: Transformation end time.
D_TRANSFORMATION_SPEED_EVOLUTION
Default behaviour: Transformation speed evolution.
D_TRANSFORMATION_START_TIME
Default behaviour: Transformation start time.
D_VERTEX_ALPHA
Default behaviour: What transparency value to give vertices.
D_VERTEX_COLOR
Default behaviour: which color to give vertices.
D_VERTEX_POSITION
Default behaviour: which position to give vertices.
VIEW
Default view matrix