15 Commits

Author SHA1 Message Date
Jack Mac
f635fd6438 fixed examples, removing warnings (i think) 2021-09-13 17:12:27 -04: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
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
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
6858d09a17 Fix lints in examples 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
d1df09dab4 Add example based on custom_textures.rs 2021-09-05 11:32:05 -07:00
John-Mark Allen
fc82d41154 Add accurate framerate to basic example 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
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