summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2019-06-18 11:30:59 -0500
committertom barrett <spalf0@gmail.com>2019-06-18 11:30:59 -0500
commit0567e86e184684ace269edad903a740e6f2f4024 (patch)
treeaac1c236c35db06195d9866f95e2e65a56d2775d /src
parent135bb9e7c37bbb226d3c676f2d87a67648bf35cb (diff)
sampling test
Diffstat (limited to 'src')
-rw-r--r--src/main.rs11
1 files 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()?;