From 0567e86e184684ace269edad903a740e6f2f4024 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Tue, 18 Jun 2019 11:30:59 -0500 Subject: sampling test --- src/main.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0af3228..6f16771 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,12 +1,15 @@ -use ggez::{conf::Conf, event, ContextBuilder, GameResult}; +use ggez::conf::{NumSamples, WindowSetup}; +use ggez::{event, ContextBuilder, GameResult}; use pax_romana::state::State; fn main() -> GameResult { - let conf = Conf::new(); - let (ref mut context, ref mut event_loop) = ContextBuilder::new("pax-romana", "tom barrett") - .conf(conf) + .window_setup( + WindowSetup::default() + .title("pax_romana") + .samples(NumSamples::Two), + ) .add_resource_path("./resources") .build()?; -- cgit v1.2.3