Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // create window and event loop, load opengl
- let mut window_size = V2I::new(800, 600);
- let mut events_loop = EventsLoop::new();
- let window = WindowBuilder::new()
- .with_title("gl chunk test")
- .with_dimensions(window_size.x as u32, window_size.y as u32);
- let mut context = ContextBuilder::new()
- .with_vsync(true);
- context.gl_attr.debug = true;
- let window = GlWindow::new(window, context, &events_loop)
- .expect("window creation failure");
- window.make_current().unwrap();
- gl::load_with(|sym| window.get_proc_address(sym) as *const _);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement