update to gfx 0.13

This commit is contained in:
2016-12-26 15:42:03 -08:00
parent 3a8c0148c8
commit b955d7f1b6
3 changed files with 23 additions and 19 deletions

View File

@@ -11,7 +11,7 @@ use std::collections::BTreeMap;
use std::marker::PhantomData;
use std::time::SystemTime;
use gfx::{self, tex};
use gfx::{self, texture};
use gfx::traits::FactoryExt;
use na::{self, ToHomogeneous};
use num_traits::identities::One;
@@ -164,8 +164,8 @@ impl<D: gfx::Device, F: gfx::Factory<D::Resources>> WorldScene<D, F> {
constants_dirty: true,
locals: factory.create_constant_buffer(1),
atlas: tile::get_tiles::<_, _, view::ColorFormat>(device, factory, aux_command),
sampler: factory.create_sampler(tex::SamplerInfo::new(tex::FilterMethod::Jrd,
tex::WrapMode::Tile)),
sampler: factory.create_sampler(texture::SamplerInfo::new(texture::FilterMethod::Jrd,
texture::WrapMode::Tile)),
f: PhantomData,
vbuf: vertex_buffer,