logo

Module rg3d::utils[][src]

Expand description

Utilities module provides set of commonly used algorithms.

Modules

Contains classic A* (A-star) path finding algorithms.

Everything related to AI behavior and behavior trees.

Module to generate lightmaps for surfaces.

Simple logger, it writes in file and in console at the same time.

Contains all structures and methods to create and manage navigation meshes (navmesh).

Raw mesh is a procedural mesh builder, all you can do with it is to insert vertices one-by-one and it will automatically build faces by skipping duplicated vertices. Main usage of it - optimize “triangle soup” into mesh so adjacent faces will have shared edges. Raw mesh itself does not have any methods, it is just a final result of RawMeshBuilder.

UV Map generator. Used to generate second texture coordinates for lightmaps.

Functions

“Transmutes” array of any sized type to a slice of bytes.

Performs hashing of a sized value by interpreting it as raw memory.

Helper function to convert Option<Arc> to Option<Arc>.

Converts engine’s optional texture “pointer” to rg3d-ui’s.

Translates window mouse button into rg3d-ui mouse button.

Translates cursor icon from rg3d-ui library to glutin format.

Translates window event to rg3d-ui event.

Translated key code to rg3d-ui key code.

Translates keyboard modifiers to rg3d-ui keyboard modifiers.

Translates library button state into rg3d-ui button state.

“Transmutes” value of any sized type to a slice of bytes.

Maps key code to its name. Can be useful if you making adjustable key bindings in your game and you need quickly map key code to its name.