Commit graph

835 commits

Author SHA1 Message Date
memoryruins
e21705bec6
Remove two unused deps (#780) 2020-11-03 11:38:37 -08:00
David Ackerman
7efb1b1887
Fix initial Android support (#778)
* Add force touches, fix ui focus system and touch screen system

* Fix examples README. Update rodio with Android support. Add Android build CI

* Alter android metadata in root Cargo.toml
2020-11-03 11:32:48 -08:00
Carter Anderson
2e2fa4fef4
make Mesh::attribute() immutable (#774) 2020-11-02 22:54:20 -08:00
Carter Anderson
66f2f76a18
rename add_plugin_group to add_plugins (#773) 2020-11-02 19:01:17 -08:00
Nathan Stocks
9871e7e24b
Remove add_default_plugins and add MinimalPlugins for simple "headless" scenarios (#767)
Remove add_default_plugins and add MinimalPlugins for simple "headless" scenarios
2020-11-02 18:38:37 -08:00
Nathan Stocks
2f87ff6618
Move ElementState to top-level of bevy_input. Resolves #687. (#769) 2020-11-02 18:16:13 -08:00
Nicholas Rishel
53c4c45eca
Use embedded glslang for runtime glsl-to-spirv and add Android example (#740)
Use embedded glslang for runtime glsl-to-spirv and add Android example
2020-11-02 16:30:30 -08:00
Carter Anderson
44b3e24e32
fix mesh allocation bug and public mesh api improvements (#768) 2020-11-02 13:15:07 -08:00
memoryruins
f81208adaa
impl ReadOnlyFetch for Or, FetchOr, and FetchMutated (#763) 2020-11-01 16:51:51 -08:00
simlay
9cc6368b28
An initial xcode setup for using xcode (#539)
An example of bevy using xcode
2020-10-31 14:36:24 -07:00
Julian Heinken
4645da30c8
Mesh overhaul with custom vertex attributes #592 (#599)
Mesh overhaul with custom vertex attributes
2020-10-30 19:21:53 -07:00
Carter Anderson
ad940fbf6e
Rename query.entity() to query.get() and query.get() to query.get_component() (#752) 2020-10-30 18:04:33 -07:00
tigregalis
ff626f2f6f
fix wavy text (#725)
fix wavy text

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2020-10-30 16:29:24 -07:00
Oscar
b6004e44cf
Local resources don't create if already present (#745)
Local<T> will no longer insert the inner resource if it already exists.
2020-10-30 12:21:57 -07:00
Boxy
dea05e9af5
Remove unsound cast in thread local resources (#749)
* Remove unsound cast in thread local resources

* Make ResourceRef(Mut)::new impossible to cause unsoundness with
2020-10-30 11:43:39 -07:00
Carter Anderson
1d4a95db62
ecs: ergonomic query.iter(), remove locks, add QuerySets (#741) 2020-10-29 23:39:55 -07:00
Alex Hirsch
1b051d3353
Add SamplerDescriptor to Texture (#399) (#747)
GLTF loader now grabs (some) sampler information from the respective
GLTF sampler struct.
2020-10-29 14:22:45 -07:00
Utkarsh
fb2b19def5
Fix bug of connection event of gamepad at startup (#730)
* Removed f32==f32 comparision in gamepad.rs

* Trigger gamepad connection event at start up
2020-10-29 13:55:35 -07:00
SvenTS
7734b1ea6d
Fix PreviousParent lag by merging parent update systems (#713)
* Sync previous parent in parent_update_system

* Previous parent does not need to be an option now

* Remove previous parent after parent deletion
2020-10-29 13:54:29 -07:00
Carter Anderson
bf2a917b81
app: PluginGroups and DefaultPlugins (#744) 2020-10-29 13:04:28 -07:00
David Ackerman
0cddeed1c0
Add support for android file system (#723)
Add support for android file system
2020-10-28 17:08:33 -07:00
Freya
040b8f72b3
Optimize returns in file_asset_io.rs and entities.rs (#728)
Optimize returns in file_asset_io.rs and entities.rs
2020-10-28 16:59:45 -07:00
Boxy
8c053e7c67
Run app.initialize in the run_once runner (#736) 2020-10-28 16:43:17 -07:00
Carter Anderson
a6ac8faa8a
port upstream hecs performance improvements (#716) 2020-10-22 11:53:59 -07:00
CGMossa
58eb7e7e05
Documenting small things here and there.. (#706)
Documenting small things here and there..
2020-10-21 15:57:03 -07:00
Carter Anderson
267599e577
gamepad: expose raw and filtered gamepad events. (#711) 2020-10-21 15:56:07 -07:00
Mariusz Kryński
894cc5e40a
fix getrandom (#712) 2020-10-21 15:55:35 -07:00
Mariusz Kryński
677cb1fc67
fix wasm assets (#714)
fix wasm assets
2020-10-21 15:55:15 -07:00
Utkarsh
d01ba9e4fc
Separate gamepad state code from gamepad event code and other customizations (#700)
Separated gamepad event and gamepad state code and made gamepad input more customizable
2020-10-21 10:27:00 -07:00
James R
0f43fb066f
update glam (#707) 2020-10-20 12:31:49 -07:00
lee-orr
0dba0fe45f
add flag for low power gpu as default (#397) 2020-10-20 11:47:10 -07:00
Dashiell Elliott
0dbba3efff
Migrate to rodio 0.12 using thread local resources (#692)
Migrate to rodio 0.12 using thread local resources
2020-10-20 11:44:50 -07:00
dependabot[bot]
67f87e1d2b
Update ahash requirement from 0.4.5 to 0.5.3 (#704)
Updates the requirements on [ahash](https://github.com/tkaitchuck/ahash) to permit the latest version.
- [Release notes](https://github.com/tkaitchuck/ahash/releases)
- [Commits](https://github.com/tkaitchuck/ahash/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-19 18:24:50 -07:00
Carter Anderson
f88cfabdde
asset: WasmAssetIo (#703)
asset: WasmAssetIo
2020-10-19 17:29:31 -07:00
tigregalis
03bc5d7fdd
two-way conversions between Color-Vec4 and Color-[f32; 4] (#688)
two-way conversions between `Color`-`Vec4` and `Color`-`[f32; 4]` - use `impl From` instead of `impl Into`
2020-10-19 12:37:15 -07:00
Carter Anderson
c32e637384
Asset system rework and GLTF scene loading (#693) 2020-10-18 13:48:15 -07:00
Carter Anderson
a602f50c2c
small input example improvements (#701) 2020-10-18 13:20:42 -07:00
Marek Legris
5acebed731
Transform and GlobalTransform are now Similarities (#596)
Transform and GlobalTransform are now Similarities.

This resolves precision errors and simplifies the api

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2020-10-18 13:03:16 -07:00
Tomasz Sterna
149c39950a
Runners explicitly call App.initialize() (#690) 2020-10-18 12:25:33 -07:00
Sergey Minakov
a80469bd13
Touch support implementation (#696)
Adds a basic touch input system
2020-10-18 12:24:01 -07:00
Alex
d004bce0c9
Added basic mouse capture API (#679)
Added basic cursor lock API
2020-10-16 14:07:01 -07:00
David Ackerman
7ba45849f3
Add default for texture format (#675) 2020-10-16 11:44:31 -07:00
Mariusz Kryński
fccfa12d3b
do not depend on spirv on wasm target (#689)
do not use spirv for wasm target
2020-10-16 11:12:55 -07:00
Mat Hostetter
871790c6e0
Adjust how ArchetypeAccess tracks mutable & immutable deps (#660)
`ArchetypeAccess` was tracking `immutable` and `mutable` separately.
This means that checking is_compatible requires three checks:
m+m, m+i, i+m.

Instead, continue tracking `mutable` accesses, but instead of
`immutable` track `immutable | mutable` as another `accessed` bit mask.
This drops the comparisons to two (m+a, a+m) and turns out to be
what the rest of the code base wants too, unifying various duplicated
checks and loops.
2020-10-15 13:39:01 -07:00
Junfeng Liu
f66a72563e
Expose a pointer of EventLoopProxy to process custom messages (#674) 2020-10-15 13:31:34 -07:00
Carter Anderson
b03d8da9bb
fix clippy (#686) 2020-10-15 12:49:56 -07:00
Utkarsh
dd91f8e116
Add support to get gamepad button/trigger values using Axis<GamepadButton> (#683) 2020-10-15 12:45:34 -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
M
9c48e5cccb
Add a way to specify padding/ margins between sprites in a TextureAtlas. (#460)
Add a way to specify padding between sprites in a TextureAtlas
2020-10-14 20:49:07 -07:00
Catherine Gilbert
1f7fe77f32
added frame count to FrameTimeDiagnosticsPlugin (#678)
added frame count to FrameTimeDiagnosticsPlugin
2020-10-14 15:13:43 -07:00
Nathan Jeffords
7e23e132ef
add version of the ecs's write_world method that takes a pre-boxed world writer (#661)
Co-authored-by: Nathan Jeffords <njeffords@comtechefdata.com>
2020-10-14 14:01:08 -07:00
Carter Anderson
df64e1fc92
upgrade rectangle pack (#673) 2020-10-12 18:12:17 -07:00
Carter Anderson
5e7c36d1c1
Fix example colors (#672) 2020-10-12 16:54:22 -07:00
Carter Anderson
930eba4ccd
add thread local resources (#671) 2020-10-12 15:09:44 -07:00
walterpie
53d6d10506
Register IndexFormat as a property (#664) 2020-10-12 10:22:10 -07:00
Joshua J. Bouw
036b3bc0e6
add more methods to Assets for clearing and allocation reduction (#669) 2020-10-12 10:21:28 -07:00
Julian Heinken
32b122e1c5
Update color.rs (#670)
Co-authored-by: Julian Heinken <julian.heinken@gmail.com>
2020-10-12 10:19:06 -07:00
Nathan Stocks
f6fc76db1d
Upgrade to gilrs 0.8.0 to gain dpad support on macos from https://gitlab.com/gilrs-project/gilrs/-/merge_requests/50 (#653) 2020-10-10 13:30:34 -07:00
Carter Anderson
1f27d8c727
fix new clippy error (#656) 2020-10-10 12:16:52 -07:00
Nathan Stocks
333fd3f0e0
Don't Panic (#651)
Don't panic when despawning recursively
2020-10-08 18:43:41 -07:00
Nathan Stocks
bf501b77cc
Don't panic when despawning entity multiple times (#649)
Emit a debug log message instead of a panic when despawning an entity which has already been despawned.
2020-10-08 16:58:19 -07:00
memoryruins
ebce1f9c4a
Remove outdated ecs docs (#646) 2020-10-08 15:32:25 -07:00
Grayson Burton
354d71cc1f
The Great Debuggening (#632)
The Great Debuggening
2020-10-08 11:43:01 -07:00
Julian Heinken
a92790c011
sRGB awareness for Color (#616)
Color is now sRGB aware, added SrgbColorSpace trait for f32
2020-10-08 10:30:23 -07:00
François
52a4d49bbf
set asset path relative to root when loading sync (#643) 2020-10-07 11:09:17 -07:00
Downtime
125afb41ac
Exposing winit decorations (#627)
Exposing winit decorations
2020-10-05 10:51:36 -07:00
Boutillier
219527ed7d
Iter added camera to update their projection (#488) 2020-10-05 10:41:34 -07:00
Boutillier
1bdb9d3b00
Fix Added behaviour for QueryOne get. (#543)
Query unchanged as impacts performances.
Added tests in bevy_ecs/hecs
2020-10-05 10:38:12 -07:00
Andrew Hickman
9a4167ef7f
Fix FloatOrd hash being different for different NaN values (#618)
* Fix FloatOrd hash being different for different NaN values

* Fix FloatOrd hashing +0.0 and -0.0 to different values
2020-10-03 12:56:25 -07:00
Carter Anderson
22a2c88a47
winit: upgrade to 0.23.0 / move back upstream! (#617) 2020-10-02 12:24:30 -07:00
EthanYidong
4c753e2588
move dynamic plugin loading to its own optional crate (#544)
move dynamic plugin loading to its own crate
2020-10-01 13:04:06 -07:00
Will Hart
1beee4fd28
Add AppBuilder::asset_loader_from_instance (#580)
* Implement add_asset_loader_from_instance

* Add example of different data loaders
2020-10-01 11:31:06 -07:00
Gregor
056f84a2c1
Expose current_entity in ChildBuilder (#595) 2020-10-01 11:00:10 -07:00
Jonas Matser
3a4eacbdee
Adds derive for missing debug implementations (#597) 2020-10-01 10:58:21 -07:00
Nolan Darilek
d52f9e32aa
Add #[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))] to gamepad types. (#583)
Seems these may have been missed in the gamepad implementation, copied them from keyboard.rs.
2020-10-01 10:54:20 -07:00
Daniel McNab
cd9e502b12
Fix ScheduleRunnerPlugin (#610)
Fixes #609
2020-10-01 10:52:29 -07:00
Tomasz Sterna
408114269b
Use instant::Instant with wasm-bindgen feature (#591) 2020-09-27 12:55:06 -07:00
Raymond
74ad1c3752
Add remove bundle to bevy_ecs commands (#579)
add remove bundle to bevy_ecs commands
2020-09-26 14:27:56 -07:00
Alexander Sepity
85a7f883d1
Fix typo in #569. (#582) 2020-09-26 10:26:19 -07:00
Carter Anderson
dd07674b59
github actions: use stable clippy (#577) 2020-09-25 21:34:47 -07:00
Carter Anderson
05db806e15
fix DrawableText crash (#574) 2020-09-25 17:57:23 -07:00
Mariusz Kryński
a3012d94bb
WASM asset loading (#559)
wasm assets
2020-09-25 15:26:23 -07:00
Gray Olson
afc656701d
switch to u32 indices by default (#572) 2020-09-25 14:29:30 -07:00
Alexander Sepity
3abfcad7ab
Patch memory leak in Archetype::grow(). (#569) 2020-09-25 12:33:27 -07:00
Gray Olson
f7c8882c04
Index buffer specialization (#568)
index buffer specialization
2020-09-25 12:13:01 -07:00
Carter Anderson
a768bae33b
properly update bind group ids when setting dynamic bindings. (#560) 2020-09-23 13:20:14 -07:00
Carter Anderson
028a22b129
asset: use bevy_tasks in AssetServer (#550) 2020-09-21 20:23:09 -07:00
Tomasz Sterna
dd6f0b5e04
Option to give existing canvas element as winit window (#515) 2020-09-21 16:12:34 -07:00
Stjepan Glavina
74f881f20d
Fix compilation error on wasm (#549)
Fix compilation error on wasm
2020-09-21 15:47:38 -07:00
Logan Magee
b5f3585d2e
Merge some imports in bevy_winit/src/lib.rs (#522) 2020-09-21 13:54:47 -07:00
HyperLightKitsune
295e1f0a18
use FnOnce in Commands and ChildBuilder where possible (#535)
use FnOnce in Commands and ChildBuilder
2020-09-21 13:51:38 -07:00
Stjepan Glavina
5aa77979d1
Remove some unsafe code (#540) 2020-09-21 13:13:40 -07:00
memoryruins
fd1d6a388d
Stop looping when scheduler receives an AppExit (#536) 2020-09-20 16:32:07 -07:00
Carter Anderson
74dba5f36b
release: 0.2.1 (#533) 2020-09-20 15:58:32 -07:00
Stjepan Glavina
b05708f66a
Update async-executor to 1.3.0 (#526) 2020-09-20 11:27:24 -07:00
memoryruins
924afc3c0c
Remove UI debug print (#521) 2020-09-19 23:25:07 -07:00
Carter Anderson
ba5af4dd56
release: 0.2.0 (#520) 2020-09-19 15:29:08 -07:00
Carter Anderson
57a52e6ed7
fix font atlas text width bug (#519) 2020-09-19 14:22:01 -07:00
Carter Anderson
ff54efe3e3
transform: add "setter" builder functions, make naming clearer, and fix examples (#516) 2020-09-19 13:35:48 -07:00
Boutillier
b9f18efd86
Do not assume font handle is present in assets. (#490) 2020-09-19 12:57:52 -07:00
Tomasz Sterna
5e3731ddce
Create winit canvas under WebAssembly (#506) 2020-09-18 20:11:26 -07:00
Utkarsh
19d4694d24
Added gamepad support using Gilrs (#280)
Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2020-09-18 14:43:47 -07:00
Boiethios
d4c8436457
Add AppBuilder::add_startup_stage_[before/after] (#505)
Co-authored-by: Boiethios <felix-dev@daudre-vignier.fr>
2020-09-18 13:30:54 -07:00
Carter Anderson
70ad6671db
ecs: use generational entity ids and other optimizations (#504)
ecs: use generational entity ids and other optimizations
2020-09-17 17:16:38 -07:00
Tomasz Sterna
34c6f5f41b
Implement WASM support for bevy_winit (#503)
Also, replaced wasm_timer::Instant with instant::Instant as it is
used by winit WASM implementation.
2020-09-16 13:40:32 -07:00
Carter Anderson
ad7613c674
Fix set_scale and set_rotation in new Transform api (#500) 2020-09-16 00:19:14 -07:00
verzuz
d4ab2f4d47
fix font atlas overflow (#495)
manage font_atlas overflow
2020-09-15 18:06:10 -07:00
Tomasz Sterna
2b0ee24a5d
Implement single threaded task scheduler for WebAssembly (#496)
* Add hello_wasm example

* Implement single threaded task scheduler for WebAssembly
2020-09-15 18:05:31 -07:00
Carter Anderson
e81111c1b1
simplify transform usage where possible (#494) 2020-09-14 18:20:20 -07:00
Smite Rust
a5259ab45f
update dependencies (#493) 2020-09-14 18:12:52 -07:00
Ilja Kartašov
b3e339e58a
Fix missing asset info path for synchronous loading (#486) 2020-09-14 14:14:54 -07:00
Smite Rust
b0e64d4295
update async-executor (#484)
update async-executor
2020-09-14 14:01:41 -07:00
Marek Legris
474bb5403e
Transform Rewrite (#374)
Remove individual Translation / Rotation / Scale components in favor of a combined Transform component
2020-09-14 14:00:32 -07:00
Logan Magee
3bc5e4cb1e
render: Export specific items outside of prelude (#473)
It's a preference of some people to not use prelude modules at all in
order to make their imports more explicit. Currently, items like
`Camera3dComponent` are only exported in a prelude module, making an
explicit import look like

`use bevy::prelude::Camera3dComponent`

which feels a bit hackish. This change doesn't remove such components
from the prelude, but just re-exports them at the crate's
(`bevy_render` in this case) root.
2020-09-11 16:23:21 -07:00
Logan Magee
e7d254517e
Load assets from root path when loading directly (#478) 2020-09-11 16:22:42 -07:00
Fabian Löschner
5447592c07
Fix handling of nested generics in PropertyTypeRegistration (#458) (#458) 2020-09-11 12:37:59 -07:00
Jonas Matser
3b3b0195bc
Adds profiler_start/stop to parallel_executor (#474) 2020-09-11 12:14:36 -07:00
BimDav
4ef18e2608
Resource change tracking (#388)
* Add mutated tracker on resources and ChangedRes query for added or mutated resources.

* ResMut:::new() now takes a reference to a 'mutated' flag in its archetype.

* Change FetchResource so that get() returns an Option. Systems using Resources will only be called if all fetched Resources are Some(). This is done to implement ChangedRes, which is Some iff the Resource has been changed.

* Add OrRes for a logical or in tuples of Resource queries.

* Separate resource query get() in is_some() and get() methods for clarity

* Remove unneeded unsafe

* Change ResMut::new()
2020-09-10 13:15:02 -07:00
Tomasz Sterna
12deb0bd91
Initialize+Run systems when running the app (#444)
This is required, so Local<> resources get initialized before systems run.
2020-09-10 12:56:37 -07:00
Smite Rust
a9ce7f4e82
update dependencies (#470) 2020-09-10 12:54:24 -07:00
Carter Anderson
9d0abeb014 fix formatting 2020-09-09 18:54:20 -07:00
Carter Anderson
478fb0649a use upstream ron 2020-09-09 18:51:59 -07:00
Philip Degarmo
612c2552a5
Update multitask dependency to async-executor (#452)
* Switch from the deprecated `multitask` crate to `async-executor`
* async-executor appears to be essentially multitask 0.3
* use block_on in futures_lite instead of pollster because futures_lite is already in the dependency list of async-executor
2020-09-09 13:12:50 -07:00
Cory Forsstrom
2667c24656
custom rodio source for audio (#145)
support custom rodio source for audio
2020-09-08 13:56:45 -07:00
Carter Anderson
9c850057c0 move benches to separate crate to cut test/example build times 2020-09-08 13:30:44 -07:00
Carter Anderson
ac117019e2 resolve unused variable warning in release builds 2020-09-08 13:29:55 -07:00
Grant Moyer
586303fd53
Parallel queries (#292)
Add support for Parallel Queries
2020-09-08 12:18:32 -07:00
Sergey Minakov
52ae217b16
Resize mode for Sprite component (#430)
Adds a 'resize_mode' field for 'Sprite'.
This allows different resize handling based on 'SpriteResizeMode' enum value.
2020-09-08 12:04:22 -07:00
Carter Anderson
413caae7bb resolve errors from latest clippy version 2020-09-07 15:00:03 -07:00
Boxy
d86fae8147
Update docs for Updated, Changed and Mutated (#451)
Update docs for Updated, Changed and Mutated
2020-09-07 13:52:03 -07:00
Jeremiah Senkpiel
54e9f446c4
SceneSpawner: add unload() and unload_sync() (#339)
This allows you to unload scenes.

Refs: https://github.com/bevyengine/bevy/issues/255
2020-09-06 13:06:21 -07:00
Aevyrie
6e460a6a97
Add Copy to MouseScrollUnit (#270)
add Copy to MouseScrollUnit
2020-09-06 12:56:09 -07:00
Tristan Pemble
43463a7a06
Optimize transform systems to only run on change (#417)
Optimize transform systems to only run on change
2020-09-06 12:53:14 -07:00
Philip Degarmo
9eba19c8f0
Fix for bug #449 (#450)
Fix for a bug (#449) in scheduler that could result in systems running concurrently when they shouldn't.
2020-09-06 12:07:34 -07:00
Philip Degarmo
8b3553002d
Reworked parallel executor to not block (#437)
Reworked parallel executor to not block
2020-09-05 22:05:33 -07:00
Philip Degarmo
8677e36681
Replace some println spam in a test with an assertion (#439) 2020-09-05 21:46:23 -07:00
Marcel Müller
08dc1c1936
Add access to pressed/just_pressed/just_released to Input<T> (#428)
Add access to pressed/just_pressed to Input<T>
2020-09-03 17:32:17 -07:00
julhe
cc3e99388a
Allowing glTFs to be loaded that don't have uvs and normals (#406)
allowing gltfs to be loaded that don't have uvs and normals, by filling missing attributes them with zeros
2020-09-03 17:30:10 -07:00
BimDav
25f62f7250
Add support for 'or' in ECS querying for tuple queries (#358)
Add Or query to do a logical or on a set of queries
2020-09-01 18:12:54 -07:00
Noah Callaway
a1e254d075
Rename get_id_mut (#332)
Renamed to get_with_id_mut to be parallel with get_with_id.
2020-09-01 17:12:36 -07:00
Waridley
4e587db775
Feature to disable libloading (#363)
esp. helpful for wasm target
Made default only for `bevy` crate
2020-09-01 17:02:11 -07:00
Nathan Stocks
3d6d2431fe
Remove child from parent when it is despawned (#386)
Remove child from parent when it is despawned
2020-09-01 16:39:22 -07:00
Philip Degarmo
b91fd8a43a
Quick fix for #405 (#408)
- Use saturating_sub to avoid overflow in core assignment to task pools
- Temporarily force 4 minimum threads to avoid examples stalling
2020-09-01 11:06:45 -07:00
Michael Hills
38a982b28d
iOS: use shaderc-rs for glsl to spirv compilation (#324) 2020-09-01 11:06:15 -07:00
Boxy
57177c9e98
Bump entities to u128 to avoid collisions (#117) (#393) 2020-08-31 11:51:28 -07:00
wyhaya
8106f770de
Add Color::hex fn (#362)
Add Color::hex fn
2020-08-30 11:27:37 -07:00
Daniel McNab
61b5fe9cfc
Fix hot asset reloading on Windows (#394)
Fixes #348

Changes to uses fully qualified names to work around
https://github.com/rust-analyzer/rust-analyzer/issues/1165
2020-08-30 11:22:40 -07:00
Jasen Borisov
ad460159b0
add bevy_render::pass::ClearColor to prelude (#396)
It is common for users to want to set their clear color.
2020-08-30 11:20:11 -07:00
Boxy
3efbaca104
Fix archetypes_generation being incorrectly updated for systems (#294) (#383) 2020-08-29 18:38:05 -07:00
Mariusz Kryński
8101622f37
Fix deadlock in hot asset reloading (#375) (#376) 2020-08-29 17:16:46 -07:00
Hugo Lindsay
00be5d083e
UI component bundles derive clone (#390)
make Draw, TextStyle, and the rest of the ui components derive clone
2020-08-29 16:49:39 -07:00
Lachlan Sneff
17e7642611
Task System for Bevy (#384)
Add bevy_tasks crate to replace rayon
2020-08-29 12:35:41 -07:00
Robbie Davenport
4aabe983ec
Switch usage of std HashMap/HashSet default hasher, to aHash algo (#258)
switch to ahash for HashMaps and HashSets via a new bevy_utils crate
2020-08-28 17:08:51 -07:00
Patrik Buhring
c40e29bca3
Update icosphere dependency and add a limit to subdivisions. (#379) 2020-08-28 16:52:06 -07:00
Guillaume DALLENNE
d64882ffbf
add Color::rgb_u8 and Color::rgba_u8 (#381) 2020-08-28 16:50:49 -07:00
Grant Moyer
e6a57bad25
Fix sprite clipping at same depth (#385) 2020-08-28 16:45:54 -07:00
Carter Anderson
89a1d360c1
Fix despawn (#361)
* simplify RenderResourcesNode gpu array management

* support removals in RenderResourcesNode
2020-08-26 23:03:55 -07:00
Telzhaak
93040ef9a0
Check asset-path existence. Previously App just crashed if not (#345)
* Check asset-path existence. Previously App just crashed if not

* rustfmt

* Relegated Error-message to ChannelAssetHandler

* Removed needless return statement
2020-08-26 12:08:51 -07:00
Elias
9aff0bcc2a
Add support for binary glTF (.glb) (#271)
Add support for binary glTF (.glb)
2020-08-25 16:55:08 -07:00
stefee
034b5876aa
Fix default UI node size (#304)
Fix default node size
2020-08-25 12:18:43 -07:00
Xavientois
0ae74a4a4d
Some examples of documentation (#338) 2020-08-24 17:57:10 -07:00
Fabian Würfl
7b4bdef77c
Support multiline Texts (#183) 2020-08-24 17:13:24 -07:00
VitalyR
c78187e6df
add an option about display server protocol, and create document docs/cargo_features.md (#249)
add an option about display server protocol, and create document `docs/cargo_features.md`
2020-08-24 17:06:08 -07:00
Daniel McNab
f7131509b9
Send an AssetEvent when modifying using get_id_mut (#323)
Fixes #321
2020-08-24 11:20:41 -07:00
multun
022a31fd8f
fix formatting / clippy warnings (#295) 2020-08-22 18:35:40 -07:00
Carter Anderson
b925e22949 0.1.3 upgrade 2020-08-22 10:16:52 -07:00
Carter Anderson
35c59d2d59 use wgpu 0.6.0 release 2020-08-22 09:42:00 -07:00
Boutillier
4eb437ab2e
Fixes #134 and #135 with a slight hit on performances as get_or_assign_index will now always assign (#247) 2020-08-22 09:28:38 -07:00
kaflu
2dadc86fb0
Change CullMode to none for sprites (#241)
With `CullMode::Back`, a sprite image that is rotated in x,y plane won't display properly

Co-authored-by: kaflu <kaflu@users.noreply.github.com>
2020-08-21 19:52:31 -07:00
mfrancis107
47f3a0b8be
Changes ScheduleRunnerPlugin RunMode::Loop to run on fixed interval (#233)
* Changes ScheduleRunnerPlugin RunMode::Loop to run on fixed interval

* fix formatting
2020-08-21 19:31:46 -07:00
Carter Anderson
7c3b49cb6f upgrade to latest wgpu 2020-08-21 18:36:32 -07:00
TehPers
7a79dcc46c
Add serialize/deserialize to some input types (#281) 2020-08-21 18:13:50 -07:00
8bp
68d419d40f
Add repeating flag to Timer (#165)
Repeating timers will reset themselves upon finishing, carrying over any
excess time during the last tick. This fixes timer drift upon resetting.
2020-08-21 14:57:25 -07:00
Lachlan Sneff
1eca55e571
Replace std synchronization primitives with parking_lot (#210)
* Replace std::sync::Mutex with parking_lot::Mutex
* Replace std::sync::RwLock with parking_lot::RwLock
2020-08-21 14:55:16 -07:00
Jake Kerr
db1bf6478c
Allow calling winit with the 'run_return' variant of the run function (#243)
This adds a new WinitConfig resource that can be used to configure the behavior of winit.
When `return_from_run` is set to `true`, `App::run()` will return on `target_os` configurations that
support it.

Closes bevyengine/bevy#167.
2020-08-20 22:37:19 -07:00
Claire C
45312a945a
Basic mouse scroll-wheel event (#222)
add simple mouse wheel event + example
2020-08-20 17:04:01 -07:00
Boutillier
38d3da5b86
Fix #187 . Multiple return instead of continue inside for loops. (#230) 2020-08-20 16:09:04 -07:00
Csányi István
268b520105
Simplify GLTF loader code (#245)
simplify gtlf loader code
2020-08-20 14:06:16 -07:00
Carter Anderson
1ebb7e44ff
Merge pull request #189 from StarArawn/bind-group-reflect-fix
Reflect shader stage for bind groups.
2020-08-20 12:57:38 -07:00
Carter Anderson
e31f576484
Merge pull request #206 from multun/clippy
Add clippy support and fix all warnings / errors
2020-08-19 21:33:28 -07:00
John Mitchell
d4d68f6670 Fixed tests. 2020-08-19 10:16:35 -04:00
John Mitchell
f1b0d04e53 Fixed formatting. 2020-08-19 10:00:45 -04:00
John Mitchell
131a5e9167 Merge branch 'master' into bind-group-reflect-fix 2020-08-19 09:24:22 -04:00
Victor "multun" Collod
46636ed076 fix formatting 2020-08-18 19:48:03 -07:00
Carter Anderson
6ffe0696db
Merge pull request #203 from lachlansneff/ironing-out-uniforms
Replace vector of UniformProperty with a single UniformProperty
2020-08-18 13:44:10 -07:00
Lachlan Sneff
ccfa815cac Use can_draw in can_draw_indexed 2020-08-17 10:56:27 -04:00
Lachlan Sneff
e24aaf3dd3 Add Draw command to RenderCommand 2020-08-16 16:28:52 -04:00
Victor "multun" Collod
e36b26c226 render: fix RenderResourceBinding PartialEq impl 2020-08-16 07:20:06 -07:00
Victor "multun" Collod
dfbdeeb27f render: fix bind group PartialEq impl 2020-08-16 07:20:06 -07:00
Victor "multun" Collod
c38420f1e9 enforce clippy for all target and features 2020-08-16 07:20:06 -07:00
Victor "multun" Collod
d138647818 enforce cargo fmt --check 2020-08-16 05:02:06 -07:00
Victor "multun" Collod
ece54e963e diagnostics: add missing feature dependency 2020-08-16 05:02:06 -07:00
Victor "multun" Collod
1ec7183494 profiling: fix build 2020-08-16 02:06:59 -07:00
Carter Anderson
5fdf36dbb1 add optional wgpu tracing feature 2020-08-16 01:11:17 -07:00
Lachlan Sneff
9883cd15cd Replace vector of UniformProperty with a single property 2020-08-16 01:16:00 -04:00
Carter Anderson
f85867139b
Merge pull request #199 from multun/query-mut-debug
ecs: impl Debug for Mut<...>
2020-08-15 17:57:37 -07:00
Victor "multun" Collod
8472789bbb ecs: impl Debug for Mut<...> 2020-08-15 17:46:36 -07:00
ifletsomeclaire
c0d4877486 added draw.is_visible checks 2020-08-15 14:38:55 -05:00
John Mitchell
e11fa3e316 Added hack to allow all of the examples to work. 2020-08-15 15:03:57 -04:00
John Mitchell
eac53c1ab7 Fixed! 🎉 2020-08-14 23:21:38 -04:00
John Mitchell
76564a486e Removed old comment. 2020-08-14 16:59:18 -04:00
John Mitchell
f3ef23bda7 Working on correctly reflecting shader stage for bind groups. 2020-08-14 14:02:56 -04:00
Fabian Würfl
458a169ad2 Add possibility to control num_threads and stack_size of rayon::ThreadPool 2020-08-14 19:15:53 +02:00
Carter Anderson
95dce3ac72
Merge pull request #154 from OptimisticPeach/master
Add Icospheres mesh generation
2020-08-13 19:44:50 -07:00
Carter Anderson
938d381d45
Merge pull request #178 from JohnDoneth/master
Add Command::remove_one
2020-08-13 17:26:22 -07:00
John Doneth
589af3dc51 Add Command::remove_one 2020-08-13 19:38:38 -04:00
Carter Anderson
76c439398f
Merge pull request #173 from StarArawn/add-shader-stage-visibility-to-bindings
Added BindingShaderStage in order to pass the correct shader stage to wgpu.
2020-08-13 11:59:44 -07:00
Carter Anderson
fb4b2d9763
Merge pull request #172 from Halfwhit/prelude-fix
Added Mut to ECS prelude
2020-08-13 11:56:03 -07:00
Carter Anderson
317b3390ec
Merge pull request #149 from joejoepie/master
Add resizable flag and windowmode option to window creation
2020-08-13 11:54:27 -07:00
John Mitchell
3f5aae877e Removed some whitespace. 2020-08-13 13:00:27 -04:00
John Mitchell
5b99ad2483 Use if statement instead of match as that didn't work as expected. 2020-08-13 12:58:23 -04:00
John Mitchell
c40f39ec7e Make sure we translate the new type for wgpu. 2020-08-13 12:50:13 -04:00
John Mitchell
02b1907738 Use BindingShaderStage to pass which program the binding is attached to. 2020-08-13 12:44:21 -04:00
Halfwhit
14bfd698c5 Update lib.rs 2020-08-13 17:39:33 +01:00
Milan Vaško
e96afc33a7 Add support for embedded buffers in GLTF loader 2020-08-13 16:30:49 +02:00
Wouter Standaert
f539b6e7f6 Using event_loop for getting video mode 2020-08-13 11:27:51 +02:00
Wouter Standaert
a738771c93 Add resizable and windowmode options to window creation 2020-08-13 10:47:40 +02:00
Carter Anderson
a7f1889a35
Merge pull request #153 from multun/remove-entities-current
ecs: remove unused Entities::current
2020-08-13 01:21:43 -07:00
Jake Kerr
ad446c5f60 Use window_builder when configuring initial window
This fixes issue #159 where the window would briefly show with default options.
2020-08-13 15:37:26 +09:00
Victor "multun" Collod
8662ab3622 ecs: remove unused Entities::current 2020-08-12 21:16:20 -07:00
OptimisticPeach
86c20eb6df Add Icospheres.
Additionally documents the shapes module.
2020-08-13 00:14:23 -04:00
Carter Anderson
f49d07c0cc re-enable high performance gpu preference 2020-08-12 18:53:56 -07:00
MGlolenstine
241bd70797 added missing gpu(drivers) message instead of panicking on 'None' 2020-08-12 08:58:07 +02:00
Cameron Hart
5912206441 Upgrade glam to 0.9.3 2020-08-12 17:31:51 +12:00
Carter Anderson
00a887214e
Merge pull request #108 from caelunshun/feature-gated-deps
Make audio/image dependencies optional through feature flags
2020-08-11 15:31:39 -07:00
caelunshun
58be36a09a
Fix compilation when png or hdr features are disabled 2020-08-11 00:49:17 -06:00
caelunshun
a694d9a1b6
Make audio/image dependencies optional through feature flags 2020-08-11 00:30:42 -06:00
Aaron Housh
c42dad5f7c Change Power Preference to High Performance 2020-08-10 21:05:54 -07:00
Carter Anderson
5e76a018c9 fix ron doc tests 2020-08-10 20:06:18 -07:00
Carter Anderson
6db89da324 bump bevy_winit version 2020-08-10 13:12:57 -07:00
Carter Anderson
d549129d0e hopefully fix windows build 2020-08-10 13:06:22 -07:00
Carter Anderson
7bdab60e31 use temporary wgpu fork and latest publish winit crate 2020-08-09 21:26:34 -07:00
Carter Anderson
3deeb05264 use bevy-glsl-to-spirv 2020-08-09 18:57:17 -07:00
Carter Anderson
d67d05db97 add temporary ron fork
bevy requires changes we contributed to master, but those changes havent been published yet
2020-08-09 18:45:55 -07:00
Carter Anderson
423c5e3e0f ecs: prepare for publishing 2020-08-09 18:16:12 -07:00
Carter Anderson
34752a27bd add "0.1" version to all bevy crate references 2020-08-09 17:39:28 -07:00
Carter Anderson
9aee5323e1 add crate metadata 2020-08-09 17:24:27 -07:00
Carter Anderson
3d09459813 add more doc comments and clean up some public exports 2020-08-09 16:13:04 -07:00
Carter Anderson
f963cd41dc app: rename AppPlugin to Plugin 2020-08-07 20:22:17 -07:00
Carter Anderson
07858aa348 scene: fix dynamically loading RenderPipelines scenes 2020-08-02 19:33:27 -07:00
Carter Anderson
3c1494eb64 scene: rename "spawn" to "instance" 2020-08-02 12:57:30 -07:00
Carter Anderson
bb111cbafa more example cleanup and polish 2020-07-31 17:10:29 -07:00
Carter Anderson
ccf81edd8f render: add atlas padding support to work around MSAA artifacts, disable MSAA by default 2020-07-30 14:38:13 -07:00
Carter Anderson
54eaa2bdc6 render: easier msaa color attachments and fix multi-window example 2020-07-30 13:20:27 -07:00
Carter Anderson
f85ec04a48 ecs: prepare system ranges based on stage and thread locals 2020-07-30 13:19:55 -07:00
Carter Anderson
44c08f90aa render: remove Drawable implementation from RenderPipelines because it doesnt add any value 2020-07-29 18:28:32 -07:00
Carter Anderson
ca87359c6e render: add MSAA support 2020-07-29 18:15:15 -07:00
Carter Anderson
a2c1a90695 fix ui in font atlas and breakout examples 2020-07-29 01:16:42 -07:00
Carter Anderson
db665b96c0 ui: fix z indices and depth calculations 2020-07-29 00:28:44 -07:00
Carter Anderson
2929197d9b render: add RenderPass queries. move ui to its own pass 2020-07-28 20:11:27 -07:00