Upgraded to latest Piston
This commit is contained in:
parent
f70dde3ca5
commit
847a52a19a
5 changed files with 15 additions and 0 deletions
|
|
@ -5,6 +5,10 @@ use piston::*;
|
|||
use board::Board;
|
||||
use number_renderer::NumberRenderer;
|
||||
use settings::Settings;
|
||||
use opengl_graphics::{
|
||||
Gl,
|
||||
Texture,
|
||||
};
|
||||
|
||||
pub struct App<'a> {
|
||||
board: Board<'a>,
|
||||
|
|
|
|||
|
|
@ -4,6 +4,9 @@ use std::collections::hashmap::HashSet;
|
|||
use std::rand::random;
|
||||
use graphics::*;
|
||||
use piston::*;
|
||||
use opengl_graphics::{
|
||||
Gl,
|
||||
};
|
||||
use number_renderer::NumberRenderer;
|
||||
use settings::Settings;
|
||||
use tile::{
|
||||
|
|
|
|||
|
|
@ -5,8 +5,11 @@ extern crate serialize;
|
|||
|
||||
extern crate graphics;
|
||||
extern crate piston;
|
||||
extern crate opengl_graphics;
|
||||
extern crate sdl2_game_window;
|
||||
|
||||
use piston::*;
|
||||
use sdl2_game_window::GameWindowSDL2;
|
||||
|
||||
mod app;
|
||||
mod board;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,10 @@ use graphics::*;
|
|||
use piston::{
|
||||
AssetStore,
|
||||
};
|
||||
use opengl_graphics::{
|
||||
Gl,
|
||||
Texture,
|
||||
};
|
||||
|
||||
static DIGITS_WIDTH: f64 = 20.0;
|
||||
static DIGITS_HEIGHT: f64 = 26.0;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
use graphics::*;
|
||||
use piston::*;
|
||||
use opengl_graphics::Gl;
|
||||
use number_renderer::NumberRenderer;
|
||||
use settings::Settings;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue