Jack Mac
76c74fbfc5
quick fix
2021-10-01 11:36:24 -04:00
Jack Mac
694cd96d49
getting close! input_text resize is broken,
...
and i'll need to check the imgui docs example with std::string
to get a reference to how to do it properly.
2021-09-13 17:12:00 -04:00
Thom Chiovoloni
64a8d3260d
Attempt to bludgeon the winit/glium/gfx versions into submission
2020-12-31 19:32:44 -08:00
Joonas Javanainen
903092580a
Merge pull request #346 from Gekkio/feature/renderer-vtx-offset
...
Add support for RENDERER_HAS_VTX_OFFSET
2020-07-16 17:21:06 +03:00
Cosmic Chip Socket
a552a1e240
Use previous Sampler parameters for the font texture
2020-07-14 19:01:15 -04:00
Cosmic Chip Socket
f2b4e4c482
Use SamplerBehavior in the Texture struct
2020-07-14 18:54:15 -04:00
Cosmic Chip Socket
d0c65f534d
Rename TextureEntry to Texture
2020-07-14 18:54:15 -04:00
Joonas Javanainen
fad0f5811b
Add support for RENDERER_HAS_VTX_OFFSET
2020-07-08 10:17:54 +03:00
Cosmic Chip Socket
7b31db0526
API-breaking version of changes
2020-06-29 17:23:52 -04:00
Cosmic Chip Socket
4ab3aa6642
User-selectable texture filters per-texture
2020-06-28 19:45:48 -04:00
Boscop
7dd47c67ef
Clamp textures to border (GL_CLAMP_TO_BORDER)
2020-04-05 22:30:44 +02:00
Joonas Javanainen
bbf9c57cdc
Re-export crates from renderers
2019-07-12 20:32:22 +03:00
Joonas Javanainen
930d44e92b
Implement std::error::Error for renderer errors
2019-07-12 20:29:00 +03:00
Joonas Javanainen
0132ab5207
Go back to unprefixed *Renderer and *RendererError names
...
Prefixing wasn't supposed to end up in master
2019-07-08 18:07:21 +03:00
Joonas Javanainen
9e3cd1681c
Renderers accept DrawData directly
...
There's no need to pass Ui, which makes this alternative much more
flexible.
2019-06-29 13:30:13 +03:00
Joonas Javanainen
d094c6ee73
Pass ResetRenderState command to renderers
2019-06-29 13:22:51 +03:00
Joonas Javanainen
a64cb2eb4d
Pass vtx_offset and idx_offset to renderers
2019-06-29 13:16:31 +03:00
Joonas Javanainen
cebe02cb11
Pull font API and associated refactoring from 0.1-dev
2019-06-29 12:45:16 +03:00
Joonas Javanainen
42d3c0f6d7
Pull renderer/draw data updates from 0.1-dev
2019-06-27 22:12:35 +03:00
Joonas Javanainen
721bf46746
Pull input+winit stuff from 0.1-dev
2019-06-27 22:12:35 +03:00
Joonas Javanainen
9516e622be
Pull first part of 0.1 context API
2019-06-27 18:18:57 +03:00
Joonas Javanainen
c1f48896e4
Use generated ImDraw* structs
2019-06-27 09:02:31 +03:00
Joonas Javanainen
91a961e06a
Use more 2018 edition idioms
2018-12-31 12:16:28 +02:00
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