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<()> {
|
fn main() -> Result<()> {
|
||||||
let config = DosLikeConfig::new();
|
let config = DosLikeConfig::default();
|
||||||
let mut system = SystemBuilder::new() //
|
let mut system = SystemBuilder::new() //
|
||||||
.window_title("Audio Playback")
|
.window_title("Audio Playback")
|
||||||
.vsync(true)
|
.vsync(true)
|
||||||
|
|
|
@ -18,7 +18,7 @@ struct Ball {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
let config = DosLikeConfig::new();
|
let config = DosLikeConfig::default();
|
||||||
let mut system = SystemBuilder::new() //
|
let mut system = SystemBuilder::new() //
|
||||||
.window_title("Flying Balls!")
|
.window_title("Flying Balls!")
|
||||||
.vsync(true)
|
.vsync(true)
|
||||||
|
|
|
@ -11,7 +11,7 @@ mod entities;
|
||||||
mod states;
|
mod states;
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
let config = DosLikeConfig::new();
|
let config = DosLikeConfig::default();
|
||||||
let system = SystemBuilder::new() //
|
let system = SystemBuilder::new() //
|
||||||
.window_title("Flying Balls")
|
.window_title("Flying Balls")
|
||||||
.vsync(true)
|
.vsync(true)
|
||||||
|
|
|
@ -188,7 +188,7 @@ impl Game {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
let config = DosLikeConfig::new();
|
let config = DosLikeConfig::default();
|
||||||
let system = SystemBuilder::new() //
|
let system = SystemBuilder::new() //
|
||||||
.window_title("Slime Stabbing Simulator")
|
.window_title("Slime Stabbing Simulator")
|
||||||
.vsync(true)
|
.vsync(true)
|
||||||
|
|
|
@ -210,7 +210,7 @@ impl App {
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
let config = DosLikeConfig::new();
|
let config = DosLikeConfig::default();
|
||||||
let system = SystemBuilder::new() //
|
let system = SystemBuilder::new() //
|
||||||
.window_title("Complicated Template")
|
.window_title("Complicated Template")
|
||||||
.vsync(true)
|
.vsync(true)
|
||||||
|
|
|
@ -3,7 +3,7 @@ use anyhow::Result;
|
||||||
use ggdt::prelude::*;
|
use ggdt::prelude::*;
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
let config = DosLikeConfig::new();
|
let config = DosLikeConfig::default();
|
||||||
let mut system = SystemBuilder::new() //
|
let mut system = SystemBuilder::new() //
|
||||||
.window_title("Minimal Template")
|
.window_title("Minimal Template")
|
||||||
.vsync(true)
|
.vsync(true)
|
||||||
|
|
|
@ -296,7 +296,7 @@ where
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// use ggdt::prelude::*;
|
/// use ggdt::prelude::*;
|
||||||
///
|
///
|
||||||
/// let config = DosLikeConfig::new();
|
/// let config = DosLikeConfig::default();
|
||||||
/// let mut system = SystemBuilder::new().window_title("Example").build(config).unwrap();
|
/// let mut system = SystemBuilder::new().window_title("Example").build(config).unwrap();
|
||||||
///
|
///
|
||||||
/// while !system.do_events().unwrap() {
|
/// while !system.do_events().unwrap() {
|
||||||
|
@ -311,7 +311,7 @@ where
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// use ggdt::prelude::*;
|
/// use ggdt::prelude::*;
|
||||||
///
|
///
|
||||||
/// let config = DosLikeConfig::new();
|
/// let config = DosLikeConfig::default();
|
||||||
/// let mut system = SystemBuilder::new().window_title("Example").build(config).unwrap();
|
/// let mut system = SystemBuilder::new().window_title("Example").build(config).unwrap();
|
||||||
///
|
///
|
||||||
/// 'mainloop: loop {
|
/// 'mainloop: loop {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! use ggdt::prelude::*;
|
//! use ggdt::prelude::*;
|
||||||
//!
|
//!
|
||||||
//! let config = DosLikeConfig::new();
|
//! let config = DosLikeConfig::default();
|
||||||
//! let mut system = SystemBuilder::new()
|
//! let mut system = SystemBuilder::new()
|
||||||
//! .window_title("Example")
|
//! .window_title("Example")
|
||||||
//! .build(config)
|
//! .build(config)
|
||||||
|
|
Loading…
Reference in a new issue