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
Benedikt Mandelkow
794ece8956
rename VERSION file to help compilers see that its not a cpp header
2021-06-24 02:29:28 -07:00
Thom Chiovoloni
5e7c596671
Shush, clippy
2021-06-24 02:21:38 -07:00
Thom Chiovoloni
918f79780d
Include LICENSE and README files where relevant
2021-06-07 17:35:46 -07:00
dbr
505f2be023
Fix up doc tests
2021-06-02 14:07:30 +10:00
dbr
ebb81c433a
Add example to Slider.range()
2021-06-02 13:40:06 +10:00
Thom Chiovoloni
9bfbb84095
imgui-winit-support release 0.7.1
2021-05-22 17:21:34 -07:00
Johan Andersson
79f9345362
Add support & upgrade to winit 0.25 ( #485 )
2021-05-22 17:19:02 -07:00
Chris Frantz
801c9109a4
Focus the selected item.
2021-04-17 07:51:34 -07:00
Thom Chiovoloni
a78fb45497
Fix use of not-quite-stabilized API, and explain what the line did anyway
2021-04-06 00:34:57 -07:00
Thom Chiovoloni
b489bb2228
Changelog for wchar32 use (surprisingly subtle)
2021-04-06 00:34:57 -07:00
Thom Chiovoloni
b739b9380b
Update non-sys code to handle 32-bit characters
2021-04-06 00:34:57 -07:00
Thom Chiovoloni
083139e4e6
Enable -DIMGUI_USE_WCHAR32 for imgui-sys
2021-04-06 00:34:57 -07:00
Thom Chiovoloni
9c40b30863
Add 'magic' submodule wrangling
2021-04-06 00:34:57 -07:00
Thom Chiovoloni
830022f10f
Merge pull request #471 from imgui-rs/dear-update-182
2021-04-05 11:42:44 -07:00
Thom Chiovoloni
618a3f3fa5
Changelog
2021-04-04 17:30:44 -07:00
Thom Chiovoloni
cb918fc652
Update Dear Imgui to v1.82
2021-04-04 17:29:16 -07:00