1 2 3 4 5 6 7 8 9 10
use crate::texture::WrapMode; pub fn to_gl(v: WrapMode) -> u32 { match v { WrapMode::Clamp => glow::CLAMP_TO_EDGE, WrapMode::ClampZero => glow::CLAMP_TO_BORDER, WrapMode::Repeat => glow::REPEAT, WrapMode::MirroredRepeat => glow::MIRRORED_REPEAT, } }