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

  • 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() or reset(). It contains everything that will be drawn and updated.
  • A model (a model is a shape). 1 model = 1 entity.
    This is what fn 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