Skip to content

Commit

Permalink
Update glfw to 0.56.0 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-xr authored Sep 3, 2024
1 parent 5303763 commit a4a3db4
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 38 deletions.
60 changes: 28 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion runtimes/desktop_runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
gl = "0.14.0"
glfw = "0.45.0"
glfw = "0.56.0"
engine = { path = "../../engine" }
dark = { path = "../../dark" }
shock2vr = { path = "../../shock2vr" }
Expand Down
5 changes: 3 additions & 2 deletions runtimes/desktop_runtime/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use dark::SCALE_FACTOR;
use engine::profile;

use engine::util::compute_view_matrix_from_render_context;
use glfw::GlfwReceiver;
use glfw::Modifiers;
use shock2vr::command::LoadCommand;
use shock2vr::command::MoveInventoryCommand;
Expand Down Expand Up @@ -184,7 +185,7 @@ pub fn main() {
//tracing_subscriber::fmt::init();
let args = Args::parse();
//panic!("args: {:?}", args);
let mut glfw = glfw::init(glfw::FAIL_ON_ERRORS).unwrap();
let mut glfw = glfw::init(glfw::fail_on_errors).unwrap();
// TODO: Figure out ANGLE
// glfw.window_hint(glfw::WindowHint::ClientApi(glfw::OpenGlEs));
glfw.window_hint(glfw::WindowHint::ContextVersion(4, 1));
Expand Down Expand Up @@ -391,7 +392,7 @@ fn process_events(
camera_context: &mut CameraContext,
hand_context: &mut HandContext,
last_input_state: &InputState,
events: &Receiver<(f64, glfw::WindowEvent)>,
events: &GlfwReceiver<(f64, glfw::WindowEvent)>,
delta_time: f32,
) -> (InputContext, InputState, Vec<Box<dyn Command>>, Vec<Effect>) {
let _speed = 20.0;
Expand Down
2 changes: 1 addition & 1 deletion runtimes/tool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
gl = "0.14.0"
glfw = "0.45.0"
glfw = "0.56.0"
engine = { path = "../../engine" }
engine_ffmpeg = { path = "../../engine_ffmpeg" }
dark = { path = "../../dark" }
Expand Down
5 changes: 3 additions & 2 deletions runtimes/tool/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
extern crate glfw;
use engine_ffmpeg::VideoPlayer;
use glfw::GlfwReceiver;

use self::glfw::{Action, Context, Key};
use engine::audio::{self, AudioClip, AudioContext, AudioHandle};
Expand Down Expand Up @@ -168,7 +169,7 @@ pub fn main() {

// panic!();
tracing_subscriber::fmt::init();
let mut glfw = glfw::init(glfw::FAIL_ON_ERRORS).unwrap();
let mut glfw = glfw::init(glfw::fail_on_errors).unwrap();
// TODO: Figure out ANGLE
// glfw.window_hint(glfw::WindowHint::ClientApi(glfw::OpenGlEs));
glfw.window_hint(glfw::WindowHint::ContextVersion(4, 1));
Expand Down Expand Up @@ -426,7 +427,7 @@ fn process_events(
//audio: &mut AudioContext,
window: &mut glfw::Window,
camera_context: &mut CameraContext,
events: &Receiver<(f64, glfw::WindowEvent)>,
events: &GlfwReceiver<(f64, glfw::WindowEvent)>,
delta_time: f32,
) -> (InputContext, Vec<Box<dyn Command>>) {
let _speed = 20.0;
Expand Down

0 comments on commit a4a3db4

Please sign in to comment.