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
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
80dcbe0d30
Remove unused import
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
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
06b08508d9
Derive Default on trivial structs
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