diff options
author | HampusM <hampus@hampusmat.com> | 2024-11-24 22:21:37 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-11-24 22:21:37 +0100 |
commit | 9efd77d8ad4ab51f3df588a188c4bbda4001258b (patch) | |
tree | 59eed7b1cab43f563e47d9c98e7cf053c44a735e /src/main.rs | |
parent | 1bc47aff63fdd81c3ddf1e2c2a718fc5d5330fed (diff) |
chore: set window multisampling sample count with new function
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs index 9405abe..efe422c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,8 +22,6 @@ use engine::transform::Position; use engine::vector::Vec3; use engine::window::{ Builder as WindowBuilder, - CreationHint as WindowCreationHint, - CreationHintValue as WindowCreationHintValue, CursorMode, Extension as WindowExtension, Window, @@ -106,12 +104,9 @@ fn main() -> Result<(), Box<dyn Error>> engine.add_extension(OpenglRendererExtension::default()); engine.add_extension( - WindowExtension::new(WindowBuilder::default().creation_hint( - WindowCreationHint::Samples, - WindowCreationHintValue::Number(8), - )) - .window_title("Game") - .window_size(WINDOW_SIZE), + WindowExtension::new(WindowBuilder::default().multisampling_sample_count(8)) + .window_title("Game") + .window_size(WINDOW_SIZE), ); engine.add_extension(FlyCameraExtension(FlyCameraOptions { |