mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 00:56:38 +11:00
Fix spellings in blend.rs
This commit is contained in:
parent
32a8b213fb
commit
cc879a094e
1 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
||||||
//! For now a description of how blending can be used is found on [the tonc page
|
//! For now a description of how blending can be used is found on [the tonc page
|
||||||
//! for graphic
|
//! for graphic
|
||||||
//! effects](https://www.coranac.com/tonc/text/gfx.htm#ssec-bld-gba). See the
|
//! effects](https://www.coranac.com/tonc/text/gfx.htm#ssec-bld-gba). See the
|
||||||
//! [Blend] struct for all the functions to manage blend effects. You accquire
|
//! [Blend] struct for all the functions to manage blend effects. You acquire
|
||||||
//! the Blend struct through the [Display][super::Display] struct.
|
//! the Blend struct through the [Display][super::Display] struct.
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! # #![no_main]
|
//! # #![no_main]
|
||||||
|
@ -28,12 +28,12 @@ pub enum Layer {
|
||||||
Bottom = 1,
|
Bottom = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The different blend modes avaliable on the GBA
|
/// The different blend modes available on the GBA
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
pub enum BlendMode {
|
pub enum BlendMode {
|
||||||
// No blending
|
// No blending
|
||||||
Off = 0,
|
Off = 0,
|
||||||
// Aditive blending, use the [Blend::set_blend_weight] function to use this
|
// Additive blending, use the [Blend::set_blend_weight] function to use this
|
||||||
Normal = 0b01,
|
Normal = 0b01,
|
||||||
// Brighten, use the [Blend::set_fade] to use this
|
// Brighten, use the [Blend::set_fade] to use this
|
||||||
FadeToWhite = 0b10,
|
FadeToWhite = 0b10,
|
||||||
|
@ -129,7 +129,7 @@ impl Blend {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reset targers, blend weights, and fades
|
/// Reset targets, blend weights, and fades
|
||||||
pub fn reset(&mut self) -> &mut Self {
|
pub fn reset(&mut self) -> &mut Self {
|
||||||
self.reset_targets().reset_fades().reset_weights()
|
self.reset_targets().reset_fades().reset_weights()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue