simetry 0.2.3

Interface with telemetry of various racing and driving sims
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Commands to reload textures.

use super::BROADCAST_RELOAD_TEXTURES;

const RELOAD_TEXTURES_ALL: u16 = 0;
const RELOAD_TEXTURES_CAR_IDX: u16 = 1;

/// Reload textures on all cars.
pub fn all() {
    BROADCAST_RELOAD_TEXTURES.run((RELOAD_TEXTURES_ALL, 0))
}

/// Reload only textures for the specific carIdx.
pub fn car(car_idx: u16) {
    BROADCAST_RELOAD_TEXTURES.run((RELOAD_TEXTURES_CAR_IDX, car_idx))
}