fn _flyweight_generate_flyweight_images(
    big_resource_id: usize,
    num_flyweights: usize,
    image_width: usize,
    image_height: usize,
    display_width: usize,
    display_height: usize,
    image_list: &mut Vec<FlyweightImage>
)
Expand description

Helper function to generate the specified number of FlyweightImage struct instances and associate those objects with individual contexts and a single big resource.

The image and display sizes are provided so as to randomize the position of each flyweight within the display.