67 Commits

Author SHA1 Message Date
Robin Quint
04ebd7a603 Hopefully finally fixed dependency hell 2024-04-24 15:04:39 +02:00
Robin Quint
ca05418cb4 Updated winit, glutin and glium dependencies 2023-12-14 09:57:21 -05:00
Jonathan Spira
00894927e4 basic updating 2023-09-18 08:52:26 -04:00
Sivaram Konanki
4618936344 update memoffset version 2023-09-17 17:27:04 -04:00
Andrea Frigido
0899b904c0 Update license field following SPDX 2.1 license expression standard 2023-09-17 16:57:30 -04:00
Jonathan Spira
50e166e84f clippy don't be so mad! 2023-09-14 23:03:46 -04:00
dbr
197128840c Bump version 2023-04-05 21:49:48 +09:30
Rodrigo Rivas Costa
08b1b89974 Add a glow-renderer example with an FBO and a callback. 2023-04-04 20:37:03 +02:00
Rodrigo Rivas Costa
1484742ab5 imgui_glow_renderer::AutoRender::gl is now an Rc<glow::Context>.
It can be cloned and stored on drawing callbacks, for example.
2023-04-04 20:37:03 +02:00
dbr
4608516120 More clippy pedantry 2023-03-22 23:12:36 +10:30
dbr
4e146f2ef0 fmt 2023-03-03 18:57:01 +10:30
Robin
0ef604bbb1 Update to glow 0.12 2023-02-02 15:00:28 +01:00
dbr
fcc4263dce Bump to v0.10 2023-01-16 19:26:14 +10:30
dbr
9776ebef90 Remove authors key from Cargo.toml
The field is now optional (as of Rust 1.53) and no longer used by crates.io (as per Rust RFC 3052)
2022-11-30 10:15:38 +10:30
dbr
2eb3f8c337 Bump to 0.9.0! 2022-11-30 10:10:19 +10:30
Lena Milizé
b377181c54 re-export winit and glow
Signed-off-by: Lena Milizé <me@lvmn.org>
2022-10-27 10:03:36 +02:00
Denis Barkar
5fa0f27564 Support winit v0.27.2 2022-08-17 17:37:07 +03:00
dbr
1de842a402 Move note about robustness into Scope section 2022-05-31 15:28:30 -07:00
dbr
59c5538cd9 glow: move vertex creation to same method as deletion
Prevents leak if set_up_render_state is called without calling render

Closes #643
2022-05-31 15:28:30 -07:00
Jack Mac
8dea2edcfa init. copying other work 2022-02-21 18:55:39 -05:00
David M
f03a0c3449
Fix glow renderer for minor version zero 2022-01-06 16:50:29 -05:00
Jack OntheGoMac
bebd4168fa fixed breaking my commits to dbr 2021-12-21 17:04:42 -08:00
dbr/Ben
f43e33c15d
Fix note about ControlFlow::Wait 2021-11-30 11:33:14 +11:00
Jack Mac
1d78d18d82 updating license copyright data 2021-10-06 12:06:23 -04:00
dbr
6eb56529da Use ControlFlow:Poll in event loop
ControlFlow::Wait is more efficient but doesn't appear to currently work
well on all platforms. Removed entirely from the earlier examples to
keep them as simple as possible, but noted `ControlFlow::Wait` in the
last example

Closes #542
2021-10-03 18:09:02 -04:00
Jack Mac
76c74fbfc5 quick fix 2021-10-01 11:36:24 -04:00
Jack Mac
11b7e87c64 clippy fixes 2021-10-01 11:36:24 -04:00
Jack Mac
b30cb740ba aaaand fixed up the examples 2021-10-01 11:36:24 -04:00
dbr
cc7ffbe351 Update examples to ui.window(...) 2021-09-25 11:51:11 +10:00
Jonathan Spira
2ff4de3918 disabled debug_message_insert_support on apple 2021-09-20 00:49:27 -04:00
toyboot4e
0633f112c8 link to imgui-glow-renderer/examples 2021-09-18 15:11:47 +09:00
toyboot4e
c40be71bb4 Fix glow renderer doc links 2021-09-18 14:55:55 +09:00
Jack Mac
a6b61be583 incremented remaining crates to a pre-release version 2021-09-17 15:40:06 -04:00
Jack Mac
4809d031b7 issuing version update! 2021-09-17 12:37:53 -04:00
Jack Mac
62d1bc5d5c updating copyrights and readme 2021-09-17 12:37:53 -04:00
Jack Mac
f635fd6438 fixed examples, removing warnings (i think) 2021-09-13 17:12:27 -04:00
Jack Mac
3eaee3359d imstr and imstring have been removed.
fixed some instability and added a hacky shim to input_text functions.
We're looking okay so far, but more testing will be needed
2021-09-13 17:12:00 -04:00
Jack Spira
ba3f16b228 in dependency hell I suffer 2021-09-05 14:48:52 -07:00
Jack Spira
7d06d4210f Rebased, updated changelog, and fixed irksome clippy errors.
Ready for merge
2021-09-05 11:37:22 -07:00
John-Mark Allen
1cf83d9072 Add type aliases for fully-qualified Context types 2021-09-05 11:32:07 -07:00
Jack Spira
caf4809fa0 Switch to using fully qualified syntax 2021-09-05 11:32:07 -07:00
John-Mark Allen
e9c3fed303 Fix imports in doctests 2021-09-05 11:32:07 -07:00
John-Mark Allen
1dee6594c4 Make a comment more understandable 2021-09-05 11:32:06 -07:00
John-Mark Allen
2ab0878f88 Fix sRGB support and comments
Fix sRGB support, now when initialising a Renderer you can explicitly
choose whether to output colors in linear or sRGB color spaces.

Fix examples to show how to render these properly.

Fix comments in examples
2021-09-05 11:32:06 -07:00
John-Mark Allen
9de800da48 Fix comment 2021-09-05 11:32:06 -07:00
John-Mark Allen
84020a6bc0 Handle sRGB colours properly 2021-09-05 11:32:06 -07:00
John-Mark Allen
0cafc5c22d Consolodate to two non-generic renderers
There are now only two renderers (only generic over the GL context)
- `AutoRenderer` which is both the old `OwningRenderer` and also
  sets up a `SimpleTextureMap` automatically
- `Renderer` which borrows both the GL context and the texture map
  on every call to Render

This means the `RendererBuilder` can be entirely removed.

Also `TrivialTextureMap` renamed to `SimpleTextureMap`.
2021-09-05 11:32:06 -07:00
John-Mark Allen
82f1122e10 Remove ShaderProvider
Instead, always use the previous AutoShaderProvider
2021-09-05 11:32:06 -07:00
John-Mark Allen
e12e0b1bed Feature-gate use of glDebugMessageInsert 2021-09-05 11:32:06 -07:00
John-Mark Allen
10eb51260e Fix lint 2021-09-05 11:32:06 -07:00