56 Commits

Author SHA1 Message Date
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
John-Mark Allen
6858d09a17 Fix lints in examples 2021-09-05 11:32:05 -07:00
John-Mark Allen
11e2741ec4 Comment 2021-09-05 11:32:05 -07:00
John-Mark Allen
382db28a28 Remove ContextStateManager as a generic
Instead use `GlStateBackup` every time
2021-09-05 11:32:05 -07:00
John-Mark Allen
372348051d Prevent dead code warnings in examples/utils 2021-09-05 11:32:05 -07:00
John-Mark Allen
4df9d1e336 Remove unsafe null references 2021-09-05 11:32:05 -07:00
John-Mark Allen
80dcbe0d30 Remove unused import 2021-09-05 11:32:05 -07:00
John-Mark Allen
d1df09dab4 Add example based on custom_textures.rs 2021-09-05 11:32:05 -07:00
John-Mark Allen
87baa92b98 Fix up texture use
Previous `prepare_font_atlas` silently assumed a TrivialTextureMap.
Also adds an impl of `TextureMap` for `imgui::Textures` as a further
example.
2021-09-05 11:32:04 -07:00
John-Mark Allen
fc82d41154 Add accurate framerate to basic example 2021-09-05 11:32:04 -07:00
John-Mark Allen
f70ddfa29e Fix typo deleting the wrong buffer object 2021-09-05 11:32:04 -07:00
John-Mark Allen
23fe42780b Make fields of GenericShaderData pub to aid in user-implementation 2021-09-05 11:32:04 -07:00