-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
Depends on PistonDevelopers/texture#32.
Change Texture into:
pub struct Texture {
pub texture: Texture2d,
pub min_filter: MinifySamplerFilter,
pub mag_filter: MagnifySamplerFilter,
}- Map
TextureSettings::get_magforMagnifySamplerFilter - Add a function that maps
TextureSettings::get_generate_mipmaps,TextureSettings::get_minandTextureSettings::get_mipmapforMinifySamplerFilter - If
TextureSettings::get_generate_mipmapsistrue, call Texture2d::with_mipmaps - In the impl of
Graphics::tri_list_uv, use .sampled() to set.mag_filterand.min_filter.