Was gonna make that jet fighter game but then didn't

main
_ 2020-02-16 22:33:31 +00:00
parent 2e98f3eeda
commit b98a4f09d3
1 changed files with 4 additions and 2 deletions

View File

@ -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);