gfx_graphics
gfx_graphics copied to clipboard
A Gfx 2D back-end for the Piston game engine
When I run `draw_state` example with 1.25x scale factor (which is my monitor default), the output of `draw_state.rs` example is like the image below. The code tells the logo to...
error: Edition 2018 is unstable and only available for nightly builds of rustc. error: Could not compile `stb_truetype`. warning: build failed, waiting for other jobs to finish... error: build failed
https://github.com/PistonDevelopers/gfx_graphics/blob/master/examples/draw_state.rs#L82
I noticed this when trying to add `error_chain` to my project, because the following doesn't compile: (`piston_window::Glyphs` is `gfx_graphics::GlyphCache`) ```rust let mut glyphs = Glyphs::new("assets/fonts/FiraSans-Regular.ttf", window.factory.clone()) .chain_err(|| "Could not create...
Depends on https://github.com/PistonDevelopers/texture/issues/32.
We use `Target0` for the output in gfx examples in order to be compatible with: - dx11 backend, which only gives the index but not the name - GLSL prior...
What can we do when sRGB conversion is not supported by hardware?
Currently it uses a match on the texture format. Instead, could use the method added recently to Gfx.
When I try drawing the same texture two or more times, texture will be drawn only first time. Example: ``` rust extern crate piston; extern crate graphics; extern crate piston_window;...