summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/src/lib.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs
index e036c38..407df32 100644
--- a/engine/src/lib.rs
+++ b/engine/src/lib.rs
@@ -1,7 +1,6 @@
#![deny(clippy::all, clippy::pedantic)]
-use glfw::Window;
-pub use glfw::WindowSize;
+use glfw::{Window, WindowBuilder};
use crate::object::Object;
use crate::vector::Vec2;
@@ -14,6 +13,8 @@ pub mod object;
pub mod vector;
pub mod vertex;
+pub use glfw::WindowSize;
+
#[derive(Debug)]
pub struct Engine
{
@@ -28,7 +29,8 @@ impl Engine
/// Will return `Err` if window creation or window configuration fails.
pub fn new(window_size: &WindowSize, window_title: &str) -> Result<Self, Error>
{
- let window = Window::create(window_size, window_title)
+ let window = WindowBuilder::new()
+ .create(window_size, window_title)
.map_err(Error::CreateWindowFailed)?;
window