Adds support support for multiple windows. Made possible by the move from PixelsResource to PixelsWrapper described below.
Adds multiple_windows example demonstrating support for multiple windows.
Adds scale_factor option to control scale factor between logical window size and buffer size when using auto_resize_buffer.
Adds auto_resize_buffer option to control automatic resizing of the buffer when the window changes.
Adds auto_resize_surface option to control automatic resizing of the surface when the window changes.
Configuration of buffer size has been moved from PixelsPlugin to PixelsOptions.
Primary window buffer is created by providing Some(PixelsOptions { ... }) to the primary_window when creating PixelsPlugin. This works the same was as Bevy's own configuration of primary window in the WindowPlugin.
Resouce PixelsResource has been replaced with PixelsWrapper component that is automatically added to Window entities with the PixelsOptions component.
Diagnostic PixelsPlugin::RENDER_TIME is now recorded in miliseconds instead of seconds.
Updated minimal example to demonstrate auto_resize_buffer feature.
PixelsResource
toPixelsWrapper
described below.multiple_windows
example demonstrating support for multiple windows.scale_factor
option to control scale factor between logical window size and buffer size when usingauto_resize_buffer
.auto_resize_buffer
option to control automatic resizing of the buffer when the window changes.auto_resize_surface
option to control automatic resizing of the surface when the window changes.PixelsPlugin
toPixelsOptions
.Some(PixelsOptions { ... })
to theprimary_window
when creatingPixelsPlugin
. This works the same was as Bevy's own configuration of primary window in theWindowPlugin
.PixelsResource
has been replaced withPixelsWrapper
component that is automatically added toWindow
entities with thePixelsOptions
component.PixelsPlugin::RENDER_TIME
is now recorded in miliseconds instead of seconds.minimal
example to demonstrateauto_resize_buffer
feature.