Zaszi
0a875f647d
Derive PartialEq for WindowMode ( #1688 )
...
Many a game will provide some sort of video settings where a window mode option is a common inclusion. I ran into problems, however, with [egui's](https://github.com/emilk/egui ) `combo_box` that imposes a `PartialEq` necessity. Deriving the trait would fix this problem, and as this does not break any existing API it should be a non-controversial change.
2021-03-18 23:47:34 +00:00
Carter Anderson
b17f8a4bce
format comments ( #1612 )
...
Uses the new unstable comment formatting features added to rustfmt.toml.
2021-03-11 00:27:30 +00:00
Digital Seven
8dcba7f4a1
Add Window Resize Constraints ( #1409 )
...
You should be able to set the minimum and maximum desired resolution of a system window.
This also fixes a bug on Windows operating system: When you try to resize to 0 on the height it crashes.
Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2021-03-03 02:56:50 +00:00
Hans W. Uhlig
f8292ccf7e
Simple Implementation to address #1327 by adding a focused field to the window and related system ( #1386 )
...
* Simple Implementation to address #1327 by adding a focused field to the window and related system
* Changing Window update function from bevy_window to bevy_winit.
* Removing unused imports.
2021-02-12 21:32:32 -08:00
Toniman20
32acbfb632
Added set_minimized
and set_position
to Window
( #1292 )
...
Added `set_minimized` and `set_position` to `Window`
2021-01-24 20:06:06 -08:00
TheRawMeatball
3cb2e22e89
Added use_dpi setting to WindowDescriptor ( #1131 )
...
Added scale_factor_override
2020-12-28 14:26:50 -06:00
Nathan Jeffords
d2e4327b14
update Window
's width
& height
methods to return f32
( #1033 )
...
update `Window`'s `width` & `height` methods to return `f32`
2020-12-13 15:05:56 -08:00
Nathan Jeffords
3d386a77b4
attempt to deal with rounding issue when creating the swap chain ( #997 )
...
attempt to deal with rounding issue when creating the swap chain on high DPI displays
2020-12-07 13:32:57 -08:00
Corey Farwell
1398d78330
Allow windows to maximized. ( #1004 )
...
Adds a new `set_maximized` method to allow users to maximize windows.
2020-12-04 14:31:17 -08:00
Nathan Jeffords
1aff709d27
Set cursor updates ( #993 )
...
* update `Window::set_cursor_position` to take a `Vec2` instead of `i32`s
this allows fractional coordinates to work correctly
2020-12-03 12:39:03 -08:00
Tomasz Sterna
1f2e4171cf
Store mouse cursor position in Window ( #940 )
2020-12-03 11:30:27 -08:00
Carter Anderson
c05c1dc119
hidpi swap chains ( #973 )
...
hidpi swap chains
2020-12-01 20:25:31 -08:00
François
6b004f7d16
switch winit size to logical to be dpi independent ( #947 )
...
* switch winit size to logical
* make scale factor available from bevy_window
2020-11-30 18:24:49 -08:00
Carter Anderson
72b2fc9843
Bevy Reflection ( #926 )
...
Bevy Reflection
2020-11-27 16:39:59 -08:00
Tomasz Sterna
b2c82955ff
Add set_cursor_position method to Window ( #917 )
2020-11-25 17:31:10 -08:00
Mikail Khan
b3e1048e73
added #[inline] to more window accessor functions ( #830 )
2020-11-10 17:20:31 -08:00
Carter Anderson
c32e637384
Asset system rework and GLTF scene loading ( #693 )
2020-10-18 13:48:15 -07:00
Alex
d004bce0c9
Added basic mouse capture API ( #679 )
...
Added basic cursor lock API
2020-10-16 14:07:01 -07:00
Carter Anderson
b03d8da9bb
fix clippy ( #686 )
2020-10-15 12:49:56 -07:00
François
76cc25823d
can change window settings at runtime ( #644 )
...
can change window settings at runtime
2020-10-15 11:42:19 -07:00
Downtime
125afb41ac
Exposing winit decorations ( #627 )
...
Exposing winit decorations
2020-10-05 10:51:36 -07:00
Tomasz Sterna
dd6f0b5e04
Option to give existing canvas element as winit window ( #515 )
2020-09-21 16:12:34 -07:00
Victor "multun" Collod
c38420f1e9
enforce clippy for all target and features
2020-08-16 07:20:06 -07:00
Wouter Standaert
a738771c93
Add resizable and windowmode options to window creation
2020-08-13 10:47:40 +02:00
Thomas Herzog
b4c185eb0c
cargo fmt
2020-07-26 21:10:18 +02:00
Carter Anderson
93bb1d5b8e
ui: initial flexbox support
2020-07-24 23:04:45 -07:00
Carter Anderson
c81ab99dac
cargo fmt
2020-07-10 01:37:06 -07:00
Carter Anderson
69925f0817
render: multi-window cameras ready to go!
...
passes now bind camera buffers and cameras can now be assigned non-primary windows
2020-06-25 23:04:08 -07:00
Carter Anderson
ca4726ea7d
render to second window in multiple_windows example
2020-06-25 16:02:21 -07:00
Carter Anderson
06b2b06e9d
camera: update cameras when windows are created
2020-06-22 13:21:39 -07:00
Carter Anderson
87066cafd3
move bevy crates to their own folder
2020-04-24 17:57:20 -07:00