add scale_mode to unsafe_textures (#1465)

This commit is contained in:
John Giorshev
2025-03-05 08:25:25 -05:00
committed by GitHub
parent d6de6b2015
commit 9f97c166d6

View File

@@ -2788,6 +2788,18 @@ impl Texture {
InternalTexture { raw: self.raw }.color_mod()
}
/// Sets the scale mode for use when rendered.
#[inline]
pub fn set_scale_mode(&mut self, scale: ScaleMode) {
InternalTexture { raw: self.raw }.set_scale_mode(scale)
}
/// Gets the scale mode for use when rendered.
#[inline]
pub fn scale_mode(&self) -> ScaleMode {
InternalTexture { raw: self.raw }.scale_mode()
}
/// Sets an additional alpha value multiplied into render copy operations.
#[inline]
pub fn set_alpha_mod(&mut self, alpha: u8) {