1179 Commits

Author SHA1 Message Date
Jonathan Spira
5e301c85e3
Merge pull request #502 from haenno/master
Update README: Fix example code for gfx-examples..
2021-09-05 14:33:22 -07:00
Jonathan Spira
7965e9e6bb
Merge pull request #510 from dbr/clippereg
Add example of using list clipper API
2021-09-05 14:33:02 -07:00
Jack Spira
d7470caa4c rebased and minor clippy fix 2021-09-05 14:32:32 -07:00
dbr
15c2826690 Fix fmt 2021-09-05 14:32:32 -07:00
dbr
19b2edb0f4 Add example of using list clipper API
Somewhat relates to #438
2021-09-05 14:32:31 -07:00
Jack Spira
6570f0bf40 okay fixed our winit hell situation 2021-09-05 14:30:47 -07:00
Jack Spira
16c44b2acb updating glium version 2021-09-05 12:07:58 -07:00
Jonathan Spira
8940d64cf0
Merge pull request #509 from dbr/buttonflags
Re-export imgui::widget::misc to expose ButtonFlags
2021-09-05 12:06:06 -07:00
dbr
28e66b833c fmt 2021-09-05 11:55:13 -07:00
dbr
5317eae5ec Also re-export InputTextFlags 2021-09-05 11:55:12 -07:00
dbr
1d9539754b Re-export imgui::widget::misc to expose ButtonFlags
Required to use ui.invisible_button_flags(...)
2021-09-05 11:55:12 -07:00
Jonathan Spira
0e3b2bdb61
Merge pull request #495 from jmaargh/jmaargh/glow-renderer
glow renderer
2021-09-05 11:53:20 -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
Jonathan Spira
a3464e31c7
Merge pull request #514 from sanbox-irl/sliders_and_drag_range
BREAKING: Changed sliders and drag range to require range in their constructor, and simplified their types.
2021-09-05 11:30:20 -07:00
Jack Spira
9852501635 updated sliders docs 2021-09-05 11:23:31 -07:00
Jack Spira
7b644bf159 init draft 2021-09-04 19:26:20 -07:00
Jack Spira
7122366a43 fixing the stunning amount of clippy errors 2021-09-04 16:56:30 -07:00
Jonathan Spira
8b899381f3
Merge pull request #491 from dbr/sliderdoc
Add example to Slider.range() doc
2021-09-02 18:11:49 -04:00
Jonathan Spira
bf49265406
Merge pull request #475 from cfrantz/fix-selectable
Combobox: Focus the selected item.
2021-09-02 18:01:50 -04:00
Jack Mac
257345a53f Updating small clippy errors and adding debug derive to style 2021-09-02 17:44:00 -04:00
Jonathan Spira
6488dfe358
Merge pull request #512 from dbr/rustversion
Test against Rust 1.48
2021-09-02 17:16:40 -04:00
dbr
13580e0407 Gentle nudge towards a MSRV [#402]
Run CI against 1.48 as well as stable and beta

Replace use of `bool_to_option` as it's in xtask, and would otherwise bump ~required version to 1.50
2021-08-22 23:01:11 +10:00