[][src]Module rg3d::utils

Utilities module provides set of commonly used algorithms.

Modules

astar

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

lightmap

Module to generate lightmaps for surfaces.

log

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

navmesh

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

raw_mesh

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.

uvgen

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

Functions

into_any_arc

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

into_gui_texture

Converts engine's optional texture "pointer" to rg3d-ui's.

mesh_to_static_geometry

Small helper that creates static physics geometry from given mesh.

translate_button

Translates window mouse button into rg3d-ui mouse button.

translate_cursor_icon

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

translate_event

Translates window event to rg3d-ui event.

translate_key

Translated key code to rg3d-ui key code.

translate_keyboard_modifiers

Translates keyboard modifiers to rg3d-ui keyboard modifiers.

translate_state

Translates library button state into rg3d-ui button state.

virtual_key_code_name

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.