Jack Mac
257345a53f
Updating small clippy errors and adding debug derive to style
2021-09-02 17:44: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
fad0f5811b
Add support for RENDERER_HAS_VTX_OFFSET
2020-07-08 10:17:54 +03: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
eda44c46ca
Fix gfx DX11 support
2019-07-01 11:43:41 +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
Michael Tang
e89375b39a
Cleanup
2019-04-23 18:26:20 -07:00
Michael Tang
fdc8a6a4e2
Commit shaders so they don't need to be missing on non-Windows platforms
2019-04-23 17:49:32 -07:00
Michael Tang
b97bb58a56
Make imgui build successfully with directx even when not on windows
2019-04-23 17:37:46 -07:00
Michael Tang
d11e008aa0
Add DirectX support behind feature flag
2019-04-21 19:41:14 -07:00
Michael Tang
616d61767f
WIP hlsl support
2019-04-13 20:44:03 -07:00
Joonas Javanainen
91a961e06a
Use more 2018 edition idioms
2018-12-31 12:16:28 +02:00
Joonas Javanainen
20139851e2
Upgrade to Rust 2018 edition
...
We might as well do this since we've been forced to 1.31...
2018-12-31 11:51:34 +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
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
d202872280
Avoid cloning texture Arcs for every draw call
2018-09-10 22:01:26 -07:00
Tad Hardesty
e9b1552f05
Make ImTexture a newtype for additional type safety
2018-09-10 00:59:55 -07:00
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