summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 1ec6d65..3c08f82 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -17,7 +17,14 @@ use engine::renderer::opengl::Extension as OpenglRendererExtension;
use engine::shader::Program as ShaderProgram;
use engine::transform::Transform;
use engine::vector::Vec3;
-use engine::window::{CursorMode, Extension as WindowExtension, Window};
+use engine::window::{
+ Builder as WindowBuilder,
+ CreationHint as WindowCreationHint,
+ CreationHintValue as WindowCreationHintValue,
+ CursorMode,
+ Extension as WindowExtension,
+ Window,
+};
use engine::Engine;
use tracing::Level;
use tracing_subscriber::FmtSubscriber;
@@ -99,9 +106,12 @@ fn main() -> Result<(), Box<dyn Error>>
engine.add_extension(OpenglRendererExtension::default());
engine.add_extension(
- WindowExtension::default()
- .window_title("Game")
- .window_size(WINDOW_SIZE),
+ WindowExtension::new(WindowBuilder::default().creation_hint(
+ WindowCreationHint::Samples,
+ WindowCreationHintValue::Number(8),
+ ))
+ .window_title("Game")
+ .window_size(WINDOW_SIZE),
);
engine.add_extension(FlyCameraExtension(FlyCameraOptions {