move MediaCache rendering to render_media_cache call
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -130,3 +130,10 @@ impl MediaCache {
|
||||
&mut self.url_imgs
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: temporary...
|
||||
pub fn get_texture(textured_image: &TexturedImage) -> &TextureHandle {
|
||||
match textured_image {
|
||||
TexturedImage::Static(texture_handle) => texture_handle,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ pub use context::AppContext;
|
||||
pub use error::{Error, FilterError};
|
||||
pub use filter::{FilterState, FilterStates, UnifiedSubscription};
|
||||
pub use fonts::NamedFontFamily;
|
||||
pub use imgcache::{MediaCache, TexturedImage};
|
||||
pub use imgcache::{get_texture, MediaCache, TexturedImage};
|
||||
pub use muted::{MuteFun, Muted};
|
||||
pub use note::{NoteRef, RootIdError, RootNoteId, RootNoteIdBuf};
|
||||
pub use notecache::{CachedNote, NoteCache};
|
||||
|
||||
Reference in New Issue
Block a user