mirror of
https://github.com/touchHLE/rust-sdl2.git
synced 2026-01-31 01:25:23 +01:00
add scale_mode to unsafe_textures (#1465)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user