47 Commits

Author SHA1 Message Date
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
John-Mark Allen
cdf90639c6 Attempt to start documenting better 2021-09-05 11:32:04 -07:00
John-Mark Allen
f92e9c4beb Add a few more docs 2021-09-05 11:32:04 -07:00
John-Mark Allen
f1bd13b73e Flesh out examples 2021-09-05 11:32:03 -07:00
John-Mark Allen
06b08508d9 Derive Default on trivial structs 2021-09-05 11:32:03 -07:00
John-Mark Allen
bbe598a24d Remove unnecessary code from basic glow example 2021-09-05 11:32:03 -07:00
John-Mark Allen
bf1675f2a0 Add imgui-glow-renderer from test repo 2021-09-05 11:32:03 -07:00