update examples and doc comments code to reflect recent changes
This commit is contained in:
parent
cfd7d479ec
commit
1815a2236c
|
@ -48,7 +48,7 @@ impl AudioGenerator for SineWaveGenerator {
|
|||
}
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let config = DosLikeConfig::new();
|
||||
let config = DosLikeConfig::default();
|
||||
let mut system = SystemBuilder::new() //
|
||||
.window_title("Audio Playback")
|
||||
.vsync(true)
|
||||
|
|
|
@ -18,7 +18,7 @@ struct Ball {
|
|||
}
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let config = DosLikeConfig::new();
|
||||
let config = DosLikeConfig::default();
|
||||
let mut system = SystemBuilder::new() //
|
||||
.window_title("Flying Balls!")
|
||||
.vsync(true)
|
||||
|
|
|
@ -11,7 +11,7 @@ mod entities;
|
|||
mod states;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let config = DosLikeConfig::new();
|
||||
let config = DosLikeConfig::default();
|
||||
let system = SystemBuilder::new() //
|
||||
.window_title("Flying Balls")
|
||||
.vsync(true)
|
||||
|
|
|
@ -188,7 +188,7 @@ impl Game {
|
|||
}
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let config = DosLikeConfig::new();
|
||||
let config = DosLikeConfig::default();
|
||||
let system = SystemBuilder::new() //
|
||||
.window_title("Slime Stabbing Simulator")
|
||||
.vsync(true)
|
||||
|
|
|
@ -210,7 +210,7 @@ impl App {
|
|||
//////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let config = DosLikeConfig::new();
|
||||
let config = DosLikeConfig::default();
|
||||
let system = SystemBuilder::new() //
|
||||
.window_title("Complicated Template")
|
||||
.vsync(true)
|
||||
|
|
|
@ -3,7 +3,7 @@ use anyhow::Result;
|
|||
use ggdt::prelude::*;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let config = DosLikeConfig::new();
|
||||
let config = DosLikeConfig::default();
|
||||
let mut system = SystemBuilder::new() //
|
||||
.window_title("Minimal Template")
|
||||
.vsync(true)
|
||||
|
|
|
@ -296,7 +296,7 @@ where
|
|||
/// ```no_run
|
||||
/// use ggdt::prelude::*;
|
||||
///
|
||||
/// let config = DosLikeConfig::new();
|
||||
/// let config = DosLikeConfig::default();
|
||||
/// let mut system = SystemBuilder::new().window_title("Example").build(config).unwrap();
|
||||
///
|
||||
/// while !system.do_events().unwrap() {
|
||||
|
@ -311,7 +311,7 @@ where
|
|||
/// ```no_run
|
||||
/// use ggdt::prelude::*;
|
||||
///
|
||||
/// let config = DosLikeConfig::new();
|
||||
/// let config = DosLikeConfig::default();
|
||||
/// let mut system = SystemBuilder::new().window_title("Example").build(config).unwrap();
|
||||
///
|
||||
/// 'mainloop: loop {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//! ```no_run
|
||||
//! use ggdt::prelude::*;
|
||||
//!
|
||||
//! let config = DosLikeConfig::new();
|
||||
//! let config = DosLikeConfig::default();
|
||||
//! let mut system = SystemBuilder::new()
|
||||
//! .window_title("Example")
|
||||
//! .build(config)
|
||||
|
|
Loading…
Reference in a new issue