pub fn add_resources<T: FontImageApi>(
app_resources: &mut AppResources,
render_api: &mut T,
pipeline_id: &PipelineId,
add_font_resources: Vec<(ImmediateFontId, AddFontMsg)>,
add_image_resources: Vec<(ImageId, AddImageMsg)>,
)
Expand description
Submits the AddFont
, AddFontInstance
and AddImage
resources to the RenderApi.
Extends currently_registered_images
and currently_registered_fonts
by the
last_frame_image_keys
and last_frame_font_keys
, so that we don’t lose track of
what font and image keys are currently in the API.