Function xplm::draw::generate_texture_numbers

source ·
pub fn generate_texture_numbers(numbers: &mut [i32])
Expand description

Generates texture numbers in a range not reserved for X-Plane.

This function should be used instead of glGenTextures.

Texture IDs are placed in the provided slice. If the slice contains more than i32::max_value() elements, no more than i32::max_value() texture IDs will be generated.