Skip to content

Removed gfx #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ git = "https://github.com/PistonDevelopers/input"

git = "https://github.com/bjz/gl-rs"

[dependencies.gfx]

git = "https://github.com/gfx-rs/gfx-rs"

[lib]

name = "sdl2_game_window"
Expand Down
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ extern crate event;
extern crate shader_version;
extern crate input;
extern crate gl;
extern crate gfx;
extern crate device;

pub use window_sdl2::WindowSDL2;

Expand Down
11 changes: 0 additions & 11 deletions src/window_sdl2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// External crates.
use std::mem::transmute;
use gl;
use gfx;
use sdl2;
use event::{
Window,
Expand Down Expand Up @@ -78,16 +77,6 @@ impl WindowSDL2 {
mouse_relative: None,
}
}

/// Creates a gfx devince and front end.
pub fn gfx(&self) -> (gfx::GlDevice, gfx::Frame) {
let device = gfx::GlDevice::new(|s| unsafe {
transmute(sdl2::video::gl_get_proc_address(s))
});
let (w, h) = self.get_size();
let frame = gfx::Frame::new(w as u16, h as u16);
(device, frame)
}
}

impl Drop for WindowSDL2 {
Expand Down