PistonDevelopers / gfx_text

Draw text for gfx using freetype
http://docs.piston.rs/gfx_text/gfx_text/
MIT License
22 stars 12 forks source link

Update to latest Gfx #43

Closed bvssvni closed 8 years ago

bvssvni commented 8 years ago

Could not figure out how to get this line working https://github.com/PistonDevelopers/gfx_text/blob/master/src/lib.rs#L445

cc @kvark

kvark commented 8 years ago

I think you can do

let slice = gfx::Slice {
  start: 0,
  end: ni,
  base_vertex: 0,
  instances: None,
  buffer: gfx::IndexBuffer::Index16(self.index_buffer.clone()),
};
bvssvni commented 8 years ago

Thanks!