25 Commits

Author SHA1 Message Date
Seth Pyle
67f7f11363 allocate texture data vec with room for 3 bytes per pixel 2024-06-07 11:04:06 -04:00
Robin Quint
ca05418cb4 Updated winit, glutin and glium dependencies 2023-12-14 09:57:21 -05:00
Rodrigo Rivas Costa
08b1b89974 Add a glow-renderer example with an FBO and a callback. 2023-04-04 20:37:03 +02:00
Robin
0ef604bbb1 Update to glow 0.12 2023-02-02 15:00:28 +01:00
Jack OntheGoMac
bebd4168fa fixed breaking my commits to dbr 2021-12-21 17:04:42 -08:00
dbr/Ben
f43e33c15d
Fix note about ControlFlow::Wait 2021-11-30 11:33:14 +11:00
dbr
6eb56529da Use ControlFlow:Poll in event loop
ControlFlow::Wait is more efficient but doesn't appear to currently work
well on all platforms. Removed entirely from the earlier examples to
keep them as simple as possible, but noted `ControlFlow::Wait` in the
last example

Closes #542
2021-10-03 18:09:02 -04:00
Jack Mac
11b7e87c64 clippy fixes 2021-10-01 11:36:24 -04:00
Jack Mac
b30cb740ba aaaand fixed up the examples 2021-10-01 11:36:24 -04:00
dbr
cc7ffbe351 Update examples to ui.window(...) 2021-09-25 11:51:11 +10:00
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