16 Commits

Author SHA1 Message Date
Tad Hardesty
fb7ea044e2 Split the ImTexture allocator into a generic struct 2018-09-10 00:54:00 -07:00
Tad Hardesty
456258524e Add simplest possible image support for gfx renderer 2018-09-10 00:40:02 -07:00
Joonas Javanainen
6a4286de11
Fix clip rect clamping 2018-08-13 18:47:23 +03:00
Joonas Javanainen
319f7aa4c6
Reformat everything 2018-08-12 14:16:56 +03:00
Joonas Javanainen
aa4ae70054
Make HiDPI rendering better
+ use linear filtering in both renderers. Nearest just won't work
  anymore if we have a non-integer scaling factor (which winit can give
  us on 1440p screens for example)
+ pass around FrameSize which has the necessary info with full f64
  precision
+ extra care with conversions to/from f32 and u32 and rounding
2018-08-12 14:16:21 +03:00
Joonas Javanainen
70370611e5
Renderers take DrawData, not DrawList 2018-06-03 11:21:13 +03:00
Jay Oster
1d64e4e185 Update gfx
- Fixes the screen resolution and mouse coordinates on macOS
- Fixes the blurry font by using linear filtering on the texture sampler
2018-04-26 20:01:54 -07:00
Joonas Javanainen
d7e9e17aa3
Clippy fixes 2017-11-06 20:10:39 +02:00
Joonas Javanainen
85f18abeee
Revert "Move hello_gfx example under the gfx renderer crate"
This reverts commit 9b257b9ab60f7f844df6ad219d6d54bfa1047e6e.
2017-11-05 23:17:53 +02:00
Joonas Javanainen
9b257b9ab6
Move hello_gfx example under the gfx renderer crate 2017-11-05 23:06:22 +02:00
Joonas Javanainen
907f9dbdeb
Reformat with rustfmt 0.9.0 2017-11-02 22:01:02 +02:00
Joonas Javanainen
8621bbf116
Better shaders 2017-08-05 15:45:22 +03:00
Joonas Javanainen
d9fdf9b58b
Remove unintended struct field shorthand 2017-06-17 15:07:08 +03:00
Joonas Javanainen
16d19c1855
Update render target after a resize 2017-06-17 13:23:15 +03:00
Joonas Javanainen
719a1a3317
Wrap gfx renderer errors 2017-06-17 13:17:48 +03:00
Joonas Javanainen
4ee27d149c
Initial working but dirty gfx renderer 2017-06-17 13:17:48 +03:00