extern crate glium;
extern crate glutin;
+extern crate libxm;
+extern crate sdl2;
use glium::{DisplayBuild, Surface};
use glium::index::{IndexBuffer, PrimitiveType};
use glutin::Event::KeyboardInput;
use glutin::VirtualKeyCode;
+mod sound;
mod support;
#[derive(Copy, Clone)]
depth: glium::Depth {
test: glium::draw_parameters::DepthTest::IfLess,
write: true,
- .. Default::default()
+ ..Default::default()
},
blend: glium::Blend::alpha_blending(),
- .. Default::default()
+ ..Default::default()
};
let front_indices = IndexBuffer::new(display, PrimitiveType::LineLoop,
depth: glium::Depth {
test: glium::draw_parameters::DepthTest::IfLess,
write: true,
- .. Default::default()
+ ..Default::default()
},
blend: glium::Blend::alpha_blending(),
- .. Default::default()
+ ..Default::default()
};
frame.draw(&vb, &indices, program, uniforms, ¶ms).unwrap();
}
fn main() {
+ sound::start();
+
let display = glium::glutin::WindowBuilder::new()
//.with_dimensions(1024, 768)
.with_fullscreen(glutin::get_primary_monitor())
[ 0.0, 0.0, z_trans, 1.0f32]
];
- // Draw the bounding box before the fractal, when the Z-buffer is still clear, so the lines
- // behind the semi-translucent areas will be drawn.
+ // Draw the bounding box before the fractal, when the Z-buffer is still clear,
+ // so the lines behind the semi-translucent areas will be drawn.
if bounding_box_enabled {
let uniforms = uniform! {
model: model,