Joonas Javanainen
4da1e5f54a
Add explicit OpenGL 3.2 support
...
Some old OS X environments refuse to work with OpenGL 3.0 even though
they support later versions.
2018-10-28 12:19:17 +02:00
Joonas Javanainen
c9b03816d4
Minor clippy fixes
2018-10-13 00:41:13 +03:00
Joonas Javanainen
cddef5ee34
imgui-glium-renderer: stop reusing vertex/index buffers
...
For some reason, index buffer recycling leads in some cases to 100% CPU
usage due to some OpenGL synchronization stuff I don't fully understand.
2018-10-13 00:33:49 +03:00
Joonas Javanainen
b4edc01574
Adapt to 1.65 changes
2018-10-12 22:41:15 +03:00
Tad Hardesty
d90d377e70
Report rather than swallowing bad texture ids
2018-09-19 22:34:03 -07:00
Tad Hardesty
a2b69395d1
Rename set_texture_id to set_font_texture_id
2018-09-19 22:29:04 -07:00
Tad Hardesty
e9b1552f05
Make ImTexture a newtype for additional type safety
2018-09-10 00:59:55 -07:00
Joonas Javanainen
6a4286de11
Fix clip rect clamping
2018-08-13 18:47:23 +03:00
Joonas Javanainen
81b784d69a
Glium has sane sampler defaults so just trust them
2018-08-12 14:25:01 +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
Joonas Javanainen
d7e9e17aa3
Clippy fixes
2017-11-06 20:10:39 +02:00
Joonas Javanainen
907f9dbdeb
Reformat with rustfmt 0.9.0
2017-11-02 22:01:02 +02:00
Bjørnar Luteberget
8a3d890fc3
Glium renderer: set both texture sampler modes, avoids blurry custom fonts.
2017-10-23 22:03:48 +02:00
Joonas Javanainen
8621bbf116
Better shaders
2017-08-05 15:45:22 +03:00
Joonas Javanainen
87b31d6601
Reorganize glium support and renderer
2017-02-18 20:54:29 +02:00