26 Commits

Author SHA1 Message Date
Jack Mac
76c74fbfc5 quick fix 2021-10-01 11:36:24 -04: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
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
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
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