summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-11-24 22:21:37 +0100
committerHampusM <hampus@hampusmat.com>2024-11-24 22:21:37 +0100
commit9efd77d8ad4ab51f3df588a188c4bbda4001258b (patch)
tree59eed7b1cab43f563e47d9c98e7cf053c44a735e /src/main.rs
parent1bc47aff63fdd81c3ddf1e2c2a718fc5d5330fed (diff)
chore: set window multisampling sample count with new function
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
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 {