Was gonna make that jet fighter game but then didn't
parent
2e98f3eeda
commit
b98a4f09d3
|
@ -644,6 +644,10 @@ impl TimeStep {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe fn draw_world (world: &WorldState) {
|
||||
|
||||
}
|
||||
|
||||
fn main () {
|
||||
let sdl_context = sdl2::init ().unwrap ();
|
||||
let video_subsystem = sdl_context.video ().unwrap ();
|
||||
|
@ -773,10 +777,8 @@ fn main () {
|
|||
|
||||
window.gl_make_current (&gl_ctx).unwrap ();
|
||||
|
||||
//let longitude = (frame as f32).to_radians ();
|
||||
let longitude = state.azimuth.to_radians ();
|
||||
let latitude = (state.altitude - 90.0).to_radians ();
|
||||
//let latitude = (frame as f32 / 5.0).to_radians ().sin () * -40.0f32.to_radians () - 75.0f32.to_radians ();
|
||||
|
||||
let proj_mat = Mat4::perspective_rh_gl (30.0f32.to_radians (), 1280.0 / 720.0, 0.5, 500.0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue