opengl_graphics
opengl_graphics copied to clipboard
An OpenGL 2D back-end for the Piston game engine
I got a bug where I was updating textures instead of creating new ones, which led to quite strange behavior. A simple check whether the dimensions are correct could avoid...
Preloading characters in a GlyphCache creates the new characters, storing them in the cache. However, the characters get their size converted from points to pixels in character(): ``` let size...
I'm finding it hard to draw text centred around a point in the screen. GlyphCache is probably too low-level to offer this functionality directly, but it could help with a...
At the moment, `opengl_graphics` selects between shader sources at compile time by [checking `target_os = "emscripten"`](https://github.com/PistonDevelopers/opengl_graphics/blob/master/src/back_end.rs#L24), but this isn't a perfect solution. I'm working on a library that translates GL...
Hi there, I have been using [`opengles_graphics`](https://github.com/Drakulix/opengles_graphics) as of late, and have noticed that it is rather old (2 years ago was the last commit), and so I was wondering...
looks like `Blend::Invert` will not work when drawing to the stencil buffer. This is one of the easiest ways I've found of [drawing non-convex polygons](http://www.glprogramming.com/red/chapter14.html#name13). Could this be supported? I...
This is very evident when rendering a list in conrod without a canvas in the background. 
This crates appears to be completely undocumented, or the documentation is just hidden beneath layers of reexports and other documentation. As someone who would like to use this but doesn't...
``` error[E0001]: unreachable pattern --> /Users/tyler/.cargo/registry/src/github.com-1ecc6299db9ec823/image-0.13.0/./src/dynimage.rs:632:9 | 632 | _ => Err(image::ImageError::UnsupportedError(format!("A decoder for {:?} is not available.", format))), | ^ this is an unreachable pattern error: aborting due to...
The default should be turned on, to get better blending quality. Not sure whether it's better to fork the backend when sRGB off is needed, or to add a flag...